-
Notifications
You must be signed in to change notification settings - Fork 70
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
Trouble cross-compiling #125
Comments
This is because the |
I guess you could probably try this already now: https://doc.libsodium.org/installation#cross-compiling |
Ah sorry, rereading above, it's node-gyp that you'd need to mess around with. We've tried a couple of times without luck, which is why we manually build armv7l on each release |
Yeah, the cross compiling of libsodium works fine, it's the linking of this repo that causes issues. How are you building those releases? Thanks for quick reply. |
We build them on actual hardware |
Do you think it'd be possible for you guys to build arm64, armel releases as well? |
We don't have the hardware unfortunately. armv7l is only because we support a number of production systems running on RPis |
Alright, thanks anyway. I and some others have been looking into using qemu to emulate the arches we want, and compiling there. |
If you figure it out, let us know :) |
If you want to follow this issue that might be worthwhile. Also checkout some scripts that are linked there, we're testing them for Raspberry Pi compiling right now. I will try to update here as well once a general solution has been found. |
We have had luck with qemu in the past, it was just prohibitively slow |
On this line, the compilation of this package is configured. If the
--host
parameter could be specified, then I would be able to cross compile the package.For example, the line could read something like:
When I tried this with
--host=arm-linux-gnueabihf
, to compile for thearmhf
arch (with this debian pkg installed), the compiling of libsodium worked, but the overall installation failed on amake
related step. Here's the log:I believe this is happening because
/usr/bin/ld
is used, instead ofarm-linux-gnueabihf-ld
. I realize this may be out of scope for this repo, but I've seen other issues like #119 mention compiling for platforms like Android, and so I'm wondering if the maintainers here would know how to fix this issue.How can I tell
make
to use the correct linker, and probably the correct version of other tools?The text was updated successfully, but these errors were encountered: