[Nexus-developers] [Nexus] Files lagrer tha 2GB

POIRIER Stephane stephane.poirier at synchrotron-soleil.fr
Wed Sep 3 14:22:30 BST 2008


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



More information about the NeXus-developers mailing list