tork-a / jog_control

Apache License 2.0
55 stars 18 forks source link

catkin_makeでエラー #12

Closed hasidume closed 6 years ago

hasidume commented 6 years ago

jog_controlのソースをGitHubからダウンロードして、catkin_makeしたところ、 以下のエラーが発生しました。何が原因でしょうか?

CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package): 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. Call Stack (most recent call first): jog_control/jog_controller/CMakeLists.txt:6 (find_package)

-- Could not find the required component 'moveit_visual_tools'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): 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. Call Stack (most recent call first): jog_control/jog_controller/CMakeLists.txt:6 (find_package)

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

7675t commented 6 years ago

jog_controllerがmoveit_visual_toolsパッケージに依存していますが,パッケージがシステムにインストールされていないためにビルドできないようです.

$ cd ~/ws
$ rosdep install -r --from-path src --ignore-src

とすると,ビルド時に依存するパッケージを自動でaptで取得することができます. その後,もう一度ビルドしてみてください.

hasidume commented 6 years ago

ご教授頂きました方法で、catkin_makeは通りました。 有難う御座いました。