Catkin_make error in ROS Melodic with Jetpack 4.4.1

I’m trying to build my ROS catkin space but I’m having trouble building the cv_bridge package, getting this error:

nvidiaagx-desktop:~/catkin_ws$ catkin_make
Base path: /home/nvidiaagx/catkin_ws
Source space: /home/nvidiaagx/catkin_ws/src
Build space: /home/nvidiaagx/catkin_ws/build
Devel space: /home/nvidiaagx/catkin_ws/devel
Install space: /home/nvidiaagx/catkin_ws/install

Running command: “make cmake_check_build_system” in “/home/nvidiaagx/catkin_ws/build”

– Using CATKIN_DEVEL_PREFIX: /home/nvidiaagx/catkin_ws/devel
– Using CMAKE_PREFIX_PATH: /opt/ros/melodic
– This workspace overlays: /opt/ros/melodic
– Found PythonInterp: /usr/bin/python2 (found suitable version “2.7.17”, minimum required is “2”)
– Using PYTHON_EXECUTABLE: /usr/bin/python2
– Using Debian Python package layout
– Using empy: /usr/bin/empy
– Using CATKIN_ENABLE_TESTING: ON
– Call enable_testing()
– Using CATKIN_TEST_RESULTS_DIR: /home/nvidiaagx/catkin_ws/build/test_results
– Found gtest sources under ‘/usr/src/googletest’: gtests will be built
– Found gmock sources under ‘/usr/src/googletest’: gmock will be built
– Found PythonInterp: /usr/bin/python2 (found version “2.7.17”)
– Using Python nosetests: /usr/bin/nosetests-2.7
– catkin 0.7.29
– BUILD_SHARED_LIBS is on
– BUILD_SHARED_LIBS is on
– ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
– ~~ traversing 9 packages in topological order:
– ~~ - image_transport_plugins (metapackage)
– ~~ - opencv_tests
– ~~ - vision_opencv (metapackage)
– ~~ - cv_bridge
– ~~ - image_geometry
– ~~ - compressed_depth_image_transport
– ~~ - compressed_image_transport
– ~~ - theora_image_transport
– ~~ - rtabmap_ros
– ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
– +++ processing catkin metapackage: ‘image_transport_plugins’
– ==> add_subdirectory(image_transport_plugins/image_transport_plugins)
– +++ processing catkin package: ‘opencv_tests’
– ==> add_subdirectory(vision_opencv/opencv_tests)
– +++ processing catkin metapackage: ‘vision_opencv’
– ==> add_subdirectory(vision_opencv/vision_opencv)
– +++ processing catkin package: ‘cv_bridge’
– ==> add_subdirectory(vision_opencv/cv_bridge)
– Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython2.7.so (found version “2.7.17”)
CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1626 (message):
No header defined for python37; skipping header check
Call Stack (most recent call first):
vision_opencv/cv_bridge/CMakeLists.txt:11 (find_package)

CMake Error at /usr/share/cmake-3.10/Modules/FindBoost.cmake:1947 (message):
Unable to find the requested Boost libraries.

Boost version: 1.65.1

Boost include path: /usr/include

Could not find the following Boost libraries:

      boost_python37

No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
Call Stack (most recent call first):
vision_opencv/cv_bridge/CMakeLists.txt:11 (find_package)

– Found OpenCV: /usr (found suitable version “4.1.1”, minimum required is “4”) found components: opencv_core opencv_imgproc opencv_imgcodecs
– Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython2.7.so (found suitable version “2.7.17”, minimum required is “2.7”)
– +++ processing catkin package: ‘image_geometry’
– ==> add_subdirectory(vision_opencv/image_geometry)
– Found OpenCV: /usr (found version “4.1.1”)
– +++ processing catkin package: ‘compressed_depth_image_transport’
– ==> add_subdirectory(image_transport_plugins/compressed_depth_image_transport)
– +++ processing catkin package: ‘compressed_image_transport’
– ==> add_subdirectory(image_transport_plugins/compressed_image_transport)
– +++ processing catkin package: ‘theora_image_transport’
– ==> add_subdirectory(image_transport_plugins/theora_image_transport)
– Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
– theora_image_transport: 1 messages, 0 services
– +++ processing catkin package: ‘rtabmap_ros’
– ==> add_subdirectory(rtabmap_ros)
– Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Warning at rtabmap_ros/CMakeLists.txt:28 (find_package):
By not providing “Findapriltag_ros.cmake” in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
“apriltag_ros”, but CMake did not find one.

Could not find a package configuration file provided by “apriltag_ros” with
any of the following names:

apriltag_rosConfig.cmake
apriltag_ros-config.cmake

Add the installation prefix of “apriltag_ros” to CMAKE_PREFIX_PATH or set
“apriltag_ros_DIR” to a directory containing one of the above files. If
“apriltag_ros” provides a separate development package or SDK, be sure it
has been installed.

CMake Warning at rtabmap_ros/CMakeLists.txt:30 (find_package):
By not providing “Findfind_object_2d.cmake” in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
“find_object_2d”, but CMake did not find one.

Could not find a package configuration file provided by “find_object_2d”
with any of the following names:

find_object_2dConfig.cmake
find_object_2d-config.cmake

Add the installation prefix of “find_object_2d” to CMAKE_PREFIX_PATH or set
“find_object_2d_DIR” to a directory containing one of the above files. If
“find_object_2d” provides a separate development package or SDK, be sure it
has been installed.

– The imported target “vtkRenderingPythonTkWidgets” references the file
“/usr/lib/aarch64-linux-gnu/libvtkRenderingPythonTkWidgets.so”
but this file does not exist. Possible reasons include:

  • The file was deleted, renamed, or moved to another location.
  • An install or uninstall procedure did not complete successfully.
  • The installation package was faulty and contained
    “/usr/lib/cmake/vtk-6.3/VTKTargets.cmake”
    but not all the files it references.

– The imported target “vtk” references the file
“/usr/bin/vtk”
but this file does not exist. Possible reasons include:

  • The file was deleted, renamed, or moved to another location.
  • An install or uninstall procedure did not complete successfully.
  • The installation package was faulty and contained
    “/usr/lib/cmake/vtk-6.3/VTKTargets.cmake”
    but not all the files it references.

– RTABMAP_SYNC_MULTI_RGBD = OFF
– RTABMAP_SYNC_USER_DATA = OFF
– rtabmap_ros: 17 messages, 11 services
– WITH octomap_msgs
– WITH rviz
– WITH costmap_2d
– Configuring incomplete, errors occurred!
See also “/home/nvidiaagx/catkin_ws/build/CMakeFiles/CMakeOutput.log”.
See also “/home/nvidiaagx/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 cannot seem to find this error online, which makes me think its related to the Jetpack version,
I’m running Jetpack 4.1.1 with ubuntu 18.04,

any idea whee to go from here?

thanks

Don’t have a solution, but a similar issue with ROS-melodic on JP 4.4.1 where BoostLib is involved. I try to build Champ package with catkin_make and get error message:

“Could not find a package configuration file provided by “boost_signals” (requested version 1.72.0)”

Manual build of libboost 1.72 did not work, yet. Probably I am missing something in the installation process (setting path variables etc.).