Could not find package after building moveit from source
Hi!
I have built MoveIt
from source and in ws_moveit
workspace.
However, when I include related Moveit
header files in another workspace
#include <moveit_visual_tools/moveit_visual_tools.h>
, I met this error
Could not find a package configuration file provided by
"moveit_visual_tools" with any of the following names:
moveit_visual_toolsConfig.cmake
moveit_visual_tools-config.cmake
Add the installation prefix of "moveit_visual_tools" to CMAKE_PREFIX_PATH
or set "moveit_visual_tools_DIR" to a directory containing one of the above
files. If "moveit_visual_tools" provides a separate development package or
SDK, be sure it has been installed.
I have tried find_package(moveit_visual_tools REQUIRED)
and <depend>moveit_visual_tools</depend>
, but this error didn't disappear.
I think this error is caused by CMAKE_PREFIX_PATH
.
Some related questions, such as this, are answered with a sudo apt-get install ros-
solution, but I want to build moveit
from source for trying to contribute new features.
I'm not sure if I'm on the right point. Could you give me some advice on how to solve this error?
Thanks!
If you close a question, please provide the solution.
Better yet: don't close it, but post your own answer and accept that answer.
Sure @gvdhoorn, could you help me reopen the answer and I post my solution? I don't have enough points.
Done.
You probably won't be able to accept your own answer either, but if you let me know when you've done that, I'll accept it for you.
I assume this is also you: ros-planning/moveit#3476?
Cross-posting like this is not very nice.
I'm so sorry I didn't realize that cross-post was not a nice behavior.
I'll be very mindful of such behavior in the future.
Thanks for the reminder and the help from you. I will ensure that this does not happen again.