Open NumbNutN opened 9 months ago
I'm not sure how you try to build rviz. In CI, everything works as expected. Hence, I assume, you are building rviz in the wrong way. Please describe in detail, which commands you execute. Maybe you missed to install all prerequisites?
/usr/bin/sip
definitely exists in Ubuntu 20.04: it's part of package sip-dev
and it's version is 4.19.21.
Thanks for replying! This is what I've done: source tree like:
template
├── src
└──rviz
cd template/src
catkin_init_workspace
cd ..
catkin_make
My output from stdout and stderr when building: https://github.com/NumbNutN/cloud/blob/e66441b7795bc4d9b6539eea823dc999f12c24fd/rviz_build_info.log#L379-L388
I use a conda environment and sip
is invoked the one from pip
installed package when building
another attempt to run /usr/bin/sip
failed:
$ /usr/bin/sip -c {CATKIN_WORKSPACE}/build/rviz/sip/rviz_sip -b {CATKIN_WORKSPACE}/build/rviz/sip/rviz_sip/pyqtscripting.sbf -I /home/numbnut/miniconda3/envs/rviz39/lib/python3.9/site-packages/PyQt5/bindings -w -n PyQt5.sip -t Qt_5_15_2 -t WS_X11 {CATKIN_WORKSPACE}/src/rviz/src/python_bindings/sip/rviz.sip
sip: /home/numbnut/miniconda3/envs/rviz39/lib/python3.9/site-packages/PyQt5/bindings/QtCore/QtCoremod.sip:23: syntax error
$ /usr/bin/sip -V
4.19.21
The problem is you conda environment. You should not use ROS within conda environments except you are an absolute expert...
Yes.. it was built correctly after I deactivated conda. Thanks!
Hi, I was confused when I tried to build the RViz from source code. The file
QtCore.toml
in the SIP folder for package PyQt5 module QtCore mentions the requirement version of sip build system.But the command line tool
sip
which is invoked when building, has definitely been removed inSIP v6
, as it's mot mentioned in the sip repository. sip - command_line_tools.rstThe relevant code is here: https://github.com/ros-visualization/python_qt_binding/blob/e0f21d1cf19e9581406e83069fc462548c73647a/cmake/sip_configure.py#L146-L156
If I install the sip with version 4.19.25 and rebuild the RViz I got a
syntax error
from sip.Is it a problem about version compatibility or I did some steps wrong?
There's a relevant reference #1777