structureio / OpenNI2

OpenNI2
Apache License 2.0
983 stars 448 forks source link

Unable to compile on aarch64 (NVIDIA Jetson TX1) #111

Open beeedy opened 7 years ago

beeedy commented 7 years ago

I am currently trying to compile/install OpenNi2 on a Nvidia TX1 dev board with minimal success. Out of the box the architecture is not recognized, but forcing it to compile for Arm just results in errors related to unrecognized command line options:

g++: error: unrecognized command line option ‘-mfpu=neon’
g++: error: unrecognized command line option ‘-mfloat-abi=softfp’

Fixing these issues seems to just lead down a rabbit hole of more issues that when fixed just lead to more issues. Has anyone been able to successfully build and run the demos on a TX1 board?

joinAero commented 7 years ago

You could try the following fork:

$ git clone -b develop https://github.com/joinAero/OpenNI2.git

I succeeded in compiling OpenNI2 on Firefly-RK3399,

$ uname -a
Linux firefly 4.4.16 #20 SMP PREEMPT Sat Mar 18 15:19:16 CST 2017 aarch64 aarch64 aarch64 GNU/Linux

Pull request is here.

P.S. The steps using Kinect, OpenCV 3 + OpenNI2 + libfreenect, on Firefly-RK3399 are here.

mikeh9 commented 6 years ago

Here is the modified source and compiled binaries for TX1...https://github.com/mikeh9/OpenNI2-TX1