gpt4 book ai didi

kinect - OpenNI RedistMaker - 在 Mac OS 上构建失败

转载 作者:行者123 更新时间:2023-12-04 08:50:17 25 4
gpt4 key购买 nike

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

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.3.2.1 版本,我可以成功构建它(但是会出现一个小的权限被拒绝问题,您可以通过创建 tmp 文件来解决它)。所以它是openni社区发布更新之前的替代方案。

更新:这已在最新更新中修复。

关于kinect - OpenNI RedistMaker - 在 Mac OS 上构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7761902/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com