I am trying to compile the ROS2 interface .so in ROS2 Dashing on Ubuntu 18.04. By just following the steps on the Github repo (https://github.com/CoppeliaRobotics/simExtROS2Interface) I get the following error:
Code: Select all
> colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release -DLIBPLUGIN_DIR=$COPPELIASIM_ROOT_DIR/programming/libPlugin
Starting >>> sim_ros2_interface
--- stderr: sim_ros2_interface
CMake Error at /opt/ros/dashing/share/ament_cmake_core/cmake/symlink_install/ament_cmake_symlink_install_targets.cmake:50 (_install):
_install TARGETS given no LIBRARY DESTINATION for shared library target
"simExtROS2Interface".
Call Stack (most recent call first):
/opt/ros/dashing/share/ament_cmake_core/cmake/symlink_install/install.cmake:37 (ament_cmake_symlink_install_targets)
CMakeLists.txt:128 (install)
---
Failed <<< sim_ros2_interface [ Exited with code 1 ]
Summary: 0 packages finished [1.50s]
1 package failed: sim_ros2_interface
1 package had stderr output: sim_ros2_interface
Code: Select all
set(LIBPLUGIN_DIR ${COPPELIASIM_ROOT_DIR}/programming/libPlugin)
Code: Select all
> colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release -DLIBPLUGIN_DIR=$COPPELIASIM_ROOT_DIR/programming/libPlugin
Starting >>> sim_ros2_interface
--- stderr: sim_ros2_interface
CMake Error at CMakeLists.txt:56 (find_package):
By not providing "FindCoppeliaSim.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"CoppeliaSim", but CMake did not find one.
Could not find a package configuration file provided by "CoppeliaSim"
(requested version 4.0.0.0) with any of the following names:
CoppeliaSimConfig.cmake
coppeliasim-config.cmake
Add the installation prefix of "CoppeliaSim" to CMAKE_PREFIX_PATH or set
"CoppeliaSim_DIR" to a directory containing one of the above files. If
"CoppeliaSim" provides a separate development package or SDK, be sure it
has been installed.
---
Failed <<< sim_ros2_interface [ Exited with code 1 ]
Summary: 0 packages finished [0.69s]
1 package failed: sim_ros2_interface
1 package had stderr output: sim_ros2_interface
Code: Select all
set(CoppeliaSim_DIR ${COPPELIASIM_ROOT_DIR})
I am not an expert on CMake, so this hard time has been a good time to study some concepts. hahaha
I kindly appreciate any suggestions on how to manage that. :)
Best regards.