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. [Solved] Qt Creator: Linux host, Android target - no compiler can produce code for this Qt version.
Forum Update on Monday, May 27th 2025

[Solved] Qt Creator: Linux host, Android target - no compiler can produce code for this Qt version.

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 4.2k Views
  • 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.
  • B Offline
    B Offline
    bootchk
    wrote on 31 Aug 2014, 13:50 last edited by
    #1

    I cloned the qt repository and built it for android following the wiki. In Qt Creator, I tried to choose the newly built Qt version and got "No compiler can produce...".

    But I have been using Qt Creator to build an android app with a binary installed version of Qt 5.3.1 for android, so I think the correct compiler is visible: Android GCC (arm 4.8).

    When I choose the installed 'Qt 5.3 for Android armv7', the details show ABI 'arm-linux-android-elf-32bit', but when I choose the Qt that I built 'Qt 5.3.2 (qt5)' it shows ABI 'arm-linux-generic-elf-32bit'. Is that the problem? I interpret that to mean it is built for 'generic linux' on ARM eabi instead of for 'android hack of linux' on the ARM eabi.

    To build Qt 5.3.2 I used this command:

    @./configure -xplatform android-g++ -nomake tests -nomake examples -android-ndk /home/bootch/android-ndk-r10 -android-sdk /home/bootch/android-sdk-linux -android-ndk-host linux-x86 -android-toolchain-version 4.8 -android-ndk-platform android-19 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -skip qtdeclarative -skip qtmultimedia -no-warnings-are-errors -v@

    Do I need '-developer-build'?

    I also tried '-android-ndk-platform android-10' (thinking that should be the ndk release number) but I think the configure script reported that as invalid.

    I also futzed around in Qt Creator trying to add a kit, with similar problems.

    This is on Ubuntu 14.04 using Qt Creator 3.1.2.

    (My real goal is to harness plugins/platforms/android/androidjnimain.cpp with log stmts to logcat so I might find why my hello_android app is quietly dying on Android. )

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bootchk
      wrote on 31 Aug 2014, 16:05 last edited by
      #2

      More or less solved: I added -developer-build and changed android-19 to android-14 and a few other changes, and now Qt Creator will add my built version of Qt without complaining "No compiler...". That doesn't explain WHY it works now.

      @./configure -android-toolchain-version 4.8 -android-ndk-host linux-x86 -developer-build -xplatform android-g++ -nomake tests -nomake examples -android-ndk /home/bootch/android-ndk-r10 -android-sdk /home/bootch/android-sdk-linux -android-ndk-platform android-14 -skip qttools -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -skip qtdeclarative -skip qtmultimedia -no-warnings-are-errors -v@

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 31 Aug 2014, 21:04 last edited by
        #3

        Hi,

        IIRC, there where some levels of the NDK needed (at least 14). I wonder if that might have an influence here

        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
        0
        • B Offline
          B Offline
          bootchk
          wrote on 1 Sept 2014, 22:24 last edited by
          #4

          Yes, that seems on the right track. IIRC the instructions say something like 'you need API-9 and API-14 to build Qt, but you then can build an app to any API.' I guess I was confusing the two notions, that I should build Qt to some lower API than I am deploying my app?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 2 Sept 2014, 20:03 last edited by
            #5

            I don't remember the details for the specific lower level API need. You should ask this on the android-development mailing list or the necessitas IRC channel

            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
            0

            1/5

            31 Aug 2014, 13:50

            • Login

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