-
Notifications
You must be signed in to change notification settings - Fork 743
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
Added support for armhf and arm64 in librealsense2 #951
Conversation
While we're at it, let's do the same for librealsense 1.x! |
Let's also add builds for linux-arm64 here. BTW, you don't need to test that everything is working. We can let Travis CI do that. |
Set G++ compiler to aarch64-linux-gnu-g++-8
added arm64 support
Both armhf and arm64 are building and working correctly now. |
Thanks! It builds fine with GCC 5.4 from Ubuntu 16.04: |
BTW, are 32-bit Raspberry Pi still ARMv6 only? Or can they do ARMv7 too? If they accept ARMv7 binaries as well these days, we could cross-compile using GCC from Ubuntu instead of trying to patch code from librealsense2. /cc @vb216 |
I think the early Pi1, and Pi Zero are physically ARMv6 chips, some of the newer models running 32bit OS are ARMv7 but may report as ARMv6 still. |
The newer Pis are V7 compatible, I actually compiled on Ubuntu and it runs fine on the ARM V7 boards |
Interesting, these days they actually recommend using Ubuntu for cross-compiling: |
Added all the necessary changes to successfully compile for the armhf platform.
Can be cross-compiled with:
mvn clean install -Djavacpp.platform=linux-armhf -Djavacpp.platform.compiler=arm-linux-gnueabihf-g++ -Dmaven.javadoc.skip=true -pl :librealsense2
(Sorry for the chaotic commits, I was in a hurry)