Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake Error! Please help me! #15

Open
Chinafsh opened this issue Dec 27, 2022 · 2 comments
Open

CMake Error! Please help me! #15

Chinafsh opened this issue Dec 27, 2022 · 2 comments

Comments

@Chinafsh
Copy link

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
Copy link
Author

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

@lvwinbor
Copy link

lvwinbor commented May 2, 2024

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。我也遇到过这个问题,我就是通过这种方式解决了这个问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants