Rebuild catkin_ws

When I compile the catkin_ws pkg, always some strange error occurs. But because this error which I can’t solve, I will remove /build folder to let it run a new configuration.

Now I record all steps, when I rebuild the catkin_ws.

  1. Gazebo.cmake
Could not find a package configuration file provided by "gazebo" with any of the following names:

    gazeboConfig.cmake
    gazebo-config.cmake
    
Add the installation prefix of "gazebo" to CMAKE_PREFIX_PATH or set  "gazebo_DIR" to a directory containing one of the above files.  If "gazebo" provides a separate development package or SDK, be sure it has been installed.

But actually you can run

 dpkg -L libgazebo7-dev | grep gazebo-config.cmake

to get your path of gazebo-config.cmake :

/usr/lib/x86_64-linux-gnu/cmake/gazebo/gazebo-config.cmake

In the \build, you can find the file CMakeCache.txt.
You may find:

//The directory containing a CMake configuration file for gazebo. 
gazebo_DIR:PATH=gazebo_DIR-NOTFOUND

So you can add the path here:)

  1. Franka.cmake

Franka-Config is also similar.

gazebo_DIR:PATH=/usr/lib/x86_64-linux-gnu/cmake/gazebo

Franka_DIR:PATH=/home/yummy/catkin_ws/src/libfranka/build

This strange problem why I should always add this path to CMakeCache.txt is because CMake can find these directories but catkin can’t …

发布了16 篇原创文章 · 获赞 1 · 访问量 268

猜你喜欢

转载自blog.csdn.net/weixin_45366564/article/details/103303531
今日推荐