Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-116973

[REG 6.5 -> dev] CMakeList: Can't rebuild after changes with -no-opengl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.5.4, 6.7.0 FF
    • dev
    • Build System: CMake
    • None
    • Windows 11
    • Windows
    • d1a17d965 (dev), c75eadf08 (6.6), 64edf3181 (tqtc/lts-6.5)

      A configure command from the "build-qt/do-configure.bat":

      ../qt5/configure -release -force-debug-info -optimize-size -c++std c++20 ^
      	-static -prefix "%~dp0static" -unity-build ^
      	-opensource -confirm-license -no-opengl ^
      	^
      	-nomake examples -nomake tests ^
      	^
      	-submodules qtbase ^
      	^
      	-no-feature-columnview -no-feature-commandlinkbutton ^
      	-no-feature-concatenatetablesproxymodel ^
      	-no-feature-concurrent -no-feature-datawidgetmapper -no-feature-dial ^
      	-no-feature-dockwidget -no-feature-filesystemwatcher -no-feature-fontcombobox ^
      	-no-feature-fontdialog -no-feature-inputdialog ^
      	-no-feature-hijricalendar -no-feature-identityproxymodel ^
      	-no-feature-islamiccivilcalendar -no-feature-jalalicalendar ^
      	-no-feature-itemmodeltester -no-feature-lcdnumber -no-feature-listwidget ^
      	-no-feature-mdiarea -no-feature-movie -no-feature-pdf -no-feature-picture ^
      	-no-feature-printsupport -no-feature-raster-64bit -no-feature-splashscreen ^
      	-no-feature-textbrowser -no-feature-textodfwriter ^
      	-no-feature-undocommand -no-feature-undogroup -no-feature-undostack -no-feature-undoview ^
      	-no-feature-whatsthis -no-feature-wizard ^
      	^
      	-no-feature-style-android -no-feature-style-mac -no-feature-style-windowsvista ^
      	^
      	-no-feature-mimetype-database -no-feature-sql ^
      	^
      	-no-feature-getifaddrs -no-feature-ipv6ifname -no-feature-libproxy ^
      	-no-feature-openssl -no-feature-openssl-hash ^
      	-schannel -ssl -no-feature-sctp -no-feature-udpsocket ^
      	-no-feature-networkproxy -no-feature-socks5 -no-feature-networkdiskcache ^
      	-no-feature-dnslookup -no-feature-sspi -no-feature-networklistmanager ^
      	^
      	-no-feature-opengl -no-feature-directfb ^
      	^
      	-no-feature-gif -no-feature-jpeg ^
      	^
      	-no-feature-androiddeployqt -no-feature-dbus -no-feature-macdeployqt ^
      	-no-feature-vkgen -no-feature-vulkan -no-feature-windeployqt

      A build command:

      cmake --build . --parallel && cmake --install .

      The build command runs fine initially, but fails with the following error after pulling new commits:

      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:201 (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)
        CMakeLists.txt:127 (qt_print_feature_summary)
      
      
      -- Configuring incomplete, errors occurred!
      ninja: error: rebuilding 'build.ninja': subcommand failed

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            alexandru.croitor Alexandru Croitor
            nodir.temir Nodir Temirkhodjaev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes