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 & Android Deployment error.
QtWS25 Last Chance

Qt 5.1.1 & Android Deployment error.

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 2 Posters 5.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.
  • S Offline
    S Offline
    seg_fault
    wrote on last edited by
    #1

    Hi All,

    I have seen this issue discussed a little but haven't come across any solutions yet. Using Windows 7 and Qt 5.1.1.

    I am trying to deploy a simple app (MainWindow & a QButton) to an Android device (emulator or physical) and keep getting the error

    [code]
    10:55:52: Starting: "C:\Qt\Qt5.1.1_android\Tools\mingw48_32\bin\mingw32-make.exe" INSTALL_ROOT="C:\\Users\\User\\MyFirstAndroidApp\\android" install
    makefile:1607: recipe for target 'install_target' failed
    The system cannot find the path specified.
    The system cannot find the path specified.
    mingw32-make: *** [install_target] Error 1
    10:55:53: The process "C:\Qt\Qt5.1.1_android\Tools\mingw48_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project MyFirstAndroidApp (kit: Android for arm (GCC 4.8, Qt 5.1.1))
    When executing step 'Copy application data'
    10:55:53: Elapsed time: 00:05.
    [/code]

    My paths all seem right;
    JDK is installed. Qt sees the NDK & SDK. 'adb devices' returns both the physical & emulated device and running 'ant' from a console window responds as expected.

    I am not sure what I could have missed, does anyone have any suggestions?

    Thanks.

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

      Hi!
      Does your .apk file get created? Check your "C:\\Users\\User\\MyFirstAndroidApp\\android", is it there?
      Also I'm not sure, but why is there so many backslashes like "\\"?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        seg_fault
        wrote on last edited by
        #3

        Hi,

        I think the extra slashes happened when the forum or code block posted. The output doesn't have this and looks correct.

        No apk gets created anywhere I can see.

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

          Is the build step succesfull?
          You may try to move your project to simplifed location like "C:\QtProjects\YourProject", sometimes it helps

          1 Reply Last reply
          0
          • S Offline
            S Offline
            seg_fault
            wrote on last edited by
            #5

            Finally, I have an error!

            What you suggested seems to have worked, although I think indirectly.

            After I removed the .user file to set up the project again it started giving me errors about the JRE / JDK.

            I'll work though these and see how I go.

            Thanks.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              seg_fault
              wrote on last edited by
              #6

              This is the error I am now getting if anyone has any suggetions.

              http://pastebin.com/a3VvHVxd

              1 Reply Last reply
              0
              • S Offline
                S Offline
                seg_fault
                wrote on last edited by
                #7

                I changed the target SDK and everything worked.

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  terenty
                  wrote on last edited by
                  #8

                  Im glad you did it :)

                  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