Error compiling openni2_camera -> libopenni2_wrapper.so
I'am trying to get openNi2_camera with ros hydro running on a raspberry pi. The other files just went fine, now the executeable is failing with the following error:
Scanning dependencies of target openni2_camera_node
[ 92%] Building CXX object openni2_camera/CMakeFiles/openni2_camera_node.dir/ros/openni2_camera_node.cpp.o
/tmp/ccU7U6HY.s: Assembler messages:
/tmp/ccU7U6HY.s:82: Warning: swp{b} use is deprecated for this architecture
Linking CXX executable /home/pi/catkin_ws/devel/lib/openni2_camera/openni2_camera_node
/home/pi/catkin_ws/devel/lib/libopenni2_wrapper.so: undefined reference to `oniStreamRegisterNewFrameCallback'
/home/pi/catkin_ws/devel/lib/libopenni2_wrapper.so: undefined reference to `oniStreamGetProperty'
/home/pi/catkin_ws/devel/lib/libopenni2_wrapper.so: undefined reference to `oniDeviceIsCommandSupported'
/home/pi/catkin_ws/devel/lib/libopenni2_wrapper.so: undefined reference to `oniDeviceSetProperty'
I couldn't use apt-get install libopenni2-dev
, which is why I compiled everything from the source, having working Sample-Apps of OpenNi2 like SimpleRead.
I also added something to the CMakeLists.txt like that:
set(PC_OPENNI2_LIBRARIES /home/pi/OpenNI2/)
include_directories(${PC_OPENNI2_LIBRARIES}/Include)
include_directories(${PC_OPENNI2_LIBRARIES}/Source)
Thanks for any advice in advance