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

rgbdslam build error

asked 2012-09-03 19:19:53 -0500

sunilsulania9192 gravatar image

updated 2014-01-28 17:13:33 -0500

ngrennan gravatar image

Hello! I tried installing rgbdslam, but got this error:

{------------------------------------------------------------------------------- rm -rf lib include bin mkdir -p build/g2o/build cd build/g2o/build && cmake ../ -DCMAKE_INSTALL_PREFIX=/home/sunilsulania/ros/g2o && make install CMake Error: The source directory "/home/sunilsulania/ros/g2o/build/g2o" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. -------------------------------------------------------------------------------} [

I have Ubuntu 11.04 and ros-electric version on my laptop. I was successful in doing same on workstation with same Ubuntu and ros versions. The only difference here in laptop is that I dont have root, and someone had already worked on this lappy with rgbdslam and g20 etc. I am new to ROS, will appreciate any help! Thanks in advance! Sourav

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2012-09-03 21:16:02 -0500

Sudhan gravatar image

I think the error is only with g2o. Have you built g2o before rgbdslam? If not do,

$rosmake g2o

$rosmake rgbdslam

otherwise (if g2o is already built)

$rosmake --pre-clean rgbdslam.

edit flag offensive delete link more
0

answered 2012-09-04 01:49:19 -0500

Sourav gravatar image

updated 2012-09-04 17:10:37 -0500

I tried:

rosmake g2o

but it gave same error,

rosmake --pre-clean rgbdslam

did work but now its stuck somewhere as it has already spent 4700 seconds so far compiling it and still compilation is on: [ rosmake ] [ make ] [g2o: 4856.8 sec] [ 1 Active 51/53 Complete ] Any suggestions what I am doing wrong?

PS: The question was posted from my colleague's id.


I let it run in evening and it ended up with the folllowing:

*[rosmake-2] Finished <<< pcl_ros ROS_NOBUILD in package pcl_ros
[rosmake-2] Starting >>> rgbdslam [ make ]
[ rosmake ] Last 40 linesbdslam: 10.1 sec ] [ 1 Active 52/53 Complete ] {------------------------------------------------------------------------------- make targets \ "ANNLIB = libANN.a" \ "C++ = g++" \ "CFLAGS = -O3" \ "MAKELIB = ar ruv" \ "RANLIB = true" make[3]: Entering directory /home/sunilsulania/ros/rgbdslam/external/gicp/ann_1.1.2/sample' make[3]: Nothing to be done fortargets'. make[3]: Leaving directory /home/sunilsulania/ros/rgbdslam/external/gicp/ann_1.1.2/sample' make[2]: Leaving directory/home/sunilsulania/ros/rgbdslam/external/gicp/ann_1.1.2/sample' cd ann2fig ; make linux-g++ make[2]: Entering directory /home/sunilsulania/ros/rgbdslam/external/gicp/ann_1.1.2/ann2fig' make targets \ "ANNLIB = libANN.a" \ "C++ = g++" \ "CFLAGS = -O3" \ "MAKELIB = ar ruv" \ "RANLIB = true" make[3]: Entering directory/home/sunilsulania/ros/rgbdslam/external/gicp/ann_1.1.2/ann2fig' make[3]: Nothing to be done for targets'. make[3]: Leaving directory/home/sunilsulania/ros/rgbdslam/external/gicp/ann_1.1.2/ann2fig' make[2]: Leaving directory /home/sunilsulania/ros/rgbdslam/external/gicp/ann_1.1.2/ann2fig' make[1]: Leaving directory/home/sunilsulania/ros/rgbdslam/external/gicp/ann_1.1.2'


CMake Error at CMakeLists.txt:134 (FILE): file COPY cannot set permissions on "/home/sunilsulania/ros/rgbdslam/lib//libANN.a"

-- Eigen found (include: /usr/include/eigen3) [rosbuild] Couldn't find source file /home/sunilsulania/ros/rgbdslam/build/src/moc_qtros.cxx; assuming that it is in /home/sunilsulania/ros/rgbdslam and will be generated later [rosbuild] Couldn't find source file /home/sunilsulania/ros/rgbdslam/build/src/moc_openni_listener.cxx; assuming that it is in /home/sunilsulania/ros/rgbdslam and will be generated later [rosbuild] Couldn't find source file /home/sunilsulania/ros/rgbdslam/build/src/moc_qt_gui.cxx; assuming that it is in /home/sunilsulania/ros/rgbdslam and will be generated later [rosbuild] Couldn't find source file /home/sunilsulania/ros/rgbdslam/build/src/moc_graph_manager.cxx; assuming that it is in /home/sunilsulania/ros/rgbdslam and will be generated later [rosbuild] Couldn't find source file /home/sunilsulania/ros/rgbdslam/build/src/moc_glviewer.cxx; assuming that it is in /home/sunilsulania/ros/rgbdslam and will be generated later [rosbuild] Couldn't find source file /home/sunilsulania/ros/rgbdslam/build/src/moc_ros_service_ui.cxx; assuming that it is in /home/sunilsulania/ros/rgbdslam and will be generated later -- Configuring incomplete, errors occurred! -------------------------------------------------------------------------------} [ rosmake ] Output from build of package rgbdslam written to: [ rosmake ] /home/sunilsulania/.ros/rosmake/rosmake_output-20120904-174248/rgbdslam/build_output.log
[rosmake-2] Finished <<< rgbdslam [FAIL] [ 10.21 seconds ]
[ rosmake ] Halting due to failure in package rgbdslam. [ rosmake ] Waiting for other threads to complete.
[ rosmake ] Results:
[ rosmake ] Cleaned ... (more)

edit flag offensive delete link more

Comments

If it is still compiling, wait for that to end and no other go it has. In case, there is any error, post it.

Sudhan gravatar image Sudhan  ( 2012-09-04 02:10:20 -0500 )edit

I had earlier stopped it at 6000 seconds; and then ran it again, with following error: (Edit in previous answer as per rules.)

Sourav gravatar image Sourav  ( 2012-09-04 17:03:26 -0500 )edit

Thanks, the compilation error was because there was already rgbdslam at some other location, which may had led to some conflicts. I removed all such rgbdslam directories and it compiled successfully, but with warnings related to libopebcv2.3 and libopencv2.4 conflicts.

Sourav gravatar image Sourav  ( 2012-09-04 19:08:25 -0500 )edit

Now there is runtime error, launch is successful, it opens up the window shows the frame, but as soon as I press Enter or Space key it says: Pause toggled to: false...Construction of Node with SURF Features...[rgbdslam-7] process has died [pid 11193, exit code -11]

Sourav gravatar image Sourav  ( 2012-09-04 19:10:49 -0500 )edit

Question Tools

Stats

Asked: 2012-09-03 19:19:53 -0500

Seen: 903 times

Last updated: Sep 04 '12