[Nexus-developers] [Nexus] Files lagrer tha 2GB
Akeroyd, FA (Freddie)
F.A.Akeroyd at rl.ac.uk
Wed Sep 3 17:26:06 BST 2008
Stephane,
I've now added large file support to the NeXus configuration utility and it is enabled by default when you run ./configure if the operating system supports it (to disable support pass --disable-largefile to configure). The modified code is present in the latest trunk snapshot available at:
http://download.nexusformat.org/kits/snapshots.shtml
If you wish to compile your existing distribution you just need to set the CFLAGS environment variable prior to running configure e.g.
env CFLAGS="-D_FILE_OFFSET_BITS=64" ./configure
Regards,
Freddie
-----Original Message-----
From: nexus-developers-bounces at nexusformat.org [mailto:nexus-developers-bounces at nexusformat.org] On Behalf Of POIRIER Stephane
Sent: 03 September 2008 14:23
To: nexus-developers at nexusformat.org
Subject: Re: [Nexus-developers] [Nexus] Files lagrer tha 2GB
Indeed the problem is that the NeXus library is not compiled with large files support. It is required for the function determineFileType() in napi.c, in which there is a call to fopen().
So the question is how to compile the NeXus library with the large file support ? I didn't see any option to do this in the file named 'configure' in the source distribution.
Thanks for your attention,
stephane
-----Message d'origine-----
De : nexus-bounces at nexusformat.org [mailto:nexus-bounces at nexusformat.org] De la part de Björn Pedersen
Envoyé : jeudi 21 août 2008 15:11
À : nexus at nexusformat.org
Objet : [Nexus] Files lagrer tha 2GB
Just 2 things to check:
1. use a file system capable of handling large files (XFS, JFS are know to work)
2. try compiling HDF+Nexus with
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
>>
>> Just a question:
>> Is it possible to write a NeXus file bigger than 2GB using napi 4.0.0 and HDF5 (1.65) on a linux system (kernel 2.6.9) ?
>> We tried to do this but we got a 0 bytes file just after the file reached 2GB !
>>
>> The NeXus and HDF5 librairies were compiled from the sources distributions.
>>
>> Thanks,
Björn Pedersen
_______________________________________________
NeXus mailing list
NeXus at nexusformat.org
http://lists.nexusformat.org/mailman/listinfo/nexus
_______________________________________________
NeXus-developers mailing list
NeXus-developers at nexusformat.org
http://lists.nexusformat.org/mailman/listinfo/nexus-developers
More information about the NeXus-developers
mailing list