raulmur / ORB_SLAM2

Real-Time SLAM for Monocular, Stereo and RGB-D Cameras, with Loop Detection and Relocalization Capabilities
Other
9.33k stars 4.69k forks source link

./build_ros.sh Here's always compile error, also can't solve, ask for help #1001

Open wxq1117 opened 3 years ago

wxq1117 commented 3 years ago

Here's an error tip: CMake Error at /opt/ros/melodic/share/ros/core/rosbuild/public.cmake:129 (message):

Failed to invoke rospack to get compile flags for package 'ORB_SLAM2'. Look above for errors from rospack itself. Aborting. Please fix the broken dependency!

Call Stack (most recent call first): /opt/ros/melodic/share/ros/core/rosbuild/public.cmake:207 (rosbuild_invoke_rospack) CMakeLists.txt:4 (rosbuild_init)

-- Configuring incomplete, errors occurred! See also "/home/wxq/catkin_ws/src/orbslam2/Examples/ROS/ORB_SLAM2/build/CMakeFiles/CMakeOutput.log". make: *** 没有指明目标并且找不到 makefile。 停止。

I hope you can help me

3D-A commented 2 years ago

i have the same problem