OpenNI/OpenNI — Issue #42: RedistMaker error on Mac OS/X 10.6.8
Author: wilson100hong
Created: 2011-10-13 06:23:51+00:00
State: open

Hi,

I follow the installation guide and installed libtool and libusb. 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 have update my CMake and any library I can think of but still failed. Can someone tell me which step I miss? Thanks.