win7下成功编译测试AS3OpenNI(基于microsoft kinect)

平台: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版),并按照如下步骤

  1. Open up Adobe Flash Builder
  2. File>Import>Flash Builder Project...
  3. Browse by File, and find this file '..Examples.fxp'
  4. 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了。

 

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值