我正在尝试将ASUS Xtion PRO LIVE深度传感器与我的智能手机连接。为此,我需要Android的OpenNI共享库。我在Windows上使用cygwin,然后我跟着these steps:
但我被困在第3步:
Creating installer for OpenNI 2.2 android
make: Entering directory '/home/OF/structure/OpenNI2_modified/Packaging/AndroidBuild'
Cygwin : Generating dependency file converter script
StaticLibrary : libstdc++.a
Compile++ thumb : EventBasedRead <= main.cpp
Compile++ thumb : OpenNI2 <= OpenNI.cpp
Compile++ thumb : OpenNI2 <= OniStream.cpp
Compile++ thumb : OpenNI2 <= OniSensor.cpp
Compile++ thumb : OpenNI2 <= OniDeviceDriver.cpp
Compile++ thumb : OpenNI2 <= OniDevice.cpp
Compile++ thumb : OpenNI2 <= OniDataRecords.cpp
Compile++ thumb : OpenNI2 <= OniRecorder.cpp
arm-linux-androideabi-g++.exe: error: jni/OpenNI2/Source/Core/OpenNI.cpp: No such file or directory
arm-linux-androideabi-g++.exe: fatal error: no input files
compilation terminated.
arm-linux-androideabi-g++.exe: error: jni/OpenNI2/Source/Core/OniDataRecords.cpp: No such file or directory
arm-linux-androideabi-g++.exe: fatal error: no input files
compilation terminated.
arm-linux-androideabi-g++.exe: error: jni/OpenNI2/Source/Core/OniDeviceDriver.cpp: No such file or directory
arm-linux-androideabi-g++.exe: error: jni/OpenNI2/Source/Core/OniDevice.cpp: No such file or directory
arm-linux-androideabi-g++.exe: fatal error: no input files
compilation terminated.
arm-linux-androideabi-g++.exe: error: jni/OpenNI2/Source/Core/OniStream.cpp: No such file or directory
arm-linux-androideabi-g++.exe: fatal error: no input files
compilation terminated.
arm-linux-androideabi-g++.exe: fatal error: no input files
compilation terminated.
arm-linux-androideabi-g++.exe: error: jni/OpenNI2/Samples/EventBasedRead/main.cpp: No such file or directory
arm-linux-androideabi-g++.exe: error: jni/OpenNI2/Source/Core/OniSensor.cpp: No such file or directory
arm-linux-androideabi-g++.exe: fatal error: no input files
compilation terminated.
arm-linux-androideabi-g++.exe: fatal error: no input files
compilation terminated.
/cygdrive/c/Android/android-ndk-r8d/build/core/build-binary.mk:269: recipe for target 'obj/local/armeabi-v7a/objs/OpenNI2/OniDataRecords.o' failed
make: *** [obj/local/armeabi-v7a/objs/OpenNI2/OniDataRecords.o] Error 1
make: *** Waiting for unfinished jobs....
/cygdrive/c/Android/android-ndk-r8d/build/core/build-binary.mk:269: recipe for target 'obj/local/armeabi-v7a/objs/OpenNI2/OpenNI.o' failed
make: *** [obj/local/armeabi-v7a/objs/OpenNI2/OpenNI.o] Error 1
/cygdrive/c/Android/android-ndk-r8d/build/core/build-binary.mk:269: recipe for target 'obj/local/armeabi-v7a/objs/OpenNI2/OniDeviceDriver.o' failed
make: *** [obj/local/armeabi-v7a/objs/OpenNI2/OniDeviceDriver.o] Error 1
/cygdrive/c/Android/android-ndk-r8d/build/core/build-binary.mk:269: recipe for target 'obj/local/armeabi-v7a/objs/OpenNI2/OniDevice.o' failed
make: *** [obj/local/armeabi-v7a/objs/OpenNI2/OniDevice.o] Error 1
/cygdrive/c/Android/android-ndk-r8d/build/core/build-binary.mk:269: recipe for target 'obj/local/armeabi-v7a/objs/OpenNI2/OniSensor.o' failed
make: *** [obj/local/armeabi-v7a/objs/OpenNI2/OniSensor.o] Error 1
/cygdrive/c/Android/android-ndk-r8d/build/core/build-binary.mk:269: recipe for target 'obj/local/armeabi-v7a/objs/EventBasedRead/main.o' failed
make: *** [obj/local/armeabi-v7a/objs/EventBasedRead/main.o] Error 1
/cygdrive/c/Android/android-ndk-r8d/build/core/build-binary.mk:269: recipe for target 'obj/local/armeabi-v7a/objs/OpenNI2/OniStream.o' failed
make: *** [obj/local/armeabi-v7a/objs/OpenNI2/OniStream.o] Error 1
arm-linux-androideabi-g++.exe: error: jni/OpenNI2/Source/Core/OniRecorder.cpp: No such file or directory
arm-linux-androideabi-g++.exe: fatal error: no input files
compilation terminated.
/cygdrive/c/Android/android-ndk-r8d/build/core/build-binary.mk:269: recipe for target 'obj/local/armeabi-v7a/objs/OpenNI2/OniRecorder.o' failed
make: *** [obj/local/armeabi-v7a/objs/OpenNI2/OniRecorder.o] Error 1
make: Leaving directory '/home/OF/structure/OpenNI2_modified/Packaging/AndroidBuild'
Build failed!
编辑:--------------------------------------------- -------------------------
我能够在Mac OSX中为Android构建OpenNI2。我在成功构建后上传了OpenNI-android-2.2.tar
共享库和Final
文件夹中的ini文件,以防其他人可能需要它们:
http://1drv.ms/1PbYhhW
答案 0 :(得分:0)
我构建android nkd r8e没有错误。 OpenNI2源代码为https://github.com/occipital/openni2或https://github.com/OpenNI/OpenNI2,我可以构建两个源代码。