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

configure error regrading opengl when cross-compiling for raspberry pi

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 6.4.0
    • Build System: CMake
    • None
    • Linux/X11

    Description

      Hello everyone,

      I encountered the opengl issue when i am configuring the cross build for raspberry pi. Generally i just followed the tutoria https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi

      , The errors generated during the configure step is as follows:

      CMake Error at qtbase/cmake/QtBuildInformation.cmake:490 (message):

      Feature "opengl": Forcing to "ON" breaks its condition:

      QT_FEATURE_opengl_desktop OR QT_FEATURE_opengl_dynamic OR QT_FEATURE_opengles2
      Condition values dump:
      QT_FEATURE_opengl_desktop = "OFF"

      QT_FEATURE_opengl_dynamic = "OFF"
      QT_FEATURE_opengles2 = "OFF"

      Call Stack (most recent call first):

      qtbase/cmake/QtFeature.cmake:281 (qt_configure_add_report_error)
      qtbase/cmake/QtFeature.cmake:403 (qt_feature_check_and_save_internal_value)
      qtbase/cmake/QtFeature.cmake:606 (qt_evaluate_feature)
      qtbase/cmake/QtFeature.cmake:575 (qt_feature_module_end)
      qtbase/src/CMakeLists.txt:12 (qt_feature_evaluate_features)

      CMake Error at qtbase/cmake/QtBuildInformation.cmake:490 (message):
      Feature "xcb_xlib": Forcing to "ON" breaks its condition:

      QT_FEATURE_xlib AND X11_XCB_FOUND
      Condition values dump:
      QT_FEATURE_xlib = "ON"

      X11_XCB_FOUND = "FALSE"

      Call Stack (most recent call first):

      qtbase/cmake/QtFeature.cmake:281 (qt_configure_add_report_error)
      qtbase/cmake/QtFeature.cmake:403 (qt_feature_check_and_save_internal_value)
      qtbase/cmake/QtFeature.cmake:155 (qt_evaluate_feature)
      qtbase/cmake/QtFeature.cmake:349 (qt_evaluate_config_expression)
      qtbase/cmake/QtFeature.cmake:606 (qt_evaluate_feature)
      qtbase/cmake/QtFeature.cmake:575 (qt_feature_module_end)
      qtbase/src/CMakeLists.txt:12 (qt_feature_evaluate_features)

       

      I am using Ubuntu22.04 (Host) with arm-linux-gnueabi-gcc-12.2.0 cross-compiler, my raspberry pi is Raspberry Pi 400 with the same CPU(BCM2711) as Raspberry 4B.output.txt arm-linux-gnueabihf-toolchain.cmake

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            jayvae Jay Tang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes