平台:win7+NITE+openni+sensorkinect
安装参照:http://developkinect.com/sites/default/files/resources/ZigfuDevBundle.exe
开发工具:flex 4.6:adobe官网下载
下载开源as3openni:http://code.google.com/p/as3openni/ (1.3.0版),并按照如下步骤
- Open up Adobe Flash Builder
- File>Import>Flash Builder Project...
- Browse by File, and find this file '..Examples.fxp'
- Make sure you've created a 'bin' folder in your 'bin-debug' folder with the 'AS3OpenNI_Alpha_1.3.0.exe' binary included in it.
错误1:用flex编译,报错:
‘应用程序描述符文件的命名空间 2.0 不得低于 Flex SDK 所需的最低版本 3.1’
解决:将报错xml文件中的
<application xmlns="http://ns.adobe.com/air/application/2.0">
替换为:
<application xmlns="http://ns.adobe.com/air/application/3.1">
错误2:运行报错:
进程意外终止。
invalid application descriptor:versionNumber must have a non-empty value.
解决:在报错xml文件中添加:
<versionNumber>0.0.0</versionNumber>
错误3:
程序可运行,但不能识别kinect(kinect灯不亮),调试发现:
AS3OpenNI :: NITE Session Socket - Bound to: 127.0.0.1:9501
AS3OpenNI :: Capture Socket Error
经查阅资料怀疑:OpenNI_Alpha_1.3.0.exe有问题
下载as3openni svn 1.4.0版,重新编译cpp_source(会有很多link和inclu),生成release的'AS3OpenNI_Alpha_1.3.0.exe'
替换掉bin里原来那个。
重新运行程序,ok了。