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

Building Qt for android-clang does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.9.0, 5.9.1
    • QPA
    • None
    • Android

    Description

      After 2 hour of discussion in #qt @ freenode we found out  there is bug in QMake (or its configuration) which does not allow to build QtCore in linux based system (I don't know about other systems, but I think it would be the same).

       

      Careful this bug only affects android-clang toolchain. Since google depracated gcc we should focus more on Clang instead of gcc from now on.

      ../configure -opensource -confirm-license -xplatform android-clang -android-ndk /opt/android-sdk/ndk-bundle -android-sdk /opt/android-sdk -android-ndk-host linux-x86_64 -android-arch x86 -android-toolchain-version 4.9 -nomake tests -nomake examples -android-ndk-platform android-22 -no-gui -static

      this is the command I was building qtCore. But sergio did it with other configs and got same error. The error is something wired. But after tweaking QMake script I found out it is linker error and QMake cannot compile sample program correctly so it stops build process right at first.

       

      I fixed (hacked) my ndk like this : 

      I copied all the libraries from : 

      /opt/android-sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/linux-x86_64/lib/

      to 

      /opt/android-sdk/ndk-bundle/platforms/android-22/arch-x86/usr/lib

       

      As you might notice this would only works for specific platform version and is not right way to do it.

       

       

       

      Attachments

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              rahimi navidR
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes