OpenNI/OpenNI — Issue #45: Cannot build OpenNI 1.3.3.6 on ubuntu 32-bit
Author: hben8814
Created: 2011-10-15 16:10:24+00:00
State: open

Hi there, I have been trying to install OpenNI 1.3.3.6, but when executing "RedistMaker" or "make" in Build directory, always shows me:

*********************************
* PrimeSense OpenNI Redist *
* 2011-10-15 10:58:25 *
*********************************
* Taking version...
version is 1.3.3.6
* Building OpenNI...
../../../../Source/OpenNI/XnDumpFileWriter.cpp:5: fatal error: xnLog.h: File not exists
compilation terminated.
make[1]: *** [Release/XnDumpFileWriter.o] Error 1
make: *** [OpenNI] Error 2
failed to execute: make PLATFORM=x86 -C ../Build > /home/herman/Tesis/Development/Kinect/OpenNI/Platform/Linux-x86/CreateRedist/Output/BuildOpenNI.txt
Building Failed!

I checked Source/OpenNI/XnDumpFileWriter.cpp file, and in line 5:
#include

So in Include directory only exists "XnLog.h" with "X", no "x", so ichanged it, and I got more erros:

*********************************
* PrimeSense OpenNI Redist *
* 2011-10-15 11:08:09 *
*********************************
* Taking version...
version is 1.3.3.6
* Building OpenNI...
../../../../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’
make[1]: *** [Release/XnDumpFileWriter.o] Error 1
make: *** [OpenNI] Error 2
failed to execute: make PLATFORM=x86 -C ../Build > /home/herman/Tesis/Development/Kinect/OpenNI/Platform/Linux-x86/CreateRedist/Output/BuildOpenNI.txt
Building Failed!

And I don't know what to do.

Please I need help because I have been cleaning and formating my computer many times, and the previous version of OpenNI 1.3.2.x worked fine, I don't know how to fix the error.

Thank you