Skip to content

Support qt6#293

Open
ahcorde wants to merge 20 commits intorollingfrom
ahcorde/rolling/qt6
Open

Support qt6#293
ahcorde wants to merge 20 commits intorollingfrom
ahcorde/rolling/qt6

Conversation

@ahcorde
Copy link
Copy Markdown
Contributor

@ahcorde ahcorde commented Jul 2, 2024

I stil need to update shiboken and pyside

(typesystem) clang_parseTranslationUnit2(0x0, cmd[29]=-isystem/usr/include/c++/13 -isystem/usr/include/x86_64-linux-gnu/c++/13 -isystem/usr/include/c++/13/backward -fPIC -Wno-constant-logical-operand -std=c++17 -I/root/ros2_ws/src/ros-visualization/qt_gui_core/qt_gui_cpp/include -I/root/ros2_ws/install/pluginlib/include/pluginlib -I/root/ros2_ws/install/class_loader/include/class_loader -I/root/ros2_ws/install/rcpputils/include/rcpputils -I/root/ros2_ws/install/rcutils/include/rcutils -I/root/ros2_ws/install/ament_index_cpp/include/ament_index_cpp -I/usr/include -I/usr/include/x86_64-linux-gnu/qt6/QtWidgets -I/usr/include/x86_64-linux-gnu/qt6 -I/usr/include/x86_64-linux-gnu/qt6/QtCore -I/usr/include/x86_64-linux-gnu/qt6/QtGui -I/usr/include/x86_64-linux-gnu/qt6/QtDBus -I/usr/include/PySide2 -I/usr/include/c++/13 -I/usr/include/x86_64-linux-gnu/c++/13 -I/usr/include/c++/13/backward -I/usr/lib/gcc/x86_64-linux-gnu/13/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include /tmp/global_lFjnEo.hpp "-DQT_ANNOTATE_ACCESS_SPECIFIER(a)=__attribute__((annotate(#a)))" "-DQT_ANNOTATE_CLASS(type,...)=static_assert(sizeof(#__VA_ARGS__),#type);")
/usr/lib/gcc/x86_64-linux-gnu/13/include/ia32intrin.h:112:1: error: definition of builtin function '__rdtsc'
/usr/lib/gcc/x86_64-linux-gnu/13/include/xmmintrin.h:827:1: error: definition of builtin function '_mm_getcsr'
/usr/lib/gcc/x86_64-linux-gnu/13/include/xmmintrin.h:859:1: error: definition of builtin function '_mm_setcsr'
/usr/lib/gcc/x86_64-linux-gnu/13/include/xmmintrin.h:1302:1: error: definition of builtin function '_mm_sfence'
/usr/lib/gcc/x86_64-linux-gnu/13/include/emmintrin.h:1526:1: error: definition of builtin function '_mm_clflush'
/usr/lib/gcc/x86_64-linux-gnu/13/include/emmintrin.h:1532:1: error: definition of builtin function '_mm_lfence'
/usr/lib/gcc/x86_64-linux-gnu/13/include/emmintrin.h:1538:1: error: definition of builtin function '_mm_mfence'
/usr/lib/gcc/x86_64-linux-gnu/13/include/xmmintrin.h:1335:1: error: definition of builtin function '_mm_pause'
(typesystem) Errors in -DQT_ANNOTATE_CLASS(type,...)=static_assert(sizeof(#__VA_ARGS__),#type);:
/usr/lib/gcc/x86_64-linux-gnu/13/include/ia32intrin.h:112:1: error: definition of builtin function '__rdtsc'
   /tmp/global_lFjnEo.hpp:1:10: note: in file included from /tmp/global_lFjnEo.hpp:1:
   /root/ros2_ws/src/ros-visualization/qt_gui_core/qt_gui_cpp/src/qt_gui_cpp_shiboken/global.h:37:10: note: in file included from /root/ros2_ws/src/ros-visualization/qt_gui_core/qt_gui_cpp/src/qt_gui_cpp_shiboken/global.h:37:
   /usr/include/x86_64-linux-gnu/qt6/QtCore/QtCore:216:10: note: in file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/QtCore:216:
   /usr/include/x86_64-linux-gnu/qt6/QtCore/qsimd.h:91:12: note: in file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/qsimd.h:91:
   /usr/lib/gcc/x86_64-linux-gnu/13/include/immintrin.h:27:10: note: in file included from /usr/lib/gcc/x86_64-linux-gnu/13/include/immintrin.h:27:
   /usr/lib/gcc/x86_64-linux-gnu/13/include/x86gprintrin.h:33:10: note: in file included from /usr/lib/gcc/x86_64-linux-gnu/13/include/x86gprintrin.h:33:

@ahcorde ahcorde self-assigned this Jul 2, 2024
@ahcorde
Copy link
Copy Markdown
Contributor Author

ahcorde commented Jul 2, 2024

I was digging more on this:

Ubuntu Noble debian packages does not have (for now) libshiboken6-dev and libpyside6-dev which are the compatible version for Qt6. Anyhow you can install this dependencies with pip:

pip install -U shiboken6 pyside6 shiboken6_generator

There is a mismatch of version between pip pyside and shiboken and Qt6 from debian packages.

Ubuntu noble distribute qt6.4.2 but the pip available version for the required packages are 6.7.2, 6.7.1, 6.7.0, 6.6.3.1, 6.6.3, 6.6.2, 6.6.1, 6.6.0.

This package will require also changes on python_qt_binding in particular in cmake/shiboken_helper.cmake

May is not the right time (yet) to port this package?

@ahcorde
Copy link
Copy Markdown
Contributor Author

ahcorde commented Jul 3, 2024

Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
@ahcorde ahcorde force-pushed the ahcorde/rolling/qt6 branch from b71881a to 978dce2 Compare July 3, 2024 09:00
@ahcorde ahcorde force-pushed the ahcorde/rolling/qt6 branch from 04f1d5d to ebaf641 Compare July 12, 2024 11:33
@mosfet80
Copy link
Copy Markdown
Contributor

After a rebase with conflict resolution (https://github.com/mosfet80/qt_gui_core/tree/fixQT6) I tried the patch on opensuse qt6 and wayland .. it works!
Screenshotrviz

@mosfet80
Copy link
Copy Markdown
Contributor

compiled on fedora 42 (only qt6)

--- stderr: qt_gui_cpp
Traceback (most recent call last):
File "/home/r/Software/ros_rolling/install/python_qt_binding/share/python_qt_binding/cmake/pyside_config.py", line 334, in
handler_result = handler()
File "/home/r/Software/ros_rolling/install/python_qt_binding/share/python_qt_binding/cmake/pyside_config.py", line 85, in
lambda: get_shared_libraries_cmake(Package.PYSIDE_MODULE), pyside_libs_error,
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/home/r/Software/ros_rolling/install/python_qt_binding/share/python_qt_binding/cmake/pyside_config.py", line 327, in get_shared_libraries_cmake
result = ';'.join(libs)
TypeError: can only join an iterable
CMake Error at /home/r/Software/ros_rolling/install/python_qt_binding/share/python_qt_binding/cmake/shiboken_helper.cmake:62 (message):
Error: Calling pyside_config.py --pyside-shared-libraries-cmake returned no
output.
Call Stack (most recent call first):
/home/r/Software/ros_rolling/install/python_qt_binding/share/python_qt_binding/cmake/shiboken_helper.cmake:69 (pyside_config)
src/qt_gui_cpp_shiboken/CMakeLists.txt:45 (include)

@ahcorde ahcorde mentioned this pull request Feb 4, 2026
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
@ahcorde ahcorde force-pushed the ahcorde/rolling/qt6 branch from 077b5f8 to aa9545e Compare February 6, 2026 17:03
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
@ros-discourse
Copy link
Copy Markdown

This pull request has been mentioned on Open Robotics Discourse. There might be relevant details there:

https://discourse.openrobotics.org/t/ros-pmc-minutes-for-february-3-2026/52549/1

Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Signed-off-by: Shane Loretz <sloretz@intrinsic.ai>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
@ahcorde ahcorde marked this pull request as ready for review March 31, 2026 14:16
@ahcorde
Copy link
Copy Markdown
Contributor Author

ahcorde commented Mar 31, 2026

Pulls: ros-visualization/rqt#339, #293, ros-visualization/python_qt_binding#157
Gist: https://gist.githubusercontent.com/ahcorde/729070b3a537f4c491871bd3250612a8/raw/1f70f4fdce2d0b6d5a67390b45cb7b5246863e0f/ros2.repos
BUILD args: --packages-above-and-dependencies rqt_gui_py rqt_py_common qt_dotgraph qt_gui qt_gui_cpp qt_gui_py_common python_qt_binding
TEST args: --packages-above rqt_gui_py rqt_py_common qt_dotgraph qt_gui qt_gui_cpp qt_gui_py_common python_qt_binding
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18764

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde
Copy link
Copy Markdown
Contributor Author

ahcorde commented Apr 1, 2026

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

Related with ros2/ci#857 and ros2/ros2#1810

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants