raulmur / ORB_SLAM

A Versatile and Accurate Monocular SLAM
http://webdiis.unizar.es/~raulmur/orbslam/
Other
1.5k stars 813 forks source link

problem when building orbslam on ubuntu 14.04 (vmware) #124

Open ietr opened 7 years ago

ietr commented 7 years ago

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.

chaiein commented 7 years ago

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

saurabhagrawal3 commented 7 years ago

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

arifle commented 7 years ago

Not yet, and you? @saurabhagrawal3

arifle commented 7 years ago

Not yet. @saurabhagrawal3

chaiein commented 7 years ago

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

ckchng commented 4 years ago

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

ckchng commented 4 years ago

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

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