Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
5.13.1
-
None
Description
When using a cmake project targetting android, GLESv2 is missing on the librairies that the executable links to (noticed when comparing the linker command produced by an equivalent QMake .pro file), which can lead to problems when using any graphical feature of Qt, namely my own error being:
C:\Qt\5.13.1\android_armv7\include\QtGui/qopenglfunctions.h:790: error: undefined reference to 'glFlush'
By adding to the CMakeLists.txt:
if (ANDROID)
target_link_libraries(${PROJECT_NAME} PRIVATE GLESv2)
endif()
The problem is fixed and my application compiles and runs fine.
Attachments
Issue Links
- duplicates
-
QTBUG-60323 QtGui requires explicit linking with -lGLESv3 on Android
- Closed