ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

error installing openni_kinect from source code

asked 2011-08-26 14:19:10 -0600

vincent gravatar image

I was trying to do the source-based installation of openni_kinect following the instructions here.

But when I typed make, it stopped with some errors:

g++ -MD -MP -MT "./Release/XnSensorImageGenerator.d Release/XnSensorImageGenerator.o" -c -malign-double -O2 -DNDEBUG -I/usr/include/openni -I../../../../Include -I../../../../Source -I../../../../Source/XnCommon -DXN_DEVICE_EXPORTS -fPIC -fvisibility=hidden -o Release/XnSensorImageGenerator.o ../../../../Source/XnDeviceSensorV2/XnSensorImageGenerator.cpp
../../../../Source/XnDeviceSensorV2/XnSensorImageGenerator.cpp: In member function ‘virtual XnStatus XnExportedSensorImageGenerator::EnumerateProductionTrees(xn::Context&, xn::NodeInfoList&, xn::EnumerationErrors*)’:
../../../../Source/XnDeviceSensorV2/XnSensorImageGenerator.cpp:397: error: no matching function for call to ‘xn::Context::CreateProductionTree(xn::NodeInfo&, xn::Device&)’
/usr/include/openni/XnCppWrapper.h:4827: note: candidates are: XnStatus xn::Context::CreateProductionTree(xn::NodeInfo&)
make[3]: *** [Release/XnSensorImageGenerator.o] Error 1
make[3]: Leaving directory `/home/vincent/drivers/ps_engine/build/ps_engine/Platform/Linux-x86/Build/XnDeviceSensorV2'
make[2]: *** [XnDeviceSensorV2] Error 2

make[2]: Leaving directory `/home/vincent/drivers/ps_engine/build/ps_engine/Platform/Linux-x86/Build'
make[1]: *** [installed] Error 2
make[1]: Leaving directory `/home/vincent/drivers/ps_engine'
make: *** [ps_engine_lib] Error 2

Has someone had the same problems before?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2011-08-27 05:20:54 -0600

Anas gravatar image


I had the same problem yesterday, I've just modified XnSensorImageGenerator.cpp in line 397.

nRetVal = context.CreateProductionTree(sensorNode);//, sensor);

and it works !!

PS1 : you are trying to build the drivers in your /home why not build it directly in your ROS_PATH/openni_kinect, I didn't get an error by doing this.

PS2 : If you are doing the same thing that I have done, I think you'll get another error in @sed, you must remove the "@", in the Makefile.

edit flag offensive delete link more


thanks, I was using openni_kinect downloaded from debs which runs well. I just want to try the source code version to see if it gives better performance. But even though it compiles now, i got errors with roslaunch openni_camera openni_node.launch.
vincent gravatar image vincent  ( 2011-09-01 13:27:24 -0600 )edit
cont'd: the log file says: [roscpp_internal] [2011-09-01 22:24:26,403] [thread 0x7fab4d9d37c0]: [DEBUG] UDPROS server listening on port [48266] [roscpp_internal] [2011-09-01 22:24:26,423] [thread 0x7fab4d9d37c0]: [DEBUG] Publisher update for [/clock]: already have these connections:
vincent gravatar image vincent  ( 2011-09-01 13:27:48 -0600 )edit
[roscpp_internal] [2011-09-01 22:24:26,424] [thread 0x7fab4d9d37c0]: [DEBUG] Started node [/openni_node1], pid [4221], bound on [vincent-desktop], xmlrpc port [34971], tcpros port [50368], logging to [/home/vincent/.ros/log/527aaee6-d4ff-11e0-8042-d4856407c2d5/openni_node1-1.log], using [sim] time
vincent gravatar image vincent  ( 2011-09-01 13:28:19 -0600 )edit
[roscpp_internal] [2011-09-01 22:24:26,437] [thread 0x7fab4d9d37c0]: [DEBUG] XML-RPC call [getParam] returned an error (-1): [Parameter [/openni_node1/num_worker_threads] is not set]
vincent gravatar image vincent  ( 2011-09-01 13:28:49 -0600 )edit
[roscpp_internal] [2011-09-01 22:24:26,651] [thread 0x7fab40861700]: [DEBUG] Accepted connection on socket [7], new socket [16]
vincent gravatar image vincent  ( 2011-09-01 13:29:03 -0600 )edit
[roscpp_internal] [2011-09-01 22:24:26,652] [thread 0x7fab40861700]: [DEBUG] TCPROS received a connection from []
vincent gravatar image vincent  ( 2011-09-01 13:29:12 -0600 )edit
[roscpp_internal] [2011-09-01 22:24:26,652] [thread 0x7fab40861700]: [DEBUG] Connection: Creating TransportSubscriberLink for topic [/rosout] connected to [callerid=[/rosout] address=[TCPROS connection to [ on socket 16]]]
vincent gravatar image vincent  ( 2011-09-01 13:29:20 -0600 )edit
[ros.openni_camera./openni_node1] [2011-09-01 22:24:28,087] [thread 0x7fab4d9d37c0]: [INFO] [/openni_node1] Number devices connected: 1171354718
vincent gravatar image vincent  ( 2011-09-01 13:29:27 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2011-08-26 14:19:10 -0600

Seen: 531 times

Last updated: Aug 27 '11