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

QtGui requires explicit linking with -lGLESv3 on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • 5.8.0
    • GUI: OpenGL
    • None
    • Qt 5.8 for Android, running on Debian testing amd64.

    Description

      In a CMake-based project, when linking with the module QtGui for the Android platform, an OpenGL ES library has to be linked in manually; the QtGui CMake files do not drag in that dependency automatically.

      I have to have the following in CMakeLists.txt:

      target_link_libraries(myapp Qt5::Gui)
      if(ANDROID)
          target_link_libraries(myapp -lGLESv3)
      endif()
      

      Attachments

        Issue Links

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

          Activity

            People

              qtandroidteam Qt Android Team
              marlam Martin Lambers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes