Android - Qt successfully deploys Examples but not a selfmade new project. [SOLVED]



  • Hi, for the start i want to mention that i am very new to Qt, and my experience in it is limited by developing windows
    widget apps.
    I have installed the latest android SDK,NDK,JDK,ant,minGW (i use MSVC2012 for windows)
    Qt5.3

    so the problem is that i actually can't deploy a new empty android project (absolutely nothing modified)
    on my galaxy note2 device(android4.3+root), and getting some ass poor error:

    !http://i.imgur.com/t4jVQvF.jpg()!
    [install_target] Error 1
    (the device doesn't react in any way)

    while i AM able to deploy the Qt examples like mice collapse or maroon in trouble(some screen size bug on the last one tho)

    what could it be?
    thanks in advance.

    android configuration screenshot:
    !http://i.imgur.com/LmM9Nau.jpg()!


  • Moderators

    Hi,

    Can you post the complete Compile Output ?



  • @23:35:12: Running steps for project Android2...
    23:35:12: Configuration unchanged, skipping qmake step.
    23:35:12: Starting: "D:\Qt\Tools\mingw482_32\bin\mingw32-make.exe"
    mingw32-make: Nothing to be done for 'first'.
    23:35:15: The process "D:\Qt\Tools\mingw482_32\bin\mingw32-make.exe" exited normally.
    23:35:15: Starting: "D:\Qt\Tools\mingw482_32\bin\mingw32-make.exe" INSTALL_ROOT="C:\Users\Komi\Documents\Visual Studio 2013\Projects\QT\build-Android2-Android_for_armeabi_v7a_GCC_4_8_Qt_5_3_1-Debug\android-build" install
    'Studio' is not recognized as an internal or external command,
    operable program or batch file.
    'Studio' is not recognized as an internal or external command,
    operable program or batch file.
    Makefile:1563: recipe for target 'install_target' failed
    mingw32-make: *** [install_target] Error 1
    23:35:16: The process "D:\Qt\Tools\mingw482_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project Android2 (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.3.1))
    When executing step 'Copy application data'
    23:35:16: Elapsed time: 00:04.@


  • Moderators

    From the output i see the same old problem of spaces on Windows
    @
    "C:\Users\Komi\Documents\Visual Studio 2013\Projects\QT\build-Android2-Android_for_armeabi_v7a_GCC_4_8_Qt_5_3_1-Debug\android-build"
    @

    Try removing spaces from the name Visual Studio 2013 directory



  • Strangely, i do not get the previous output code WITHOUT FOLLOWING YOUR INSTRUCTION!

    i just run it another time before trying to apply that space replace, and surprisingly i see the next thing:
    @mingw32-make: *** [install_target] Error 1
    04:03:24: The process "D:\Qt\Tools\mingw482_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project Android2 (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.3.1))
    When executing step 'Copy application data'
    04:03:24: Elapsed time: 00:02.@

    nothing changed beside it tho, the same situation as the initial question description. Any clues?


  • Moderators

    Can you post the complete compile output ?



  • The previous message i've posted contains it, it is the full.


  • Moderators

    @ mingw32-make: *** [install_target] Error 1
    04:03:24: The process "D:\Qt\Tools\mingw482_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project Android2 (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.3.1))
    When executing step 'Copy application data'
    04:03:24: Elapsed time: 00:02.
    @

    But this doesnot reveal anything about the error ?
    Is this the only compile ouput now that gets printed on the console ?



  • @21:33:38: Running steps for project Android2...
    21:33:38: Configuration unchanged, skipping qmake step.
    21:33:38: Starting: "D:\Qt\Tools\mingw482_32\bin\mingw32-make.exe"
    mingw32-make: Nothing to be done for 'first'.
    21:33:39: The process "D:\Qt\Tools\mingw482_32\bin\mingw32-make.exe" exited normally.
    21:33:39: Starting: "D:\Qt\Tools\mingw482_32\bin\mingw32-make.exe" INSTALL_ROOT="C:\Users\Komi\Documents\Visual Studio 2013\Projects\QT\build-Android2-Android_for_armeabi_v7a_GCC_4_8_Qt_5_3_1-Release\android-build" install
    'Studio' is not recognized as an internal or external command,
    operable program or batch file.
    'Studio' is not recognized as an internal or external command,
    operable program or batch file.
    Makefile:1563: recipe for target 'install_target' failed
    mingw32-make: *** [install_target] Error 1
    21:33:40: The process "D:\Qt\Tools\mingw482_32\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project Android2 (kit: Android for armeabi-v7a (GCC 4.8, Qt 5.3.1))
    When executing step 'Copy application data'
    21:33:40: Elapsed time: 00:02.@

    I'm totally confused, every day i launch it, the compile output seem to give another code. all the 3 logs i posted are the complete output,
    anyway its !http://i.imgur.com/rLT2Glp.jpg()!
    the output i get now, as far as i know it shows all the compile output, does it?


  • Lifetime Qt Champion

    Hi,

    You should move you project in a path without any spaces, they are a source of trouble specially on windows



  • Thank you guys, seems to be solved!

    also sorry for not trying it the first time as p3c0 adviced, i tried to avoid MSVC directory renaming, as it is binded to many projects i made before, including non-Qt.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.