OpenNI RedistMaker - Mac 操作系统上的构建失败

发布于 2024-12-09 12:21:50 字数 4967 浏览 0 评论 0原文

我遵循 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 (snow leopard) 上执行操作,而我的 xcode 是 3.6。 2.我已经更新了我的 CMake 和我能想到的任何库,但仍然 失败的。我的 OpneNI 版本是 1.3.3.6 稳定版。有人可以告诉我哪一个吗 我错过了一步吗?

I follow the OpenNI installation guide in README here https://github.com/OpenNI/OpenNI. I have installed libtool and libusb also. However, when I run ./RedistMaker under Platform/Linux-x86/CreateRedist, I got such error message:

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! 

I am doing on my Mac OS/X 10.6 (snow leopard) and my xcode is 3.6.2. I have update my CMake and any library I can think of but still
failed. My OpneNI version is 1.3.3.6 stable. Can someone tell me which
step I miss?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

她说她爱他 2024-12-16 12:21:50

好吧,如果我回到 1.3.2.1 版本,我可以成功构建它(但会有一个小的权限被拒绝问题,您可以通过创建一个 tmp 文件来解决它)。所以这是openni社区发布更新之前的一个替代方案。

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

Well I can build it successfully if I go back to version 1.3.2.1 (but there will be a minor permission denied problem, which you can work around it by create a tmp file). So it's an alternative before openni community release update.

Update: This has been fixed in latest update.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文