ros / geometry2

A set of ROS packages for keeping track of coordinate transforms.
191 stars 279 forks source link

sipconfig not available #571

Closed mblasi closed 2 months ago

mblasi commented 2 months ago

Following Generic Linux installation process, almost finished the build proces, but there is an error while trying to use the sipconfig module:

(.python) $ ~/ros_catkin_ws/build_isolated/rviz $ cd /home/matias/ros_catkin_ws/build_isolated/rviz && /home/matias/ros_catkin_ws/install_isolated/env.sh cmake /home/matias/ros_catkin_ws/src/rviz -DCATKIN_DEVEL_PREFIX=/home/matias/ros_catkin_ws/devel_isolated/rviz -DCMAKE_INSTALL_PREFIX=/home/matias/ros_catkin_ws/install_isolated -DCMAKE_BUILD_TYPE=Release -G 'Unix Makefiles'

Call Stack (most recent call first):
  src/python_bindings/sip/CMakeLists.txt:42 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning at /home/matias/ros_catkin_ws/install_isolated/share/python_qt_binding/cmake/sip_helper.cmake:28 (message):
  SIP binding generator NOT available.
Call Stack (most recent call first):
  src/python_bindings/sip/CMakeLists.txt:42 (include)

-- Python binding generators: 
CMake Error at src/python_bindings/CMakeLists.txt:9 (message):
  No Python binding generator found.

-- Configuring incomplete, errors occurred!

The thing is that it tries to import the sipconfig module, and the current sip versions doesn't have it. It was deprecated at 4.19.x versions, and it is about 6.5.x nowdays...

Any suggestion?

mblasi commented 2 months ago

As far as I understand, sip-4.x requires python < 3 to get it built locally, and we need python-3.11 for building the rest of ros...

I think the install_isolated/share/python_qt_binding/cmake/sip_configure.py file should be ported, right?

How is supposed to get it working?

mblasi commented 2 months ago

Ok, I was able to build sip-4.x with python3 & gcc11, after some tweaks: thanks to https://github.com/daizhirui/sip4.

It solved the issue.