欢迎来到天天文库
浏览记录
ID:27902470
大小:95.50 KB
页数:6页
时间:2018-12-06
《基于Dragonboard 410c开发板android平台上搭建kinect运行环境.doc》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、基于Dragonboard410c开发板android平台上搭建kinect运行环境 本教程是基于qualcomm的android平台搭建kinect的运行环境,我们采用的是:OpenFramework+OpenNI+Kinectofandroid,其中Kinectofandroid是OpenFramework源码里的一个子项目;下面是具体的搭建步骤。二、硬件环境:Dragonboard410c+Kinect 图1Dragonboard410c 图2Kinect传感器三、软件环境 OpenFram
2、ework+OpenNI+Kinectofandroid,其中Kinectofandroid是OpenFramework源码里的一个子项目,我的编译环境是64位的ubuntu,下面详细地介绍各部分的搭建。 1.OpenNI 1.1.搭建OpenNI2.2: 1.1.1下载androidndk编译工具: cd$HOME mkdirwork cdwork wgethttp://dl.google.com/android/ndk/android-ndk-r8e-linux-x86_64.tar.bz2
3、tar-jxvfandroid-ndk-r8e-darwin-x86_64.tar.bz2 1.1.2.从git上下载OpenNI2.2: cd$HOME/work gitclonehttps://github.com/OpenNI/OpenNI2.git cdOpenNI2 #手动修改PS1080.ini路径 vi./Source/Drivers/PS1080/Sensor/XnSensor.cpp #defineXN_GLOBAL_CONFIG_FILE_NAME“PS1080.ini”->#d
4、efineXN_GLOBAL_CONFIG_FILE_NAME“/system/lib/PS1080.ini” #修改OpenNI.ini路径 vi。/Source/Core/OniContext.cpp staTIcconstchar*ONI_CONFIGURATION_FILE=“OpenNI.ini”->staTIcconstchar*ONI_CONFIGURATION_FILE=“/system/lib/OpenNI.ini”; staticconstchar*ONI_DEFAULT_DRIVER
5、S_REPOSITORY=“OpenNI2”XN_FILE_DIR_SEP“Drivers”->staticconstchar*ONI_DEFAULT_DRIVERS_REPOSITORY=“/system/lib/”; 1.1.3编译OpenNI2.2: cdPackaging pythonReleaseVersion.pyandroid cdFinal tar-xvfOpenNI-android-2.2.tar cdOpenNI-android-2.2 ls EventBasedReadOpe
6、nNI.iniSimpleReadlibOpenNI2.solibPSLink.so MultipleStreamReadPS1080.inilibOniFile.solibPS1080.solibusb.so #把以下几个重要的库文件push到Android目录下 adbpushOpenNI.ini/system/lib/ adbpushPS1080.ini/system/lib/ adbpushlibOpenNI2.so/system/lib/ adbpushlibPS1080.so/system
7、/lib/ adbpushlibusb.so/system/lib/ adbpushlibOniFile.so/system/lib/ adbpushlibPSLink.so/system/lib/ adbpushSimpleRead/system/lib/ #检测OpenNI的运行: adbshell cd/system/lib/ SimpleRead ./SimpleRead [00000000]585 [00033369]585 [00066738]584 [00100107]58
8、4 [00133477]584 [00166846]584 [00200215]584 [00233584]583 [00266954]583 …… 2.OpenFramework8.1 2.1.下载openframework源码,并建立编译环境,具体可参照http://openframeworks.cc/setup/android-eclipse/进行下
此文档下载收益归作者所有