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

Self-built Qt for Android: NDK path partially hard-coded

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 5.12.2
    • Build System
    • None
    • Windows host
    • Android

    Description

      I configured Qt like this:

       

      configure.bat -v ^
       -commercial -confirm-license ^
       -nomake tests ^
       -nomake examples ^
       -opengl es2 ^
       -openssl -I C:\openssl102L\android\include -L C:\openssl102L\android\lib ^
       -platform win32-g++ ^
       -xplatform android-clang ^
       -android-arch armeabi-v7a ^
       -android-ndk D:\Android\android-ndk-r18b ^
       -android-sdk D:\Android\sdk ^
       -prefix "%OUTPUT_DIR%"

       

      After building, %QT_DIR%\mkspecs\modules\qt_lib_gui_private.pri contains the following lines:

      QMAKE_LIBS_OPENGL_ES2 = D:/Android/android-ndk-r18b/platforms/android-16/arch-arm/usr/lib/libGLESv2.so
      QMAKE_LIBS_EGL = D:/Android/android-ndk-r18b/platforms/android-16/arch-arm/usr/lib/libEGL.so

      While the prebuilt version of Qt 5.12.2 has the following lines in this file:

      QMAKE_LIBS_OPENGL_ES2 = -lGLESv2
      QMAKE_LIBS_EGL = -lEGL

      In my opinion, the self-built Qt should have the same path here as the prebuilt one.

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              markus.maier Markus Haberlander
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes