OpenNI RedistMaker - 在Mac OS上构建失败

时间:2011-10-14 00:23:39

标签: kinect openni

我在此处的README中遵循OpenNI安装指南https://github.com/OpenNI/OpenNI。我也安装了libtool和libusb。但是,当我在Platform / Linux-x86 / CreateRedist下运行./RedistMaker时,我收到了这样的错误消息:

PrimeSense OpenNI Redist * 
2011-10-12 23:18:46 * ********************************* 
Taking version... version is 1.3.3.6 
Building OpenNI... In file included from ../../../../Source/OpenNI/ 
XnDump.cpp:25: ../../../../Include/XnDump.h:167: warning: ‘warning’ 
attribute directive ignored ../../../../Include/XnDump.h:168: warning: 
‘warning’ attribute directive ignored ../../../../Include/XnDump.h: 
169: warning: ‘warning’ attribute directive ignored ../../../../ 
Include/XnDump.h:170: warning: ‘warning’ attribute directive 
ignored ../../../../Include/XnDump.h:171: warning: ‘warning’ attribute 
directive ignored ../../../../Include/XnDump.h:172: warning: ‘warning’ 
attribute directive ignored In file included from ../../../../Source/ 
OpenNI/XnDump.cpp:25: ../../../../Include/XnDump.h:167: warning: 
‘warning’ attribute directive ignored ../../../../Include/XnDump.h: 
168: warning: ‘warning’ attribute directive ignored ../../../../ 
Include/XnDump.h:169: warning: ‘warning’ attribute directive 
ignored ../../../../Include/XnDump.h:170: warning: ‘warning’ attribute 
directive ignored ../../../../Include/XnDump.h:171: warning: ‘warning’ 
attribute directive ignored ../../../../Include/XnDump.h:172: warning: 
‘warning’ attribute directive ignored In file included 
from ../../../../Include/XnDumpWriters.h:7, from ../../../../Source/ 
OpenNI/XnDumpFileWriter.h:7, from ../../../../Source/OpenNI/ 
XnDumpFileWriter.cpp:4: ../../../../Include/XnDump.h:167: warning: 
‘warning’ attribute directive ignored ../../../../Include/XnDump.h: 
168: warning: ‘warning’ attribute directive ignored ../../../../ 
Include/XnDump.h:169: warning: ‘warning’ attribute directive 
ignored ../../../../Include/XnDump.h:170: warning: ‘warning’ attribute 
directive ignored ../../../../Include/XnDump.h:171: warning: ‘warning’ 
attribute directive ignored ../../../../Include/XnDump.h:172: warning: 
‘warning’ attribute directive ignored ../../../../Source/OpenNI/ 
XnDumpFileWriter.cpp: In member function ‘virtual 
XnDumpWriterFileHandle XnDumpFileWriter::OpenFile(const XnChar, 
XnBool, const XnChar)’: ../../../../Source/OpenNI/XnDumpFileWriter.cpp: 
25: error: invalid conversion from ‘XN_FILE_HANDLE’ to 
‘void’ ../../../../Source/OpenNI/XnDumpFileWriter.cpp: In member 
function ‘virtual void XnDumpFileWriter::Write(XnDumpWriterFileHandle, 
const XnUInt8, XnUInt32)’: ../../../../Source/OpenNI/ 
XnDumpFileWriter.cpp:33: error: invalid conversion from ‘void’ to 
‘XN_FILE_HANDLE’ ../../../../Source/OpenNI/XnDumpFileWriter.cpp: In 
member function ‘virtual void 
XnDumpFileWriter::CloseFile(XnDumpWriterFileHandle)’: ../../../../ 
Source/OpenNI/XnDumpFileWriter.cpp:39: error: invalid conversion from 
‘void*’ to ‘XN_FILE_HANDLE’ In file included from ../../../../Include/ 
XnDumpWriters.h:7, from ../../../../Source/OpenNI/XnDumpFileWriter.h: 
7, from ../../../../Source/OpenNI/XnDumpFileWriter.cpp:4: ../../../../ 
Include/XnDump.h:167: warning: ‘warning’ attribute directive 
ignored ../../../../Include/XnDump.h:168: warning: ‘warning’ attribute 
directive ignored ../../../../Include/XnDump.h:169: warning: ‘warning’ 
attribute directive ignored ../../../../Include/XnDump.h:170: warning: 
‘warning’ attribute directive ignored ../../../../Include/XnDump.h: 
171: warning: ‘warning’ attribute directive ignored ../../../../ 
Include/XnDump.h:172: warning: ‘warning’ attribute directive 
ignored ../../../../Source/OpenNI/XnDumpFileWriter.cpp: In member 
function ‘virtual XnDumpWriterFileHandle 
XnDumpFileWriter::OpenFile(const XnChar, XnBool, const 
XnChar)’: ../../../../Source/OpenNI/XnDumpFileWriter.cpp:25: error: 
invalid conversion from ‘XN_FILE_HANDLE’ to ‘void*’ ../../../../Source/ 
OpenNI/XnDumpFileWriter.cpp: In member function ‘virtual void 
XnDumpFileWriter::Write(XnDumpWriterFileHandle, const XnUInt8, 
XnUInt32)’: ../../../../Source/OpenNI/XnDumpFileWriter.cpp:33: error: 
invalid conversion from ‘void’ to ‘XN_FILE_HANDLE’ ../../../../Source/ 
OpenNI/XnDumpFileWriter.cpp: In member function ‘virtual void 
XnDumpFileWriter::CloseFile(XnDumpWriterFileHandle)’: ../../../../ 
Source/OpenNI/XnDumpFileWriter.cpp:39: error: invalid conversion from 
‘void*’ to ‘XN_FILE_HANDLE’ lipo: can't figure out the architecture 
type of: /var/folders/8L/8LNYMSgEE5mYsWyaUxuEUE+++TI/-Tmp-// 
ccTxpyjf.out make[1]: ** [Release/XnDumpFileWriter.o] Error 1 make: 
*** [OpenNI] Error 2 failed to execute: make PLATFORM=x86 -C ../Build 
> /Users/wilson100/Projects/OpenNI/Platform/Linux-x86/CreateRedist/ 

Output/BuildOpenNI.txt Building Failed! 

我在Mac OS / X 10.6(雪豹)上做,我的xcode是3.6.2。我已经更新了我的CMake和我能想到的任何库但仍然 失败。我的OpneNI版本稳定在1.3.3.6。有人能告诉我哪个 我错过了什么?

1 个答案:

答案 0 :(得分:2)

如果我回到1.3.2.1版本,我可以成功构建它(但是会有一个小的权限拒绝问题,你可以通过创建一个tmp文件解决它)。因此,在openni社区发布更新之前,它是另一种选择。

更新:此问题已在最新更新中修复。