Problems build ROS2 from source
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)
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
I haven't checked the installation manual (you should probably link to the steps you are using), but do you have
libpython3-dev
installed?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.
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 ofrosidl_generator_py
(here), does depend onpyhon3-dev
(here). That should've installed it for you.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 hadlibopensplice69
installed. Uninstalling it fixed the problem for me, since I'm not usinglibopensplice69
at 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.