6-robot / wpr_simulation

GNU General Public License v3.0
379 stars 60 forks source link

CMake Error! Please help me! #15

Open Chinafsh opened 1 year ago

Chinafsh commented 1 year ago

CMake Error at /opt/ros/melodic/share/robot_state_publisher/cmake/robot_state_publisherConfig.cmake:113 (message): Project 'robot_state_publisher' specifies '/usr/include/eigen3' as an include dir, which is not found. It does neither exist as an absolute directory nor in '${{prefix}}//usr/include/eigen3'. Check the website 'http://wiki.ros.org/robot_state_publisher' for information and consider reporting the problem. Call Stack (most recent call first): /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:76 (find_package) wpr_simulation/CMakeLists.txt:10 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/fsh/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/fsh/catkin_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed

Please help me! Thanks!

Chinafsh commented 1 year ago

Should I move the eigen3 from /usr/local/include/ to /usr/include/ ???

lvwinbor commented 2 months ago

This bug feels like a version conflict for Eigen3. Actually, you will get Eigen3 if you install ros. It is not necessary to install Eigen3 again from github. So you just need to remove the Eigen3 that you install from github. I've had this problem too. I solved this problem by this way. 这个错误感觉像是 Eigen3 的版本冲突。其实ros是自带 Eigen3库的,没有必要从 github 再次使用源码编译安装 Eigen3。因此,您只需要删除您从github编译安装的 Eigen3。我也遇到过这个问题,我就是通过这种方式解决了这个问题。