Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support qt6 #293

Draft
wants to merge 2 commits into
base: rolling
Choose a base branch
from
Draft

Support qt6 #293

wants to merge 2 commits into from

Conversation

ahcorde
Copy link
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
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
Contributor Author

ahcorde commented Jul 3, 2024

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@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
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.

1 participant