Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator doesn't create .apk file
Forum Updated to NodeBB v4.3 + New Features

QtCreator doesn't create .apk file

Scheduled Pinned Locked Moved Qt Creator and other tools
8 Posts 4 Posters 8.6k 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.
  • D Offline
    D Offline
    dmendizabal
    wrote on last edited by
    #1

    I'm trying to test a sample code with emulator (AVD). The emulator starts when I click run, but nothing happens. I don't see my app running. I've realised that QtCreator doesn't create the .apk file. Or at least I can't find it.

    Any light of what could be the problem?

    Developing environment: Ubuntu 13.04 (64-bit), OpenJDK 7, last android SDK and NDK.
    I have installed Qt5.1 using the Online installer and I've chosen Android arm & x86 components.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on last edited by
      #2

      Hello, ~dmendizabal

      Seems that your problem lies in Compilation Output. Actually, creating .apk is a Deploy step of building application, that's why, possibly you have a problem there.

      If you show us contents of Compile Output - it's gonna be great

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dmendizabal
        wrote on last edited by
        #3

        The compile output finish with:

        22:55:27: The process "/usr/bin/make" exited normally.
        22:55:27: Elapsed time: 00:06.
        22:55:48: Please wait, searching for a suitable device for target:android-10.
        Error while building/deploying project test51 (kit: Android for arm (GCC 4.7, Qt 5.1.0))
        When executing step 'Deploy to Android device'

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tucnak
          wrote on last edited by
          #4

          [quote author="dmendizabal" date="1374066041"]The compile output finish with:

          22:55:27: The process "/usr/bin/make" exited normally.
          22:55:27: Elapsed time: 00:06.
          22:55:48: Please wait, searching for a suitable device for target:android-10.
          Error while building/deploying project test51 (kit: Android for arm (GCC 4.7, Qt 5.1.0))
          When executing step 'Deploy to Android device'[/quote]

          I had the same trouble once. Try to Make Clean project you have, manually remove all build files and 'android' dir, then add AVD in Qt Creator > Settings > Android and try again.

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

            I am having similar problems with Qt 5.2. Won't make an APK. Did efore on 5.1.1 or 5.1.0, can't remember. I have updated all of the Java, SDK, NDK stuff. Here is my output when compiling example analogclock:

            Found old folder "android" in source directory. Qt 5.2 does not use that folder by default.
            11:40:43: Running steps for project analogclock...
            11:40:43: Configuration unchanged, skipping qmake step.
            11:40:43: Starting: "C:\Qt5\Tools\mingw48_32\bin\mingw32-make.exe"
            mingw32-make: Nothing to be done for 'first'.
            11:40:45: The process "C:\Qt5\Tools\mingw48_32\bin\mingw32-make.exe" exited normally.
            11:40:45: Removing directory C:\Qt5\5.2.0\mingw48_32\examples\widgets\widgets\build-analogclock-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_0-Release\android-build
            11:40:47: Starting: "C:\Qt5\Tools\mingw48_32\bin\mingw32-make.exe" INSTALL_ROOT="C:\Qt5\5.2.0\mingw48_32\examples\widgets\widgets\build-analogclock-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_0-Release\android-build" install
            copy /y "libanalogclock.so" "C:\Qt5\5.2.0\mingw48_32\examples\widgets\widgets\build-analogclock-Android_for_armeabi_v7a_GCC_4_8_Qt_5_2_0-Release\android-build\libs\armeabi-v7a\libanalogclock.so"
            1 file(s) copied.
            11:40:48: The process "C:\Qt5\Tools\mingw48_32\bin\mingw32-make.exe" exited normally.
            Error while building/deploying project analogclock (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.2.0))
            When executing step 'Deploy to Android device'
            11:42:49: Elapsed time: 02:05.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Mr_Ada
              wrote on last edited by
              #6

              Well I have been able to get apk's built. Missing an include in the pro file.

              What is really irritating is that I cannot build unless I use that silly simulated android device. I just want Qt to build the apk, I'll take of deploy it to my phone.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                Traxx
                wrote on last edited by
                #7

                Maybe you can post what "include" is missing in .pro

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  Mr_Ada
                  wrote on last edited by
                  #8

                  DEPENDPATH = Z:\Android\adt\android-ndk-r9c\sources\cxx-stl\gnu-libstdc++\4.8\include

                  1 Reply Last reply
                  1

                  • Login

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