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. Setting up for Android - HELP!!!
Forum Updated to NodeBB v4.3 + New Features

Setting up for Android - HELP!!!

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 1.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.
  • C Offline
    C Offline
    Constantly_Stuck
    wrote on last edited by
    #1

    I'm just getting started with QT, so I'm sorry if my problem appears basic... I'm trying to build and run an application on Android but get an error every time during the build process.

    I would appreciate any help or advice...

    Here's what I have done so far:

    1. Re-installed the latest versions of:
    • QT
    • Android SDK
    • Android NDK
    • Java
    • Gradle
    1. Set up environment variables:
    • JAVA_HOME
    • GRADLE_HOME
    • Added Android SDK, Java and Gradle to the Path environment variable
    1. QT Android options:
    • Specified JDK location
    • SDK location
    • NDK Location
    • Ticked 'automatically create kits for Android tool chains'
    • Ticked 'use gradle instead of ant
    1. Below is the last part of the compile log I get when I try to build the project:

    Qt: Untested Windows version 10.0 detected!
    Application binary is not in output directory: C:/Users/Darren/Documents/QT PROJECTS/TestNewBuild/build-TestNewBuild-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_2-Debug/android-build//libs/armeabi-v7a/libTestNewBuild.so. Please run 'mingw32-make install INSTALL_ROOT=C:/Users/Darren/Documents/QT PROJECTS/TestNewBuild/build-TestNewBuild-Android_for_armeabi_v7a_GCC_4_9_Qt_5_4_2-Debug/android-build/' first.
    10:54:39: The process "E:\Qt\5.4\android_armv7\bin\androiddeployqt.exe" exited with code 7.
    Error while building/deploying project TestNewBuild (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.4.2))
    When executing step "Build Android APK"

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      The Windows 10 warning may come from your not-the-latest Qt version. Hint: Always report versions of each tool...

      The path problem is a result of having a space character in your project path (QT PROJECTS). Beware of that. Qt's tool chains don't like those at all.

      C 1 Reply Last reply
      1
      • M mvuori

        The Windows 10 warning may come from your not-the-latest Qt version. Hint: Always report versions of each tool...

        The path problem is a result of having a space character in your project path (QT PROJECTS). Beware of that. Qt's tool chains don't like those at all.

        C Offline
        C Offline
        Constantly_Stuck
        wrote on last edited by
        #3

        @mvuori thank you for your help - I removed the space from my QT Projects folder and to my amazement and surprise, it then worked!
        I now need to work out how to get the graphics to work on my phone and past the current errors, but your solution of removing the spaces in the path has at least allowed me to get the code working on the phone now.

        In terms of the Windows 10 & QT build issue - I am using QT 5.5.1 which I downloaded only last week, so I don't think that was the issue.

        Thank you for your help :-)

        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