Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.1.1 for Android building by MinGW: Getting Embedded Linux instead of Android version
Forum Updated to NodeBB v4.3 + New Features

Qt 5.1.1 for Android building by MinGW: Getting Embedded Linux instead of Android version

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 4 Posters 4.1k Views 1 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.
  • Z Offline
    Z Offline
    ZeAL0T
    wrote on last edited by
    #1

    Hi all,
    I'm trying to make Qt for Android under Windows 8 (x64) using this "manual":http://qt-project.org/wiki/building_qt-android_on_windows. The build works perfect but the result of this build is really strange. When I add the obtained qmake executable to the Qt Creator it say that "No compiler can produce code for this Qt version. Please define one or more compilers". I think this is because the version is "Qt version 5.1.1 for Embedded Linux", but should be "Qt version 5.1.1 for Android".

    The ABI is arm-linux-generic-elf-32bit, but should be arm-linux-android-elf-32bit.
    How to fix the problem?

    Here is my configuration script:
    @
    set ANDROID_NDK_PLATFORM=android-18
    set ANDROID_TARGET_ARCH=armeabi-v7a
    set ANDROID_BUILD_TOOLS_REVISION=18.1.1
    set ANDROID_NDK_HOST=windows-x86_64

    set PATH=D:\Qt\Qt5.1.1\Tools\mingw48_32\bin;C:\strawberry\perl\bin;C:\Program Files\Java\jdk1.7.0_21\bin

    configure.bat -developer-build -platform win32-g++ -opengl es2 -xplatform android-g++ -android-ndk D:\android\android-ndk-r9 -android-sdk D:\android\android-sdk -android-toolchain-version 4.8 -opensource -confirm-license -nomake tests -nomake examples -D QT_COORD_TYPE=double
    @

    Here is the details of result version:
    Qt version 5.1.1 for Embedded Linux
    @
    Name: Qt 5.1.1 (Src)
    ABI: arm-linux-generic-elf-32bit
    Source: D:\Qt\Qt5.1.1\5.1.1\Src\qtbase
    mkspec: android-g++
    qmake: D:\Qt\Qt5.1.1\5.1.1\Src\qtbase\bin\qmake.exe
    Version: 5.1.1
    QMAKE_SPEC win32-g++
    QMAKE_VERSION 3.0
    QMAKE_XSPEC android-g++
    QT_HOST_BINS D:\Qt\Qt5.1.1\5.1.1\Src\qtbase\bin
    QT_HOST_DATA D:\Qt\Qt5.1.1\5.1.1\Src\qtbase
    QT_HOST_LIBS D:\Qt\Qt5.1.1\5.1.1\Src\qtbase\lib
    QT_HOST_PREFIX D:\Qt\Qt5.1.1\5.1.1\Src\qtbase
    QT_INSTALL_ARCHDATA D:\Qt\Qt5.1.1\5.1.1\Src\qtbase
    QT_INSTALL_BINS D:\Qt\Qt5.1.1\5.1.1\Src\qtbase\bin
    QT_INSTALL_CONFIGURATION
    QT_INSTALL_DATA D:\Qt\Qt5.1.1\5.1.1\Src\qtbase
    QT_INSTALL_DEMOS D:\Qt\Qt5.1.1\5.1.1\Src\qtbase\examples
    QT_INSTALL_DOCS D:\Qt\Qt5.1.1\5.1.1\Src\qtbase\doc
    QT_INSTALL_EXAMPLES D:\Qt\Qt5.1.1\5.1.1\Src\qtbase\examples
    QT_INSTALL_HEADERS D:\Qt\Qt5.1.1\5.1.1\Src\qtbase\include
    QT_INSTALL_IMPORTS D:\Qt\Qt5.1.1\5.1.1\Src\qtbase\imports
    QT_INSTALL_LIBEXECS D:\Qt\Qt5.1.1\5.1.1\Src\qtbase\bin
    QT_INSTALL_LIBS D:\Qt\Qt5.1.1\5.1.1\Src\qtbase\lib
    QT_INSTALL_PLUGINS D:\Qt\Qt5.1.1\5.1.1\Src\qtbase\plugins
    QT_INSTALL_PREFIX D:\Qt\Qt5.1.1\5.1.1\Src\qtbase
    QT_INSTALL_QML D:\Qt\Qt5.1.1\5.1.1\Src\qtbase\qml
    QT_INSTALL_TESTS D:\Qt\Qt5.1.1\5.1.1\Src\qtbase\tests
    QT_INSTALL_TRANSLATIONS D:\Qt\Qt5.1.1\5.1.1\Src\qtbase\translations
    QT_SYSROOT
    QT_VERSION 5.1.1
    @

    1 Reply Last reply
    0
    • strahlexS Offline
      strahlexS Offline
      strahlex
      wrote on last edited by
      #2

      Have you solved the problem? I get the same result on Linux.

      Feel free to check out my website machinekoder.com
      and my pet projects Intellicute and QtQuickVcp

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

        Hi,

        Just a shot in the dark but did you setup Qt Creator properly for Android ? There's an Android panel in the option dialog

        Hope it helps

        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
        • Z Offline
          Z Offline
          ZeAL0T
          wrote on last edited by
          #4

          [quote author="strahlex" date="1385567834"]Have you solved the problem? I get the same result on Linux.[/quote]

          For windows issue I've just copied qmake binary file from existing Qt MinGW distribution. So all Qt binaries was builded fine except qmake.

          Under Linux I haven't got this problem.
          Here is my configuration script for Linux:
          @./configure -opensource -confirm-license -prefix $PWD/qtbase -developer-build -xplatform android-g++ -nomake tests -nomake examples -android-ndk $PWD/../android-ndk-r9 -android-sdk $PWD/../android-sdk-linux -android-ndk-host linux-x86_64 -android-toolchain-version 4.8 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -DQT_COORD_TYPE=double@

          And this is the build script:
          @export ANDROID_BUILD_TOOLS_REVISION=18.1.1

          make -jgrep -c ^processor /proc/cpuinfo
          make module-qtsvg-all -jgrep -c ^processor /proc/cpuinfo
          make module-qtscripttools-all -jgrep -c ^processor /proc/cpuinfo@

          Note that -jgrep -c ^processor /proc/cpuinfo just sets the number of build threads you can omit it.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mr Aloof
            wrote on last edited by
            #5

            geiliality!

            [quote author="ZeAL0T" date="1385616053"][quote author="strahlex" date="1385567834"]Have you solved the problem? I get the same result on Linux.[/quote]

            For windows issue I've just copied qmake binary file from existing Qt MinGW distribution. So all Qt binaries was builded fine except qmake.

            Under Linux I haven't got this problem.
            Here is my configuration script for Linux:
            @./configure -opensource -confirm-license -prefix $PWD/qtbase -developer-build -xplatform android-g++ -nomake tests -nomake examples -android-ndk $PWD/../android-ndk-r9 -android-sdk $PWD/../android-sdk-linux -android-ndk-host linux-x86_64 -android-toolchain-version 4.8 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -DQT_COORD_TYPE=double@

            And this is the build script:
            @export ANDROID_BUILD_TOOLS_REVISION=18.1.1

            make -jgrep -c ^processor /proc/cpuinfo
            make module-qtsvg-all -jgrep -c ^processor /proc/cpuinfo
            make module-qtscripttools-all -jgrep -c ^processor /proc/cpuinfo@

            Note that -jgrep -c ^processor /proc/cpuinfo just sets the number of build threads you can omit it.[/quote]

            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