Closed daducci closed 2 years ago
Thanks a lot Stefan!
I'm not an expert in C, but I found here a solution that may be more portable. It seems sufficient to tell the compiler to automatically use the functions fread64/fseek64
etc by specifying the flag -D_FILE_OFFSET_BITS=64
. I need to test it and see if this solves the problem.
By the way, the 2GB limit is not directly related to the size of the input tractogram, but to the dictionary_*.dict
files generated while building the linear operator. In fact, a tractogram could be bigger than 2GB and the generated files smaller than 2GB, but also the other way around can actually happen.
I report in the following an excerpt from the email I received from a user (Stefan Sommer) about an issue (and possible solution) with files larger than 2GB: