CMake Error when running catkin_make -DCATKIN_ENABLE_TESTING=False -DCMAKE_BUILD_TYPE=Release (realsense-ros)
Current Setup: Up Squared Board running Ubuntu 16.04.6, Kernel 4.15, Lib-Realsense 2.33.1, ROS Kinetic and Camera D435i
I'm trying to install the latest ros-realsense into an existing catkin_ws following the instructions here: https://github.com/IntelRealSense/rea...
When I try and run catkin_make -DCATKIN_ENABLE_TESTING=False -DCMAKE_BUILD_TYPE=Release
as per the instructions I get an error stating:
CMake Error at /opt/ros/kinetic/share/roslint/cmake/roslint-extras.cmake:67 (catkin_run_tests_target):
Unknown CMake command "catkin_run_tests_target".
How can I fix this?
The full message is pasted below:
LD_TYPE=Release
Base path: /home/jorge/catkin_ws
Source space: /home/jorge/catkin_ws/src
Build space: /home/jorge/catkin_ws/build
Devel space: /home/jorge/catkin_ws/devel
Install space: /home/jorge/catkin_ws/install
####
#### Running command: "cmake /home/jorge/catkin_ws/src -DCATKIN_ENABLE_TESTING=False -DCMAKE_BUILD_TYPE=Release -DCATKIN_DEVEL_PREFIX=/home/jorge/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/jorge/catkin_ws/install -G Unix Makefiles" in "/home/jorge/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/jorge/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/jorge/catkin_ws/devel;/opt/ros/kinetic
-- This workspace overlays: /home/jorge/catkin_ws/devel;/opt/ros/kinetic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.12", minimum required is "2")
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: False
-- catkin 0.7.20
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 15 packages in topological order:
-- ~~ - joy_teleop
-- ~~ - joystick_drivers (metapackage)
-- ~~ - key_teleop
-- ~~ - mouse_teleop
-- ~~ - realsense2_description
-- ~~ - serial
-- ~~ - teleop_tools (metapackage)
-- ~~ - teleop_tools_msgs
-- ~~ - robot_drive
-- ~~ - ddynamic_reconfigure
-- ~~ - joy
-- ~~ - ps3joy
-- ~~ - spacenav_node
-- ~~ - realsense2_camera
-- ~~ - wiimote
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'joy_teleop'
-- ==> add_subdirectory(teleop_tools/joy_teleop)
-- +++ processing catkin metapackage: 'joystick_drivers'
-- ==> add_subdirectory(joystick_drivers/joystick_drivers)
-- +++ processing catkin package: 'key_teleop'
-- ==> add_subdirectory(teleop_tools/key_teleop)
-- +++ processing catkin package: 'mouse_teleop'
-- ==> add_subdirectory(teleop_tools/mouse_teleop)
-- +++ processing catkin package: 'realsense2_description'
-- ==> add_subdirectory(realsense-ros/realsense2_description)
-- +++ processing catkin package: 'serial'
-- ==> add_subdirectory(serial)
-- +++ processing catkin metapackage: 'teleop_tools'
-- ==> add_subdirectory(teleop_tools/teleop_tools)
-- +++ processing catkin package: 'teleop_tools_msgs'
-- ==> add_subdirectory(teleop_tools/teleop_tools_msgs)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Generating .msg files for action teleop_tools_msgs/Increment /home/jorge/catkin_ws/src/teleop_tools/teleop_tools_msgs/action/Increment.action
-- teleop_tools_msgs: 7 messages, 0 services
-- +++ processing catkin package: 'robot_drive'
-- ==> add_subdirectory(robot_drive)
-- +++ processing catkin package: 'ddynamic_reconfigure'
-- ==> add_subdirectory(ddynamic_reconfigure)
-- +++ processing catkin package: 'joy'
-- ==> add_subdirectory(joystick_drivers/joy)
-- +++ processing catkin package: 'ps3joy'
-- ==> add_subdirectory(joystick_drivers/ps3joy)
-- +++ processing catkin package: 'spacenav_node'
-- ==> add_subdirectory(joystick_drivers/spacenav_node)
-- +++ processing catkin package: 'realsense2_camera'
-- ==> add_subdirectory(realsense-ros/realsense2_camera)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Create Debug Build.
-- realsense2_camera: 2 messages, 0 services
-- +++ processing catkin package: 'wiimote'
-- ==> add_subdirectory(joystick_drivers/wiimote)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- wiimote: 3 messages, 0 services
CMake Error at /opt/ros/kinetic/share/roslint/cmake/roslint-extras.cmake:67 (catkin_run_tests_target):
Unknown CMake command "catkin_run_tests_target".
Call Stack (most recent call first):
joystick_drivers/wiimote/CMakeLists.txt:36 (roslint_add_test)
-- Configuring incomplete, errors occurred!
See also "/home/jorge/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/jorge/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
This Q&A seems at least related: #q291041.
Note the second answer mentioning the realsense drivers.
Yes I saw that answer but wasn't sure what was meant by "building realsense in an isolated work area". Does that mean realsense can't be inside my catkin ws?
You may want to create an overlay and try building the realsense packages in that.
Have no experience with overlays, will I still be able to publish from realsense to the topics/nodes in my catkin ws?