Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Link GLES2 to ios



  • Qt 5.12.10 for ios need to link GLES lib but same code from android built fail. How to link EGL/GLES2 for iOS ? Thanks!

    # Check if we have a GLES-only build
    # On dynamic builds, this property is also "GL"
    IF(${Qt5Gui_OPENGL_IMPLEMENTATION} MATCHES "GLES")
         MESSAGE(STATUS "Building an OpenGL ES build (${Qt5Gui_OPENGL_IMPLEMENTATION})")
         IF( ANDROID )
             SET(STEL_GLES_LIBS EGL GLESv2) # success on Qt Android
    
         ELSE()
             SET(STEL_GLES_LIBS EGL GLESv2) # error in iOS Qt
    #         SET(STEL_GLES_LIBS Qt5::Gui_EGL Qt5::Gui_GLESv2) # pc
         ENDIF()
    ELSE()
         MESSAGE(STATUS "Building an OpenGL build")
    ENDIF()
    

Log in to reply