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

libQt6Quick links against absolute path GL libraries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.8.0
    • Build System
    • None
    • Linux/Other display system

    Description

      When I'm linking my Qt6 application I see the following warning messages:
      (paths simplified for readability

      ld: warning: /builds/project/[...]/sysroot/usr/lib/libGLESv2.so, needed by /home/menno/[...]/lib/libQt6Quick.so.6.8.0, not found (try using -rpath or -rpath-link)
      
      ld: warning: /builds/project/[...]/sysroot/usr/lib/libEGL.so, needed by /home/menno/[...]/lib/libQt6Quick.so.6.8.0, not found (try using -rpath or -rpath-link)

      So libQt6Quick seems to be linked against an absolute path from the CI pipeline where I cross-compile the Qt libraries.
      To be fair, those paths do in fact not exist on my laptop, but they also will not exist on my target device.

      I guess this is a bug in how GLES and EGL are found in

      qtbase/cmake/FindGLESv2.cmake
      

      But let me know if this is something I can configure/suppress on my end.

      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
            mercotui Menno Van der Graaf
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes