ORB_SLAM icon indicating copy to clipboard operation
ORB_SLAM copied to clipboard

problem when building orbslam on ubuntu 14.04 (vmware)

Open ietr opened this issue 9 years ago • 7 comments

Hello guys,

I got a classic problem but cannot solve it with classic solution.

arifle@ubuntu:~/orbslam/ORB_SLAM/build$ sudo cmake ..
[sudo] password for arifle: 
CMake Error at CMakeLists.txt:2 (include):
  include could not find load file:

    /core/rosbuild/rosbuild.cmake


CMake Error at CMakeLists.txt:5 (rosbuild_init):
  Unknown CMake command "rosbuild_init".


-- Configuring incomplete, errors occurred!
See also "/home/arifle/orbslam/ORB_SLAM/CMakeFiles/CMakeOutput.log".
arifle@ubuntu:~/orbslam/ORB_SLAM/build$ source /opt/ros/indigo/setup.bash 
arifle@ubuntu:~/orbslam/ORB_SLAM/build$ echo $ROS_PACKAGE_PATH
/opt/ros/indigo/share:/opt/ros/indigo/stacks
arifle@ubuntu:~/orbslam/ORB_SLAM/build$ export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/home/arifle/orbslam/ORB_SLAM
arifle@ubuntu:~/orbslam/ORB_SLAM/build$ 
arifle@ubuntu:~/orbslam/ORB_SLAM/build$ sudo cmake ..
CMake Error at CMakeLists.txt:2 (include):
  include could not find load file:

    /core/rosbuild/rosbuild.cmake


CMake Error at CMakeLists.txt:5 (rosbuild_init):
  Unknown CMake command "rosbuild_init".


-- Configuring incomplete, errors occurred!
See also "/home/arifle/orbslam/ORB_SLAM/CMakeFiles/CMakeOutput.log".
arifle@ubuntu:~/orbslam/ORB_SLAM/build$ 

See, nothing changed after setting the path.

ietr avatar Nov 09 '16 08:11 ietr

Try this export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/home/arifle/orbslam/ORB_SLAM/ In this slash is changed.

chaiein avatar Nov 10 '16 07:11 chaiein

Hi @chaiein,

I too have to same error when trying to cmake in build dir.

tried your suggestion too but didn't work. got the same error. Any other suggestion please do comment. Thanks

Hi @ietr,

Please post the solution if you have found one.

Thanks

saurabhagrawal3 avatar Nov 25 '16 07:11 saurabhagrawal3

Not yet, and you? @saurabhagrawal3

arifle avatar Dec 07 '16 06:12 arifle

Not yet. @saurabhagrawal3

arifle avatar Dec 07 '16 07:12 arifle

before that try the $source /opt/ros//setup.bash or Are you using the qtcreator for this? If so , first give $source /opt/ros//setup.bash , then start the qtcreator

Then try export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/home/arifle/orbslam/ORB_SLAM/ or export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/home/arifle/orbslam/ORB_SLAM

chaiein avatar Jan 12 '17 11:01 chaiein

Hi guys, anyone found any solution on this? @arifle @saurabhagrawal3

ckchng avatar Nov 04 '19 04:11 ckchng

Hi guys, anyone found any solution on this? @arifle @saurabhagrawal3

Got it, @chaiein's solution worked for me.

ckchng avatar Nov 04 '19 05:11 ckchng