QT6.6.1 Opengl Cross-Compilation
-
Hi !
I'm currently doing the following tutorial (https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi) for a nvidia jetson and everything's going well until the step where you have to cross-compile QT. When i try to configure with the following command :""cmake ../qt-everywhere-src-6.6.1 -GNinja -DCMAKE_BUILD_TYPE=Release -DINPUT_opengl=es2 -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DQT_HOST_PATH=/home/osboxes/Documents/qt-host -DCMAKE_STAGING_PREFIX=/home/osboxes/Documents/qt-raspi -DCMAKE_INSTALL_PREFIX=/usr/local/qt6 -DCMAKE_TOOLCHAIN_FILE=/home/osboxes/Documents/toolchain.cmake -DQT_QMAKE_TARGET_MKSPEC=devices/linux-jetson-tx1-g++ -DQT_FEATURE_xcb=ON -DFEATURE_xcb_xlib=ON -DQT_FEATURE_xlib=ON -DBUILD_qtwayland=OFF""
Qt says "ERROR: The OpenGL functionality tests failed! You might need to modify the OpenGL package search path by setting the OpenGL_DIR CMake variable to the OpenGL library's installation directory."
""
ERROR: The OpenGL functionality tests failed! You might need to modify the OpenGL package search path by setting the OpenGL_DIR CMake variable to the OpenGL library's installation directory.CMake Error at qtbase/cmake/QtBuildInformation.cmake:194 (message):
Check the configuration messages for an error that has occurred.
Call Stack (most recent call first):
qtbase/cmake/QtBuildInformation.cmake:24 (qt_configure_print_summary)
qtbase/cmake/QtBaseTopLevelHelpers.cmake:69 (qt_print_feature_summary)
qtbase/cmake/QtBaseTopLevelHelpers.cmake:57 (qt_internal_print_top_level_info)
CMakeLists.txt:108 (qt_internal_top_level_end)-- Configuring incomplete, errors occurred!
""I try to find solution online but so far nothing has worked.
For information :- I have Opengl lib and opengl installed
I link the file of my configure.
If anyone has a solution,
Sincerely, Yann -
Hi and welcome to devnet,
Might be a silly question but do you have the OpenGL libraries for your desktop or for your Jetson ?
-
Yes, because if i try to cross compile with "./configure" without cmake and using device linux-jetson-tx1-g++ it find OpenGL, but not the right architecture and CPU feature in the configure Summary (x86_64, and none). And if i use cmake it find the correct architecture and cpu feature but not opengl. It seems it don't take jetson-linux-tx1-g++ device file
-
@YannAlbouy there was an or in my question 😅
How did you creat the sysroot you use to cross-compile ?
-
I create sysroot with rsync from the Nvidia Jetson Orin nano. I rsync all folder and repair symlink with script. I check all link and there all good.
-
@YannAlbouy that looks correct.
Did you check that your sysroot content is of the correct architecture with regard to the OpenGL libraries ?
-
Any news, I have the same issue about wrong architecture detected with jetson orin nano
-
@Massinissa_idiri said in QT6.6.1 Opengl Cross-Compilation:
wrong architecture detected
Then you're mixing binaries for different architectures.
You will have to provide more information:- Post the actual error message
- Explain how you're creating the sysroot
- Show how you build