Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for large >2GB files on Indigo Sky? #389

Open
aaronfreimark opened this issue Nov 30, 2020 · 1 comment
Open

Support for large >2GB files on Indigo Sky? #389

aaronfreimark opened this issue Nov 30, 2020 · 1 comment

Comments

@aaronfreimark
Copy link
Contributor

Now that AVI and SER support has been added to the drivers, it is easy to make large files. However, my files could reach a maximum of 2GB only. I saw this only on indigosky. When I compiled on Mac, I could create large files.

The error I see is:
08:29:38.749009 indigo_server: indigo_write(): File too large

Googling, it looks like we may need the flag -D_FILE_OFFSET_BITS=64.

@aaronfreimark
Copy link
Contributor Author

I was able to verify that this issue occurs when the system is built on Raspberry Pi (not just Indigo Sky). During make, the following lines appear:

Mac:
checking for _FILE_OFFSET_BITS value needed for large files... no

RPi:
checking for _FILE_OFFSET_BITS value needed for large files... 64

I've submitted a patch to add the above flag during compilation. I've verified that this patch allows files over 2GB on the Raspberry Pi. Not sure I put the patch in the correct place, or if this has negative side effects somewhere else though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant