Building Qt6.2 for QNX on windows host - can't find opengl
Solved
Qt 6
-
I'm attaching my configure command with the (long) output. Open GL libraries are provided by QNX in their SDP. On my system at C:\qnx710. My Qt 6.2.0 install is at C:\Qt\6.2.0 and my build folder is at C:\Qt\6.2.0\build-qnx.
My cmake toolchain is this:
file(TO_CMAKE_PATH $ENV{QNX_HOST} QNX_HOST) set(CMAKE_SYSTEM_NAME QNX) set(CMAKE_SYSTEM_PROCESSOR arm) set(CMAKE_CROSSCOMPILING 1) set(arch gcc_ntoarmv7le) set(CMAKE_AR ${QNX_HOST}/usr/bin/ntoarmv7-ar.exe) set(CMAKE_C_COMPILER ${QNX_HOST}/usr/bin/qcc.exe) set(CMAKE_C_COMPILER_TARGET ${arch}) set(CMAKE_CXX_COMPILER ${QNX_HOST}/usr/bin/q++.exe) set(CMAKE_CXX_COMPILER_TARGET ${arch}) set(PLATFORM_DEFINITION QNX) set(CMAKE_SYSROOT $ENV{QNX_TARGET})
I couldn't find an attach button, so here is the command and output in-line:
C:\Qt\6.2.0\build-qnx>..\Src\configure -release -confirm-license -commercial -platform qnx-armle-v7-qcc -nomake tools -skip qtscxml -skip qtserialbus -skip qtactiveqt -skip qtandroidextras -skip qtconnectivity -skip qtdoc -skip qtlocation -skip qtmacextras -skip qtsensors -skip qtserialport -skip qtwinextras -skip qtx11extras -ssl -nomake examples -nomake tests -skip qtwebengine -skip qttranslations -no-fontconfig -prefix /boot/qt -extprefix C:/Qt/6.2.0/qnx71_armv7 -qt-host-path C:/Qt/6.2.0/mingw81_64 -- -DCMAKE_TOOLCHAIN_FILE=C:/Projects/AEPP/cmake/toolchains/QNX_armv7le_Toolchain.cmake -DCMAKE_PREFIX_PATH=C:/Qt/6.2.0/mingw81_64 + cd qtbase + C:\Qt\6.2.0\Src\qtbase\configure.bat -top-level -release -confirm-license -commercial -platform qnx-armle-v7-qcc -nomake tools -skip qtscxml -skip qtserialbus -skip qtactiveqt -skip qtandroidextras -skip qtconnectivity -skip qtdoc -skip qtlocation -skip qtmacextras -skip qtsensors -skip qtserialport -skip qtwinextras -skip qtx11extras -ssl -nomake examples -nomake tests -skip qtwebengine -skip qttranslations -no-fontconfig -prefix /boot/qt -extprefix C:/Qt/6.2.0/qnx71_armv7 -qt-host-path C:/Qt/6.2.0/mingw81_64 -- -DCMAKE_TOOLCHAIN_FILE=C:/Projects/AEPP/cmake/toolchains/QNX_armv7le_Toolchain.cmake -DCMAKE_PREFIX_PATH=C:/Qt/6.2.0/mingw81_64 CMake Warning at C:/Qt/6.2.0/Src/qtbase/cmake/QtProcessConfigureArgs.cmake:247 (message): '-nomake tools' is not implemented yet. Call Stack (most recent call first): C:/Qt/6.2.0/Src/qtbase/cmake/QtProcessConfigureArgs.cmake:782 (qtConfAddWarning) C:/Qt/6.2.0/Src/qtbase/cmake/QtProcessConfigureArgs.cmake:842 (check_qt_build_parts) 'C:/Qt/Tools/CMake_64/bin/cmake.exe' '-DBUILD_qtscxml=OFF' '-DBUILD_qtserialbus=OFF' '-DBUILD_qtactiveqt=OFF' '-DBUILD_qtandroidextras=OFF' '-DBUILD_qtconnectivity=OFF' '-DBUILD_qtdoc=OFF' '-DBUILD_qtlocation=OFF' '-DBUILD_qtmacextras=OFF' '-DBUILD_qtsensors=OFF' '-DBUILD_qtserialport=OFF' '-DBUILD_qtwinextras=OFF' '-DBUILD_qtx11extras=OFF' '-DBUILD_qtwebengine=OFF' '-DBUILD_qttranslations=OFF' '-DQT_HOST_PATH=C:/Qt/6.2.0/mingw81_64' '-DCMAKE_TOOLCHAIN_FILE=C:/Projects/AEPP/cmake/toolchains/QNX_armv7le_Toolchain.cmake' '-DCMAKE_PREFIX_PATH=C:/Qt/6.2.0/mingw81_64' '-DCMAKE_INSTALL_PREFIX=/boot/qt' '-DCMAKE_STAGING_PREFIX=C:/Qt/6.2.0/qnx71_armv7' '-DQT_QMAKE_TARGET_MKSPEC=qnx-armle-v7-qcc' '-DQT_BUILD_EXAMPLES=FALSE' '-DQT_BUILD_TESTS=FALSE' '-DCMAKE_BUILD_TYPE=Release' '-DINPUT_ssl=yes' '-DINPUT_fontconfig=no' '-G' 'Ninja' 'C:/Qt/6.2.0/Src'
snipped a bunch for size limitations of post...
-- Performing Test HAVE_EGL -- Performing Test HAVE_EGL - Failed -- Could NOT find EGL (missing: HAVE_EGL EGL_LIBRARY) (found version "1.5") -- Could NOT find WrapSystemFreetype (missing: __freetype_found) (Required is at least version "2.2.0") -- Could NOT find Fontconfig (missing: Fontconfig_LIBRARY Fontconfig_INCLUDE_DIR) -- Could NOT find gbm (missing: gbm_LIBRARY gbm_INCLUDE_DIR) -- Could NOT find WrapSystemHarfbuzz (missing: HARFBUZZ_LIBRARIES HARFBUZZ_INCLUDE_DIRS) (Required is at least version "2.6.0") -- Could NOT find Libinput (missing: Libinput_LIBRARY Libinput_INCLUDE_DIR) -- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) -- Could NOT find md4c (missing: md4c_DIR) -- Could NOT find WrapSystemPNG (missing: __png_found) -- Could NOT find OpenGL (missing: OPENGL_opengl_LIBRARY OPENGL_glx_LIBRARY OPENGL_INCLUDE_DIR) -- Could NOT find WrapOpenGL (missing: WrapOpenGL_FOUND) -- Could NOT find EGL (missing: HAVE_EGL EGL_LIBRARY) (found version "1.5") -- Performing Test HAVE_GLESv2 -- Performing Test HAVE_GLESv2 - Failed -- Could NOT find GLESv2 (missing: GLESv2_LIBRARY HAVE_GLESv2 HAVE_GLESv2) -- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) -- Performing Test HAVE_evdev -- Performing Test HAVE_evdev - Failed
snipped again
ERROR: The OpenGL functionality tests failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2], QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform. ERROR: Python is required to build QtQml. CMake Error at qtbase/cmake/QtBuildInformation.cmake:80 (message): Check the configuration messages for an error that has occurred. Call Stack (most recent call first): qtbase/cmake/QtBuildInformation.cmake:11 (qt_configure_print_summary) CMakeLists.txt:109 (qt_print_feature_summary) CMake Error at C:/Qt/6.2.0/Src/qtbase/cmake/QtProcessConfigureArgs.cmake:947 (message): CMake exited with code 1.