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

Raspberry Pi3: libGLESv2.so not found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.14.0 Alpha
    • GUI: OpenGL
    • None
    • Raspbian Stretch
    • Linux/Other display system

      When I compile Qt with -device linux-rasp-pi3-g++, opengl es2 test failed because libGLESv2.so are not found.

       

      For some reason, library names are changed in the latest images.

      https://www.raspberrypi.org/forums/viewtopic.php?t=191857#p1203490

       

      diff --git a/mkspecs/devices/linux-rasp-pi3-g+/qmake.conf b/mkspecs/devices/linux-rasp-pi3-g/qmake.conf index b215833486..ba0e2d9226 100644 — a/mkspecs/devices/linux-rasp-pi3-g/qmake.conf +++ b/mkspecs/devices/linux-rasp-pi3-g+/qmake.conf @@ -26,10 +26,10 @@ QMAKE_INCDIR_EGL = \ QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL} -QMAKE_LIBS_OPENGL_ES2 = $${VC_LINK_LINE} -lGLESv2 +QMAKE_LIBS_OPENGL_ES2 = $${VC_LINK_LINE} -lbrcmGLESv2 # The official opt vc EGL references GLESv2 symbols: need to link it -QMAKE_LIBS_EGL = $${VC_LINK_LINE} -lEGL -lGLESv2 +QMAKE_LIBS_EGL = $${VC_LINK_LINE} -lbrcmEGL -lbrcmGLESv2 QMAKE_LIBDIR_BCM_HOST = $$VC_LIBRARY_PATH QMAKE_INCDIR_BCM_HOST = $$VC_INCLUDE_PATH

      This fixed the issue. But I'm not sure If I can push the patch to upstream.

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

            lagocs Laszlo Agocs
            tasuku.suzuki Tasuku Suzuki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes