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, Qt5.1, Debian
Forum Updated to NodeBB v4.3 + New Features

Android, Qt5.1, Debian

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

    Hi. In the past I have developed with Necessitas without any problem.
    I have removed Necessitas to start to develop with Qt 5.1. When I try to deploy an application for Android I obtain this error: "/Dati/Qt/Android/apache-ant-1.9.2/bin/ant clean debug' failed.Exit code: 1".
    What can I do to resolve the problem?

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Moster
      wrote on last edited by
      #2

      Could be related to some missing/wrong jdk in your android configuration. It should be openjdk 6.

      1 Reply Last reply
      0
      • mrdebugM Offline
        mrdebugM Offline
        mrdebug
        wrote on last edited by
        #3

        This is my current configuration:
        !http://www.denisgottardello.it/ant.jpeg(qtcreator -> options -> android)!
        Is a problem related to a too updated ant version?

        Need programmers to hire?
        www.labcsp.com
        www.denisgottardello.it
        GMT+1
        Skype: mrdebug

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Moster
          wrote on last edited by
          #4

          When Im reading this page http://openjdk.java.net/install/, I see that the package openjdk 1.6.0 doesnt look to be for debian, but I guess thats not the source of the error. I also use ant 1.9.2 btw.

          The main issue might be that your java location is wrong.
          It should be /usr/lib/jvm/java-1.6.0-openjdk-i386

          1 Reply Last reply
          0
          • mrdebugM Offline
            mrdebugM Offline
            mrdebug
            wrote on last edited by
            #5

            Thanks a lot. Now my program is working in emulator but not in my mobile. When i try to install it I obtain the error: "There is a problem parsing the package". Do you know what is means?

            Need programmers to hire?
            www.labcsp.com
            www.denisgottardello.it
            GMT+1
            Skype: mrdebug

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

              I dont exactly know what it means. But according to google, you should activate "Unknown sources" in the security settings of android. This prevents installing apks that arent from the play store.

              1 Reply Last reply
              0
              • mrdebugM Offline
                mrdebugM Offline
                mrdebug
                wrote on last edited by
                #7

                Probably has happened a problem copying the application.
                The application has been installed correctly but when I try to start it in my mobile I obtain the error: "Your application encountered a fatal error and cannot continue."
                I have uninstalled Ministro and made clean the mobile.
                Is it a permissions error?

                Need programmers to hire?
                www.labcsp.com
                www.denisgottardello.it
                GMT+1
                Skype: mrdebug

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

                  What is your device?

                  1 Reply Last reply
                  0
                  • mrdebugM Offline
                    mrdebugM Offline
                    mrdebug
                    wrote on last edited by
                    #9

                    Lg P990, Android 2.3.7, kernel 2.6.32.55-cyanogenmod.
                    With Necessitas all has worked well.

                    Need programmers to hire?
                    www.labcsp.com
                    www.denisgottardello.it
                    GMT+1
                    Skype: mrdebug

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      Moster
                      wrote on last edited by
                      #10

                      Ok, thought it might be an armv6 cpu. Do you know how to use adb logcat? It might give you more information on what happens when you run the app.

                      1 Reply Last reply
                      0
                      • mrdebugM Offline
                        mrdebugM Offline
                        mrdebug
                        wrote on last edited by
                        #11

                        By surfing in the forum I have found another discussion about this problem. Do you know if there is a way to download the android_armv6 libraries?
                        Is there an easy way to build them by myself?

                        Need programmers to hire?
                        www.labcsp.com
                        www.denisgottardello.it
                        GMT+1
                        Skype: mrdebug

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          Moster
                          wrote on last edited by
                          #12

                          Actually you dont have an armv6 device. Your phone runs an tegra 2 chipset which supports the armv7 instruction set. So the issue arent the libs I think. Try to use "adb logcat" and see the complete error log.

                          1 Reply Last reply
                          0
                          • mrdebugM Offline
                            mrdebugM Offline
                            mrdebug
                            wrote on last edited by
                            #13

                            Reading this table
                            http://source.android.com/source/build-numbers.html
                            the requested api level from my mobile is 10. Now the application works in my mobile correctly (not in the emulator but is not important).

                            Now it's a very portable application instead of Necessitas - Ministro.

                            The next step is Mac OS X. Thanks a lot.

                            Need programmers to hire?
                            www.labcsp.com
                            www.denisgottardello.it
                            GMT+1
                            Skype: mrdebug

                            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