Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved Android: Qt 5.5 Compile time Error

    Mobile and Embedded
    android windows10
    2
    9
    3657
    Loading More Posts
    • 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
      vahidnateghi last edited by 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.

      jsulm V 2 Replies Last reply Reply Quote 0
      • V
        vahidnateghi last edited by 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!).

        jsulm 1 Reply Last reply Reply Quote 0
        • jsulm
          jsulm Lifetime Qt Champion @vahidnateghi last edited by

          @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 Reply Quote 0
          • V
            vahidnateghi last edited by

            @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 Reply Quote 0
            • V
              vahidnateghi @jsulm last edited by

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

              1 Reply Last reply Reply Quote 0
              • V
                vahidnateghi @vahidnateghi last edited by

                any one? :(

                jsulm 1 Reply Last reply Reply Quote 0
                • jsulm
                  jsulm Lifetime Qt Champion @vahidnateghi last edited by

                  @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 Reply Quote 0
                  • V
                    vahidnateghi last edited by 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!).

                    jsulm 1 Reply Last reply Reply Quote 0
                    • jsulm
                      jsulm Lifetime Qt Champion @vahidnateghi last edited by

                      @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 Reply Quote 0
                      • V
                        vahidnateghi @jsulm last edited by

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

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post