gpt4 book ai didi

android - 为android平台编译NITE2

转载 作者:太空宇宙 更新时间:2023-11-04 10:50:50 25 4
gpt4 key购买 nike

我尝试为安卓平台编译nite2但它抛出了一些错误,有人可以回答我的问题吗?

ash@XxAshxX:~/usr/NITE2/NiTE-2.0.0/Samples$ cd SimpleUserTracker/

ash@XxAshxX:~/usr/NITE2/NiTE-2.0.0/Samples/SimpleUserTracker$ l

main.cpp Makefile

ash@XxAshxX:~/usr/NITE2/NiTE-2.0.0/Samples/SimpleUserTracker$ PLATFORM=Arm make

arm-none-linux-gnueabi-g++ -MD -MP -MT "./../Bin/Intermediate/Arm-Release/SimpleUserTracker/main.d ../Bin/Intermediate/Arm-Release/SimpleUserTracker/main.o" -c -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -O3 -fno-tree-pre -fno-strict-aliasing -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant -Wall --sysroot=/opt/ -O2 -DNDEBUG -I../../Include -I/home/ash/usr/OpenNI2-android/Include/ -fPIC -fvisibility=hidden -o ../Bin/Intermediate/Arm-Release/SimpleUserTracker/main.o main.cpp

In file included from /home/ash/usr/OpenNI2-android/Include/Linux-Arm/OniPlatformLinux-Arm.h:25, from /home/ash/usr/OpenNI2-android/Include/OniPlatform.h:43, from ../../Include/NiteCAPI.h:8, from ../../Include/NiTE.h:11, from main.cpp:8:

/home/ash/usr/OpenNI2-android/Include/Linux-Arm/../Linux-x86/OniPlatformLinux-x86.h:31: fatal error: unistd.h: No such file or directory compilation terminated.

make: *** [../Bin/Intermediate/Arm-Release/SimpleUserTracker/main.o] error 1

最佳答案

由于 SimpleUserTracker 使用专有的 NiTE2 库,因此无法为 arm 平台编译此源代码。

关于android - 为android平台编译NITE2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31113829/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com