为了利用摄像头的景深信息,同时利用dm6446的分析功能(dsp),对openNI进行USB移植。
下载:libusb-1.0.0.tar.bz2
OpenNI-Stable-1.5.7.10.tar.gz
Sensor-Stable-5.1.6.6.tar.gz
编译 usb lib
export CC=arm_v5t_le-gcc
export CXX=arm_v5t_le-g++
./configure --host=arm-linux --prefix=/home/davinci/_install/libusb1.0.9 --enable-static --enable-shared
编译OPENNI
1.首先编译好libusb
2.拷贝 build_all_openni 到 OpenNI-Stable-1.5.7.10/Platform/Linux/CreateRedist 下面
3.修改 OpenNI-Stable-1.5.7.10/Platform/Linux/Build/Common/Platform.Arm 将 “CFLAGS +=”注销,防止运行时出现命令错误
4.运行build_all_openni
5.拷贝build_all_sensor 到 Sensor-Stable-5.1.6.6/Platform/Linux/CreateRedist
6.修改Sensor-Stable-5.1.6.6/Platform/Linux/Build/Common/Platform.Arm 将 “CFLAGS +=”注销,防止运行时出现命令错误
7.运行build_all_sensor
8.目标板上运行cmd_arm
注意:Source/XnDeviceSensorV2 下面 if (Magc == *(XnUInt16*)(Buffer)) 这儿会产生对齐问题,引起运行崩溃,要注意
————————————————
版权声明:本文为CSDN博主「weiwei_here」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weiwei_here/article/details/65437478