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. Android: Qt 5.5 Compile time Error
QtWS25 Last Chance

Android: Qt 5.5 Compile time Error

Scheduled Pinned Locked Moved Solved Mobile and Embedded
androidwindows10
9 Posts 2 Posters 4.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.
  • V Offline
    V Offline
    vahidnateghi
    wrote on last edited by vahidnateghi
    #1

    I've had some experience with Qt but none with android in Qt, I've downloaded:

    Qt5.5-Android 
    
    Jdk-1.8
    
    NDK-r14
    
    ant-1.10
    
    SDK r26
    

    and I've given the appropriate addresses to the sections in Tools->Options->Android

    However, When I create a brand new project, connect my phone (Samsung Galaxy Note 5, with USB Debugging ON) and select armeabi-v7a(GCC 4.9, Qt 5.5.0), I get the following errors in compile time:

    19:09:46: Running steps for project TestAndroid1...
    19:09:46: Configuration unchanged, skipping qmake step.
    19:09:46: Starting: "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" 
    mingw32-make: Nothing to be done for 'first'.
    19:09:47: The process "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" exited normally.
    19:09:47: Removing directory C:\Users\Vahid\Documents\build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug\android-build
    19:09:48: Starting: "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" INSTALL_ROOT="C:\Users\Vahid\Documents\build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug\android-build" install
    copy /y libTestAndroid1.so C:\Users\Vahid\Documents\build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug\android-build\libs\armeabi-v7a\libTestAndroid1.so
            1 file(s) copied.
    19:09:49: The process "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" exited normally.
    19:09:49: Starting: "C:\Qt\Qt5.5.0\5.5\android_armv7\bin\androiddeployqt.exe" --input C:/Users/Vahid/Documents/build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-libTestAndroid1.so-deployment-settings.json --output C:/Users/Vahid/Documents/build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build --deployment bundled --android-platform android-25 --jdk "C:/Program Files/Java/jdk1.8.0_121" --ant C:/Users/Vahid/Downloads/Compressed/apache-ant-1.9.6-bin/apache-ant-1.9.6/bin/ant.bat
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    The process tried to write to a nonexistent pipe.
    Generating Android Package
      Input file: C:/Users/Vahid/Documents/build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-libTestAndroid1.so-deployment-settings.json
      Output directory: C:/Users/Vahid/Documents/build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/
      Application binary: C:/Users/Vahid/Documents/build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/libTestAndroid1.so
      Android build platform: android-25
      Install to device: No
    Buildfile: build.xml does not exist!
    Build failed
    Building the android package failed!
      -- For more information, run this command with --verbose.
    19:09:53: The process "C:\Qt\Qt5.5.0\5.5\android_armv7\bin\androiddeployqt.exe" exited with code 14.
    Error while building/deploying project TestAndroid1 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.5.0))
    When executing step "Build Android APK"
    19:09:53: Elapsed time: 00:07.
    

    I've been stuck in this for a couple of days now and I appreciate any suggestions, Thank you in advance.

    jsulmJ V 2 Replies Last reply
    0
    • V Offline
      V Offline
      vahidnateghi
      wrote on last edited by vahidnateghi
      #7

      Thank you @jsulm but I actually solved the problem! The problem was my SDK version! apparently after SDK r25.2.5 ant is not supported by the SDK anymore!!! So I used an older version of SDK and SOLVED!
      See My StackOverFlow Question
      Also See This.
      Also See This for adding ant to newer versions of SDK (Haven't tried this myself yet!).

      jsulmJ 1 Reply Last reply
      0
      • V vahidnateghi

        I've had some experience with Qt but none with android in Qt, I've downloaded:

        Qt5.5-Android 
        
        Jdk-1.8
        
        NDK-r14
        
        ant-1.10
        
        SDK r26
        

        and I've given the appropriate addresses to the sections in Tools->Options->Android

        However, When I create a brand new project, connect my phone (Samsung Galaxy Note 5, with USB Debugging ON) and select armeabi-v7a(GCC 4.9, Qt 5.5.0), I get the following errors in compile time:

        19:09:46: Running steps for project TestAndroid1...
        19:09:46: Configuration unchanged, skipping qmake step.
        19:09:46: Starting: "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" 
        mingw32-make: Nothing to be done for 'first'.
        19:09:47: The process "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" exited normally.
        19:09:47: Removing directory C:\Users\Vahid\Documents\build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug\android-build
        19:09:48: Starting: "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" INSTALL_ROOT="C:\Users\Vahid\Documents\build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug\android-build" install
        copy /y libTestAndroid1.so C:\Users\Vahid\Documents\build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug\android-build\libs\armeabi-v7a\libTestAndroid1.so
                1 file(s) copied.
        19:09:49: The process "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" exited normally.
        19:09:49: Starting: "C:\Qt\Qt5.5.0\5.5\android_armv7\bin\androiddeployqt.exe" --input C:/Users/Vahid/Documents/build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-libTestAndroid1.so-deployment-settings.json --output C:/Users/Vahid/Documents/build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build --deployment bundled --android-platform android-25 --jdk "C:/Program Files/Java/jdk1.8.0_121" --ant C:/Users/Vahid/Downloads/Compressed/apache-ant-1.9.6-bin/apache-ant-1.9.6/bin/ant.bat
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        The process tried to write to a nonexistent pipe.
        Generating Android Package
          Input file: C:/Users/Vahid/Documents/build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-libTestAndroid1.so-deployment-settings.json
          Output directory: C:/Users/Vahid/Documents/build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/
          Application binary: C:/Users/Vahid/Documents/build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/libTestAndroid1.so
          Android build platform: android-25
          Install to device: No
        Buildfile: build.xml does not exist!
        Build failed
        Building the android package failed!
          -- For more information, run this command with --verbose.
        19:09:53: The process "C:\Qt\Qt5.5.0\5.5\android_armv7\bin\androiddeployqt.exe" exited with code 14.
        Error while building/deploying project TestAndroid1 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.5.0))
        When executing step "Build Android APK"
        19:09:53: Elapsed time: 00:07.
        

        I've been stuck in this for a couple of days now and I appreciate any suggestions, Thank you in advance.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #2

        @vahidnateghi At which step does this happen (you should post the whole command line causing this error)? Is it during deployment to the device/emulator?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        V 1 Reply Last reply
        0
        • V Offline
          V Offline
          vahidnateghi
          wrote on last edited by
          #3

          @jsulm Thank you for the reply. Right now I'm at work, I'll post the whole compile output as soon as I get home in a few hours.
          I'm not sure but I think it is during the deployment operation.

          1 Reply Last reply
          0
          • jsulmJ jsulm

            @vahidnateghi At which step does this happen (you should post the whole command line causing this error)? Is it during deployment to the device/emulator?

            V Offline
            V Offline
            vahidnateghi
            wrote on last edited by
            #4

            @jsulm Ok, So I've just updated the Question, thanks again.

            1 Reply Last reply
            0
            • V vahidnateghi

              I've had some experience with Qt but none with android in Qt, I've downloaded:

              Qt5.5-Android 
              
              Jdk-1.8
              
              NDK-r14
              
              ant-1.10
              
              SDK r26
              

              and I've given the appropriate addresses to the sections in Tools->Options->Android

              However, When I create a brand new project, connect my phone (Samsung Galaxy Note 5, with USB Debugging ON) and select armeabi-v7a(GCC 4.9, Qt 5.5.0), I get the following errors in compile time:

              19:09:46: Running steps for project TestAndroid1...
              19:09:46: Configuration unchanged, skipping qmake step.
              19:09:46: Starting: "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" 
              mingw32-make: Nothing to be done for 'first'.
              19:09:47: The process "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" exited normally.
              19:09:47: Removing directory C:\Users\Vahid\Documents\build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug\android-build
              19:09:48: Starting: "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" INSTALL_ROOT="C:\Users\Vahid\Documents\build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug\android-build" install
              copy /y libTestAndroid1.so C:\Users\Vahid\Documents\build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug\android-build\libs\armeabi-v7a\libTestAndroid1.so
                      1 file(s) copied.
              19:09:49: The process "C:\Qt\Qt5.5.0\Tools\mingw492_32\bin\mingw32-make.exe" exited normally.
              19:09:49: Starting: "C:\Qt\Qt5.5.0\5.5\android_armv7\bin\androiddeployqt.exe" --input C:/Users/Vahid/Documents/build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-libTestAndroid1.so-deployment-settings.json --output C:/Users/Vahid/Documents/build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build --deployment bundled --android-platform android-25 --jdk "C:/Program Files/Java/jdk1.8.0_121" --ant C:/Users/Vahid/Downloads/Compressed/apache-ant-1.9.6-bin/apache-ant-1.9.6/bin/ant.bat
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              The process tried to write to a nonexistent pipe.
              Generating Android Package
                Input file: C:/Users/Vahid/Documents/build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-libTestAndroid1.so-deployment-settings.json
                Output directory: C:/Users/Vahid/Documents/build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/android-build/
                Application binary: C:/Users/Vahid/Documents/build-TestAndroid1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_5_0-Debug/libTestAndroid1.so
                Android build platform: android-25
                Install to device: No
              Buildfile: build.xml does not exist!
              Build failed
              Building the android package failed!
                -- For more information, run this command with --verbose.
              19:09:53: The process "C:\Qt\Qt5.5.0\5.5\android_armv7\bin\androiddeployqt.exe" exited with code 14.
              Error while building/deploying project TestAndroid1 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.5.0))
              When executing step "Build Android APK"
              19:09:53: Elapsed time: 00:07.
              

              I've been stuck in this for a couple of days now and I appreciate any suggestions, Thank you in advance.

              V Offline
              V Offline
              vahidnateghi
              wrote on last edited by
              #5

              any one? :(

              jsulmJ 1 Reply Last reply
              0
              • V vahidnateghi

                any one? :(

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #6

                @vahidnateghi Can you try with a more recent Qt version? And did you try to deploy to the emulator?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • V Offline
                  V Offline
                  vahidnateghi
                  wrote on last edited by vahidnateghi
                  #7

                  Thank you @jsulm but I actually solved the problem! The problem was my SDK version! apparently after SDK r25.2.5 ant is not supported by the SDK anymore!!! So I used an older version of SDK and SOLVED!
                  See My StackOverFlow Question
                  Also See This.
                  Also See This for adding ant to newer versions of SDK (Haven't tried this myself yet!).

                  jsulmJ 1 Reply Last reply
                  0
                  • V vahidnateghi

                    Thank you @jsulm but I actually solved the problem! The problem was my SDK version! apparently after SDK r25.2.5 ant is not supported by the SDK anymore!!! So I used an older version of SDK and SOLVED!
                    See My StackOverFlow Question
                    Also See This.
                    Also See This for adding ant to newer versions of SDK (Haven't tried this myself yet!).

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #8

                    @vahidnateghi You could just use Gradle which is the standard and supported by QtCreator (you just need to tell QtCreator to use Gradle).

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    V 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @vahidnateghi You could just use Gradle which is the standard and supported by QtCreator (you just need to tell QtCreator to use Gradle).

                      V Offline
                      V Offline
                      vahidnateghi
                      wrote on last edited by
                      #9

                      @jsulm hmm yes I'll try Gradle as well, thank you!

                      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