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

Error compiling libfreenect stack

asked 2012-10-31 10:17:09 -0500

MartinW gravatar image

Hello all,

I am currently trying to rosmake the freenect_stack Piyush is maintaining. I downloaded the drivers on the desktop in the lab and they compiled fine. However, when I tried to compile on the laptop in the lab rosmake gave me the following errors (specifically in the libfreenect stack):

 [rosmake-0] Starting >>> libfreenect [ make ]                                   
[ rosmake ] All 28 lines
{-------------------------------------------------------------------------------
  mkdir -p build/OpenKinect-libfreenect-9ab2c20/build
  cd build/OpenKinect-libfreenect-9ab2c20/build && cmake ../ 
  -- Operating system is Linux
  -- Got System Processor x86_64
  -- Linux x86_64 Detected
  -- libfreenect will be installed to /usr/local
  -- Headers will be installed to /usr/local/include/libfreenect
  -- Libraries will be installed to /usr/local/lib64
  CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
  Please set them or make sure they are set and tested correctly in the CMake files:
  GLUT_Xi_LIBRARY (ADVANCED)
      linked by target "glpclview" in directory /opt/ros/fuerte/stacks/freenect_stack/libfreenect/build/OpenKinect-libfreenect-9ab2c20/examples
      linked by target "glview" in directory /opt/ros/fuerte/stacks/freenect_stack/libfreenect/build/OpenKinect-libfreenect-9ab2c20/examples
      linked by target "hiview" in directory /opt/ros/fuerte/stacks/freenect_stack/libfreenect/build/OpenKinect-libfreenect-9ab2c20/examples
      linked by target "regview" in directory /opt/ros/fuerte/stacks/freenect_stack/libfreenect/build/OpenKinect-libfreenect-9ab2c20/examples
      linked by target "cppview" in directory /opt/ros/fuerte/stacks/freenect_stack/libfreenect/build/OpenKinect-libfreenect-9ab2c20/wrappers/cpp
  GLUT_Xmu_LIBRARY (ADVANCED)
      linked by target "glpclview" in directory /opt/ros/fuerte/stacks/freenect_stack/libfreenect/build/OpenKinect-libfreenect-9ab2c20/examples
      linked by target "glview" in directory /opt/ros/fuerte/stacks/freenect_stack/libfreenect/build/OpenKinect-libfreenect-9ab2c20/examples
      linked by target "hiview" in directory /opt/ros/fuerte/stacks/freenect_stack/libfreenect/build/OpenKinect-libfreenect-9ab2c20/examples
      linked by target "regview" in directory /opt/ros/fuerte/stacks/freenect_stack/libfreenect/build/OpenKinect-libfreenect-9ab2c20/examples
      linked by target "cppview" in directory /opt/ros/fuerte/stacks/freenect_stack/libfreenect/build/OpenKinect-libfreenect-9ab2c20/wrappers/cpp
  LIBUSB_1_LIBRARY
      linked by target "freenect" in directory /opt/ros/fuerte/stacks/freenect_stack/libfreenect/build/OpenKinect-libfreenect-9ab2c20/src
      linked by target "freenectstatic" in directory /opt/ros/fuerte/stacks/freenect_stack/libfreenect/build/OpenKinect-libfreenect-9ab2c20/src

  -- Configuring incomplete, errors occurred!
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package libfreenect written to:
[ rosmake ]    /root/.ros/rosmake/rosmake_output-20121031-140959/libfreenect/build_output.log
[rosmake-0] Finished <<< libfreenect [FAIL] [ 0.10 seconds ]                    
[ rosmake ] Halting due to failure in package libfreenect. 
[ rosmake ] Waiting for other threads to complete.
[ rosmake ] Results:                                                            
[ rosmake ] Built 1 packages with 1 failures.                                   
[ rosmake ] Summary output to directory                                         
[ rosmake ] /root/.ros/rosmake/rosmake_output-20121031-140959

Does anyone know what these errors are from? Thanks for all the help with these compiling issues.

Kind Regards, Martin

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2012-11-12 07:48:29 -0500

updated 2012-11-12 08:13:36 -0500

The package has not compiled locally on your machine, so the the launch results in the above error. Try the system package ros-fuerte-freenect-stack. See http://www.ros.org/wiki/freenect_stack

edit flag offensive delete link more
0

answered 2012-10-31 11:44:49 -0500

MartinW gravatar image

updated 2012-10-31 12:33:03 -0500

Edit to my previous post. rosmake does not properly make the freenect_stack after using "cmake .." in each of the subdirectories. How can I get freenect_stack to compile properly?

The error after running the supposedly compiled freenect_stack using roslaunch freenect_launch freenect.launch:

[ERROR] [1351722461.697346102]: Failed to load nodelet [/camera/driver] of type [freenect_camera/driver]: Failed to load library /opt/ros/fuerte/stacks/freenect_stack/freenect_camera/lib/libfreenect_nodelet.so. Make sure that you are calling the PLUGINLIB_REGISTER_CLASS macro in the library code, and that names are consistent between this macro and your XML. Error string: Cannot load library: /opt/ros/fuerte/stacks/freenect_stack/freenect_camera/lib/libfreenect_nodelet.so: cannot open shared object file: No such file or directory
[FATAL] [1351722461.703316462]: Service call failed!

Moreover, the built folders in the freenect stack differ from the properly working desktop to the nonworking computer: on the desktop we have build and bin folders in freenect_camera and _launch. However on the nonworking computer we have no such folders in those subdirectories of freenect_stack.

I hope someone can help us out with this error. Many thanks in advance!

Kind Regards, Martin

Regards, Martin

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-10-31 10:17:09 -0500

Seen: 874 times

Last updated: Oct 31 '12