Problems build ROS2 from source

asked 2019-08-02 03:38:58 -0500

MrCheesecake gravatar image

Hey together,

I'm building ROS2 from source on my Ubuntu 16.04 64-Bit. I'm using the official manual and also doublechecked that I have installed all stuff needed. I'm getting this error when executing colcon build --symlink-install --packages-ignore qt_gui_cpp rqt_gui_cpp:

 stderr: std_msgs                          
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
  (Required is at least version "3.5")
Call Stack (most recent call first):
  /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.5/Modules/FindPythonLibs.cmake:265 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  /home/jan/ros2_ws/install/python_cmake_module/share/python_cmake_module/cmake/Modules/FindPythonExtra.cmake:133 (find_package)
  /home/jan/ros2_ws/install/rosidl_generator_py/share/rosidl_generator_py/cmake/rosidl_generator_py_generate_interfaces.cmake:24 (find_package)
  /home/jan/ros2_ws/install/ament_cmake_core/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:38 (include)
  /home/jan/ros2_ws/install/rosidl_cmake/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:280 (ament_execute_extensions)
  CMakeLists.txt:49 (rosidl_generate_interfaces)
edit retag flag offensive close merge delete

Comments

I also tried it on another client, 64-Bit, i7, 16.04. I'm also getting missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS but on another package, on rosidl_generator_py

MrCheesecake gravatar imageMrCheesecake ( 2019-08-02 04:27:06 -0500 )edit
1

I haven't checked the installation manual (you should probably link to the steps you are using), but do you have libpython3-dev installed?

gvdhoorn gravatar imagegvdhoorn ( 2019-08-02 04:48:38 -0500 )edit

I'm using https://index.ros.org/doc/ros2/Instal... libpython3-dev was not installed due that it is not listet in the manual. I'm now building and it looks good.

MrCheesecake gravatar imageMrCheesecake ( 2019-08-02 05:02:48 -0500 )edit

Hm. I would've expected that to either be listed, or be installed in the rosdep step. Did you run that?


Edit: python_cmake_module, which is a dependency of rosidl_generator_py (here), does depend on pyhon3-dev (here). That should've installed it for you.

gvdhoorn gravatar imagegvdhoorn ( 2019-08-02 05:08:36 -0500 )edit

Not sure if in any way related, but I encountered this: https://github.com/MartinCornelis2/da... , where installing dashing from source failed on rosidl_generator_py because I had libopensplice69 installed. Uninstalling it fixed the problem for me, since I'm not using libopensplice69at the moment. I haven't verified this issue for the latest patch of Dashing (https://discourse.ros.org/t/new-packa...), but if the problem remains I might post this as a separate question, since this should probably be fixed as well.

MCornelis gravatar imageMCornelis ( 2019-08-07 05:12:22 -0500 )edit