Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Compile Qt source for Android

Compile Qt source for Android

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 572 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    EnormousSoft
    wrote on last edited by
    #1

    Ubuntu 10.04 x64
    Qt Source 5.12.2

    ./configure -xplatform android-g++ -android-ndk-platform android-16 -android-ndk ~/.android/ndk/android-ndk-r17c -android-sdk ~/.android/sdk -android-arch armeabi-v7a -android-ndk-host linux-x86_64 -android-toolchain-version 4.9 -platform linux-g++-64 -release
    
    ERROR: The OpenGL functionality tests failed!
    You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
    

    How to compile Qt source for Android?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should use the recommend NDK version matching your Qt release. For Qt 5.12 its the r19. See the Android Getting Started guide in Qt's documentation.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • E Offline
        E Offline
        EnormousSoft
        wrote on last edited by
        #3

        I did as you said (I downloaded the latest version of ndk-r19c, sdk, openjdk-11).

        Now a new error:

        sh: 1: /home/es/.android/ndk/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++: not found
        Project ERROR: Cannot run target compiler '/home/es/.android/ndk/android-ndk-r19c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++'. Output:
        ===================
        ===================
        Maybe you forgot to setup the environment?
        

        I sloved it by using "android-clang" instad of "android-g++" as guide said.

        Thank you .

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved