ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

openni kinect: build errors

asked 2011-09-08 20:21:28 -0600

ychua gravatar image

I have problems installing openni_kinect stack. I can't install the openni drivers on my system. I meet the following errors in my 'make':

../../../../../Wrappers/OpenNI.jni/methods.inl:314: warning: deprecated conversion from string constant to ‘char’ /bin/sh: javac: not found make[3]: [../../../Bin/Release/org.OpenNI.jar] Error 127 make[2]: [Wrappers/] Error 2 failed to execute: make PLATFORM=x86 -C ../Build > /home/yuanwei/drivers/openni/build/openni/Platform/Linux-x86/CreateRedist/Output/BuildOpenNI.txt Building Failed! make[1]: [installed] Error 1 make[1]: Leaving directory `/home/yuanwei/drivers/openni' make: * [openni_lib] Error 2

I've installed java sdk but these errors still stay. Any ideas how to solve this?

edit retag flag offensive close merge delete


I was following the instruction to install the openni_kinect stack. And this is the point where I'm stuck hg clone cd drivers make
ychua gravatar image ychua  ( 2011-09-08 21:35:38 -0600 )edit
We're going to need to know more about your system. What platform? What hardare? What versions? If you're on ubuntu, why not just install using the pre-built packages?
Mac gravatar image Mac  ( 2011-09-09 02:10:26 -0600 )edit
my system is ubuntu 10.04, kernel linux 2.6.32-33-generic-pae, GNOME 2.30.2. My hardware is Intel Core2 duo CPU E8400. Pre-built packages? How do I install the pre-built packages? any url that you can point me to?
ychua gravatar image ychua  ( 2011-09-11 13:28:26 -0600 )edit
Use the electric install instructions: Then, do sudo apt-get install openni-kinect (I'm remember that package name off the top of my head; might be slightly wrong).
Mac gravatar image Mac  ( 2011-09-12 02:15:48 -0600 )edit

2 Answers

Sort by » oldest newest most voted

answered 2011-09-12 13:05:12 -0600

ychua gravatar image

Hi Mac, Thanks for your kindness and suggestions. I've managed to resolve the problem. It seems that even though I've followed the java sdk installation instructions from the oracle website, the default java version is always openjdk.

sudo apt-get install python-software-properties sudo add-apt-repository ppa:sun-java-community-team/sun-java6 sudo apt-get update sudo apt-get install sun-java6-jdk

I did the above steps to install the java6-sdk. And the openni-kinect driver builds successfully now!

edit flag offensive delete link more


Thanks! This worked!

Joy16 gravatar image Joy16  ( 2017-02-27 17:59:19 -0600 )edit

answered 2011-09-08 21:36:12 -0600

ychua gravatar image

I was following the instruction to install the openni_kinect stack. And this is the point where I'm stuck

hg clone
cd drivers

edit flag offensive delete link more


Pls mention the issue that you faced. by following these instructions
karthik gravatar image karthik  ( 2011-10-19 03:42:18 -0600 )edit

Question Tools


Asked: 2011-09-08 20:21:28 -0600

Seen: 2,191 times

Last updated: Sep 12 '11