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. Configure qmake for android build outside the Qt Creator.
Forum Updated to NodeBB v4.3 + New Features

Configure qmake for android build outside the Qt Creator.

Scheduled Pinned Locked Moved Mobile and Embedded
qmakeqt 5.4.2androidmakefile
2 Posts 2 Posters 2.2k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on 20 Oct 2015, 11:08 last edited by
    #1

    Cannot do this. Trying to launch line from Qt Creator
    "C:\Qt\Qt5.4.2\5.4\android_x86\bin\qmake.exe" E:\Project\cmd.myh\trunk\code\client\ComodoOneHomeEdition\monitor\monitor.pro -r -spec android-g++
    This generate for me: (after adding path to my ndk as ANDROID_NDK_ROOT)
    CC = C:\Android\android-ndk-r10e/toolchains/x86-4.8/prebuilt/windows/bin/i686-linux-android-gcc
    CXX = C:\Android\android-ndk-r10e/toolchains/x86-4.8/prebuilt/windows/bin/i686-linux-android-g++
    But I have 64-bit windows and it does'nt build

    Qt Creator running same command generate makefile having such lines:
    CC = C:\Android\android-ndk-r10e/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-gcc
    CXX = C:\Android\android-ndk-r10e/toolchains/x86-4.9/prebuilt/windows-x86_64/bin/i686-linux-android-g++
    That's builds

    So i cant build project with wrong makefile. How can i specify the toolchain for qmake?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 20 Oct 2015, 22:29 last edited by
      #2

      Hi,

      Windows 64 bit is able to run 32bit applications. What exact error do you get ? Did you setup all android environment variables ?

      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/2

      20 Oct 2015, 11:08

      • Login

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