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 #46

Open
eeelie opened this issue Mar 25, 2022 · 5 comments
Open

CMake Error #46

eeelie opened this issue Mar 25, 2022 · 5 comments

Comments

@eeelie
Copy link

eeelie commented Mar 25, 2022

I'm using Windows Subsystem for Linux, I've cloned the repository and when trying to run catkin_make, I'm getting this error:
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'mujoco_ros_pkgs'
-- ==> add_subdirectory(mujoco_ros_pkgs/mujoco_ros_pkgs)
-- +++ processing catkin package: 'mujoco_ros_msgs'
-- ==> add_subdirectory(mujoco_ros_pkgs/mujoco_ros_msgs)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Could NOT find object_recognition_msgs (missing: object_recognition_msgs_DIR)
-- Could not find the required component 'object_recognition_msgs'. 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/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by
"object_recognition_msgs" with any of the following names:

object_recognition_msgsConfig.cmake
object_recognition_msgs-config.cmake

Add the installation prefix of "object_recognition_msgs" to
CMAKE_PREFIX_PATH or set "object_recognition_msgs_DIR" to a directory
containing one of the above files. If "object_recognition_msgs" provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
mujoco_ros_pkgs/mujoco_ros_msgs/CMakeLists.txt:10 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/esvoll/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/esvoll/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:320: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

__
Could you help me with this? I'm running Ubuntu 18.04 on wsl, and ROS melodic

@biofotis
Copy link
Contributor

You need to clone the repositories here as well: https://github.com/shadow-robot/sr_interface/blob/noetic-devel/repository.rosinstall
However if you like to run everything without any missing packages you better clone everything we include in our dexterous hand images here https://github.com/shadow-robot/shadow_dexterous_hand/blob/noetic-devel/repository.rosinstall

@eeelie
Copy link
Author

eeelie commented Mar 29, 2022

Thank you for the response! I've cloned everything (from melodic-devel) and am still having this problem. Here's the error message:


-- +++ processing catkin package: 'mujoco_ros_msgs'
-- ==> add_subdirectory(mujoco_ros_pkgs/mujoco_ros_msgs)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Could NOT find object_recognition_msgs (missing: object_recognition_msgs_DIR)
-- Could not find the required component 'object_recognition_msgs'. 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/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by
"object_recognition_msgs" with any of the following names:

object_recognition_msgsConfig.cmake
object_recognition_msgs-config.cmake

Add the installation prefix of "object_recognition_msgs" to
CMAKE_PREFIX_PATH or set "object_recognition_msgs_DIR" to a directory
containing one of the above files. If "object_recognition_msgs" provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
mujoco_ros_pkgs/mujoco_ros_msgs/CMakeLists.txt:10 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/esvoll/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/esvoll/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:320: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

I haven't been able to locate the missing files. Any advice on where to look or what specifically I need to install?

@biofotis
Copy link
Contributor

Have you ran rosdep install --from-paths src --ignore-src --rosdistro melodic -y
on your base folder?

@eeelie
Copy link
Author

eeelie commented Apr 5, 2022

Yes, it didn't seem to solve the problem.

I got this error message that seems to have to do with other dependencies:

$ rosdep install --from-paths src --ignore-src --rosdistro melodic -y

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
sr_robot_lib: Cannot locate rosdep definition for [sr_interpolation]
cyberglove: Cannot locate rosdep definition for [cereal_port]
sr_hand_health_report: Cannot locate rosdep definition for [sr_system_info]

@biofotis
Copy link
Contributor

biofotis commented Apr 6, 2022

sr_interpolation and sr_system_info is in sr_utils repo
cereal_port is a repo as well

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