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
Cross-compile and deploy for Raspberry Pi #612
Comments
I'm not sure this is a beginner issue 😅. This means that you need to cross-compile all the libs for rpi, and last time I tried it was already not working for curl (I contributed to fix the bug, and I believe it was working in the end). Still with curl, one issue we have is that we don't really compile it from sources but have this "curl-android-ios" for Android and iOS, which is already some kind of workaround. |
Love the idea. More generally we still need an idiot proof deployment of all our runtimes for our supported platforms - ie no more pointing people to the build page at all. |
It's good for an SDK beginner knowing cross-compilation 😄
I agree. |
This will be easier after #724. |
I'm taking this task. |
Wait, I can help with the latest |
yes, I would be building for armv7, Rpi. |
Would you mind trying with dockcross? I think I successfully built the C++ SDK (I did not try the backend): cd /path/to/DronecodeSDK
docker run --rm dockcross/linux-armv7 > ./dockcross
chmod +x dockcross
./dockcross cmake -DCMAKE_INSTALL_PREFIX=install_armv7 -Bbuild/armv7 -S.
./dockcross cmake --build build/armv7 --target install And then I checked that a library was indeed an ARM binary: file install_armv7/lib/libdronecode_sdk.so
install_armv7/lib/libdronecode_sdk.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, with debug_info, not stripped |
Seems like building the backend has issues, though (
and zlib is indeed installed there. But still it errors with:
For debugging, I would either run the dockcross image interactively ( |
okay, I would give this a try. thanks for sharing the required info. |
Now wondering if it could be related to this cmake bug... 🤔 |
Thanks to @JonasVautherin's fix against Dockcross this should work now:
Please re-open the issue if this is still a problem. |
It would actually be very nice if we could also generate a .deb for Raspbian, so it can be installed easily on Raspberry Pi.
Building on Raspberry Pi is really quite slow, especially when you would add the gRPC backend.
The text was updated successfully, but these errors were encountered: