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

catkin_make error using rgbdsalm_v2 kinect ONE (v2) [closed]

asked 2018-03-03 13:53:53 -0500

skynet gravatar image

updated 2018-03-05 10:25:20 -0500

Hello, I am running ROS kinetic on Ubuntu 16.04 on an Intel NUC and I am trying to use a kinect one (kinect v2) to generate 3D point clouds. I have soldered 12V and ground leads to pin 10 and ground and am using a 3.0 USB cable to the NUC. I have verified that the Kinect V2 is working by installing the driver libfreenect2 and executed bash ./bin/Protonect which gave me four feeds of the different sensors.

I installed rgbdslam_v2 from here ) using the install.sh which seemed to work and installed g2ofork too. I then exported the environment variable export G2O_DIR=home/astrobotics/ros_code/src/g2ofork, and attempted to catkin_make

the error I am getting is at the bottom of the catkin_make output

-- The imported target "vtk" references the file
   "/usr/bin/vtk"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.
-- looking for PCL_COMMON
-- looking for PCL_OCTREE
-- looking for PCL_IO
-- Searching for g2o ...
-- Searching for g2o in home/astrobotics/ros_code/src/g2ofork
CMake Error at rgbdslam_catkin_ws/src/rgbdslam/cmake-modules/FindG2O.cmake:78 (message):
  Could not find libg2o!
Call Stack (most recent call first):
  rgbdslam_catkin_ws/src/rgbdslam/CMakeLists.txt:91 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/astrobotics/ros_code/build/CMakeFiles/CMakeOutput.log".
See also "/home/astrobotics/ros_code/build/CMakeFiles/CMakeError.log".
Makefile:4140: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

It seems like it cannot find libg2o. does anyone have any suggestions?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by skynet
close date 2018-03-23 18:40:38.680268

Comments

Something to consider for the future: about 90% of the log shows warnings, and only the last 10 lines had an error (which is also the only error directly mentioning g2o). It might be best to post excerpts in the beginning, and only relevant parts. Forum members will ask for more if needed.

gvdhoorn gravatar image gvdhoorn  ( 2018-03-04 01:15:40 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2018-03-04 01:13:16 -0500

gvdhoorn gravatar image
export G2O_DIR=home/astrobotics/ros_code/src/g2ofork

This is a guess, but you're probably missing a forward slash (/) here at the beginning of the path. It should be /home/astrobotics/...

Right now it's relative to whatever the CWD is, which is probably not what you want./intended.

edit flag offensive delete link more

Comments

@gvdhoorn thank you for the advice; I updated the question and the / before the directory was the issue.

skynet gravatar image skynet  ( 2018-03-05 10:25:26 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-03-03 13:53:53 -0500

Seen: 417 times

Last updated: Mar 05 '18