giuliarouge / simple-openni

Automatically exported from code.google.com/p/simple-openni
0 stars 0 forks source link

Building the svn repo fails #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Max,

I'm trying to build the latest SVN version of SimpleOpenNI without succes. I 
installed all the required libs (boost, swig, eigen, OPENNI, NITE & cmake). 
Running buildOsx.sh returns the following:

--- generate cmake ---
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is GNU 4.2.1
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found SWIG: /usr/local/bin/swig (found version "2.0.7") 
-- Found Java: /usr/bin/java (found version "1.6.0.31") 
-- Found JNI: -framework JavaVM  
-- Boost version: 1.49.0
-- Looking for include file XnOS.h
-- Looking for include file XnOS.h - not found.
-- Looking for include file XnVSessionManager.h
-- Looking for include file XnVSessionManager.h - not found.
version call: 1_5_2
-- Configuring done
-- Generating done
-- Build files have been written to: 
/Users/aartrost/Desktop/simpleopenni/source/build
--- build ---
"/Applications/CMake 2.8-8.app/Contents/bin/cmake" 
-H/Users/aartrost/Desktop/simpleopenni/source 
-B/Users/aartrost/Desktop/simpleopenni/source/build --check-build-system 
CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.8-8.app/Contents/bin/cmake" -E cmake_progress_start 
/Users/aartrost/Desktop/simpleopenni/source/build/CMakeFiles 
/Users/aartrost/Desktop/simpleopenni/source/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make -f CMakeFiles/SimpleOpenNI.dir/build.make 
CMakeFiles/SimpleOpenNI.dir/depend
"/Applications/CMake 2.8-8.app/Contents/bin/cmake" -E cmake_progress_report 
/Users/aartrost/Desktop/simpleopenni/source/build/CMakeFiles 1
[ 20%] Swig source
"/Applications/CMake 2.8-8.app/Contents/bin/cmake" -E make_directory 
/Users/aartrost/Desktop/simpleopenni/source/build/swig_src
/usr/local/bin/swig -java -package SimpleOpenNI -outdir 
/Users/aartrost/Desktop/simpleopenni/source/build/swig_src -c++ 
-I/System/Library/Frameworks/JavaVM.framework/Headers 
-I/System/Library/Frameworks/JavaVM.framework/Headers 
-I/Users/aartrost/Desktop/simpleopenni/source -I/usr/local/include 
-I/Users/aartrost/Desktop/simpleopenni/source/include -I/usr/include/ni 
-I/usr/include/nite -I/usr/local/include/eigen3 -o 
/Users/aartrost/Desktop/simpleopenni/source/build/src/SimpleOpenNIMainJAVA_wrap.
cxx /Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNIMain.i
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:502: Warning 
401: Base class 'NodeWrapper' undefined.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:815: Warning 
401: 'NodeWrapper' must be defined before it is used as a base class.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:502: Warning 
401: Base class 'NodeWrapper' undefined.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:815: Warning 
401: 'NodeWrapper' must be defined before it is used as a base class.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:502: Warning 
401: Base class 'NodeWrapper' undefined.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:815: Warning 
401: 'NodeWrapper' must be defined before it is used as a base class.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:502: Warning 
401: Base class 'NodeWrapper' undefined.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:815: Warning 
401: 'NodeWrapper' must be defined before it is used as a base class.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:502: Warning 
401: Base class 'NodeWrapper' undefined.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:815: Warning 
401: 'NodeWrapper' must be defined before it is used as a base class.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:502: Warning 
401: Base class 'NodeWrapper' undefined.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:815: Warning 
401: 'NodeWrapper' must be defined before it is used as a base class.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:502: Warning 
401: Base class 'NodeWrapper' undefined.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:815: Warning 
401: 'NodeWrapper' must be defined before it is used as a base class.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:502: Warning 
401: Base class 'NodeWrapper' undefined.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:815: Warning 
401: 'NodeWrapper' must be defined before it is used as a base class.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:502: Warning 
401: Base class 'NodeWrapper' undefined.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:815: Warning 
401: 'NodeWrapper' must be defined before it is used as a base class.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:502: Warning 
401: Base class 'NodeWrapper' undefined.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:815: Warning 
401: 'NodeWrapper' must be defined before it is used as a base class.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:256: Warning 
516: Overloaded method xn::OutputMetaData::Timestamp() ignored,
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:255: Warning 
516: using xn::OutputMetaData::Timestamp() const instead.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:259: Warning 
516: Overloaded method xn::OutputMetaData::FrameID() ignored,
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:258: Warning 
516: using xn::OutputMetaData::FrameID() const instead.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:262: Warning 
516: Overloaded method xn::OutputMetaData::DataSize() ignored,
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:261: Warning 
516: using xn::OutputMetaData::DataSize() const instead.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:265: Warning 
516: Overloaded method xn::OutputMetaData::IsDataNew() ignored,
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:264: Warning 
516: using xn::OutputMetaData::IsDataNew() const instead.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:268: Warning 
516: Overloaded method xn::OutputMetaData::GetUnderlying() ignored,
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:267: Warning 
516: using xn::OutputMetaData::GetUnderlying() const instead.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:293: Warning 
516: Overloaded method xn::MapMetaData::XRes() ignored,
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:292: Warning 
516: using xn::MapMetaData::XRes() const instead.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:296: Warning 
516: Overloaded method xn::MapMetaData::YRes() ignored,
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:295: Warning 
516: using xn::MapMetaData::YRes() const instead.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:299: Warning 
516: Overloaded method xn::MapMetaData::XOffset() ignored,
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:298: Warning 
516: using xn::MapMetaData::XOffset() const instead.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:302: Warning 
516: Overloaded method xn::MapMetaData::YOffset() ignored,
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:301: Warning 
516: using xn::MapMetaData::YOffset() const instead.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:305: Warning 
516: Overloaded method xn::MapMetaData::FullXRes() ignored,
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:304: Warning 
516: using xn::MapMetaData::FullXRes() const instead.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:308: Warning 
516: Overloaded method xn::MapMetaData::FullYRes() ignored,
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:307: Warning 
516: using xn::MapMetaData::FullYRes() const instead.
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:311: Warning 
516: Overloaded method xn::MapMetaData::FPS() ignored,
/Users/aartrost/Desktop/simpleopenni/source/src/SimpleOpenNI.i:310: Warning 
516: using xn::MapMetaData::FPS() const instead.
make[2]: *** [src/SimpleOpenNIMainJAVA_wrap.cxx] Segmentation fault: 11
make[2]: *** Deleting file `src/SimpleOpenNIMainJAVA_wrap.cxx'
make[1]: *** [CMakeFiles/SimpleOpenNI.dir/all] Error 2
make: *** [all] Error 2
--- copy ---
cp: SimpleOpenNI.jar: No such file or directory
cp: libSimpleOpenNI.jnilib: No such file or directory
cp: ./doc/*: No such file or directory

Don't miss the following lines:

-- Looking for include file XnOS.h
-- Looking for include file XnOS.h - not found.
-- Looking for include file XnVSessionManager.h
-- Looking for include file XnVSessionManager.h - not found.

It also seems that you custom command in the CMakelists.txt doesn't run at all.

Hope you can help :)

I have little experience in compiling stuff so I'm kind of melting my brain on 
this one...

Original issue reported on code.google.com by aart.r...@gmail.com on 2 Jun 2012 at 10:35

GoogleCodeExporter commented 9 years ago
You have to install OpenNI by yourself(not the package i distribute). In which 
folder you have the file 'XnOS.h' ? Can find it ?

Original comment by m...@paus.ch on 10 Jun 2012 at 7:09

GoogleCodeExporter commented 9 years ago
Hi Max,

XnOS.h is located in /usr/include/ni/ and XnVSessionManager.h is located in 
/usr/include/nite/

This is the cmake command in buildOsx.sh.

cmake -DCMAKE_BUILD_TYPE=Release \
      -DOPEN_NI_INCLUDE=/usr/include/ni/ \
      -DOPEN_NI_LIB=/usr/lib/ \
      -DXN_NITE_INCLUDE=/usr/include/nite/ \
      -DXN_NITE_LIB=/usr/lib/ \
      -DEIGEN3D_INCLUDE=/usr/local/include/eigen3/ \
      -DP5_JAR=/Applications/Processing.app/Contents/Resources/Java/core.jar \
      -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" \
      ..

Running as sudo doesn't help either so it isn't a permission problem...

Original comment by aart.r...@gmail.com on 10 Jun 2012 at 12:57