[2010/12/28]
全然ダメだったので題名変更
あとPlayersとSceneAnalysisはNiteのライブラリをリンクする必要なかった、、、
(リンクしなくてもエラーなし)
てことは下記のエラーはNiteとはまったく関係ない?
他のサンプルはリンクしないとエラーが出る。(あたりまえだけど)
----
すごくあやしい英語もつけてみます。
Warning!! I can not write english well
こないだからMacOSXでKinectを使えるように頑張ってたんだけど、
やっとできたのでメモなんかうまくいかない。
(I tried to use Kinect on MacOSX in several days. and
success. not success)
OpenNIとSensirKinectはroxluさんがMacでコンパイルできるようにしてくれた。
(You can build OpenNI and SensirKinect on Mac tanks to roxlu)
http://www.roxlu.com/blog/entry/116/openni-and-sensorkinect-driver-for-mac-/page/
しかし現状、インストール先が選択できず、ヘッダファイルもコピーされないので不便で、Niteライブラリのbuildにも支障が出る。
(but, can not select install prefix and do not copy headers. so, very inconbinience and but inflence to build Nite Library)
そこで、CMakeLists.txtを修正して、任意の場所にインストールできるようにしてみた。
ついでにniLicenseでエラーが出るのも修正。
(so, fixed CMakeLists.txt to can install optional install path and fixed niLicense)
https://github.com/yosilove/OpenNI
https://github.com/yosilove/SensorKinect
でもまだ「CMAKE_TEST_BUILDがOFFの時にインストールパスが絶対パスじゃないとエラーが起きる」というバグがあるのでpullリクエストはしない。
(but , now have bug "occur error when install path is not absolute path when CMAKE_TEST_BUILD is OFF", so does not pull request now.)
そして。。。
(And...)
Niteライブラリのインストールとサンプルプログラムのコンパイルに成功しました!たぶん。。。
(Success to install Nite Library and sample program! maybe...)
https://github.com/yosilove/Nite-for-Mac
ただ、このサンプルを実行してもエラーがでるのでもしかすると
失敗かもしれない。
(But, this sample program occur error when execute, so, Possibly
DONT SUCCESS)
実行時エラーのメッセージはこんなの
(here is running error message)
%Sample-Players
.....
XnXMLConfig::xnConfigureCreateNodes(): call to xnProductionNodeTypeFromString()
ProductoniNodeType (see Include/XnTypes.h): 2
XnXMLConfig::xnConfigureCreateNodes(): call to xnEnumerateProductionTrees
The pContext->pNodesMap is empty
The pContext->pNodesMap is empty
........
We did not find any items in the NodeInfoList
XnOpenNI::xnEnumerateProductionTrees() line 1050, fails!
We did not find any items in the NodeInfoList
XnOpenNI::xnEnumerateProductionTrees() line 1050, fails!
.....
InitFromXml failed: Can't create any node of the requested type!
XMLファイルの生成に失敗してるのか?それともデバイスが見つからないのが原因??
(Failed to create xml file? or can not detect device??)
だれか助けてくれ。。。
(Please help me...)
てゆうか、英語が非常に怪しいので詳しい人いたらツッコミくださいな。