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.2.1/5.3 Android debug doesn't work?
Forum Updated to NodeBB v4.3 + New Features

Qt 5.2.1/5.3 Android debug doesn't work?

Scheduled Pinned Locked Moved Mobile and Embedded
11 Posts 7 Posters 4.3k 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.
  • B Offline
    B Offline
    brazilrs
    wrote on last edited by
    #1

    I am working on QtQuick 2.2 application. Debug works excellent on Desktop(Win/OSX) and iOS platforms. But when i try to "Debug" application on Android (real device or simulator) - debug doesn't start (but application trying to start). When i try "Run" (on real device or simulator) - no have any problem.

    I am tried to "Debug" different Qt-exmples (Colliding Mice, Maroon in Trouble, and many others), and have similar problems.

    Steps to reproduce problem:

    1. Open any Qt/QtQuick project in QtCreator
    2. Select building and deployment to Android device
    3. "Build" - "Run" from Qt-Creator menu. Application compiles, installed to device, started, and working fine
    4. "Debug" - "Start debug" from menu. Application compiles, installed to device, started, and... not respond some time, then crushed.

    Did anyone has similar problems?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      s.frings74
      wrote on last edited by
      #2

      Yes, I have the same problem with any simple Qt Widget application and Qt 5.2, 5.2.1.
      With Qt 5.3, the application start on the phone (or emulator) but Qt says that startup failed.
      I am running Qt on Ubuntu 14.04.

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

        how about your problem? did you resolve it?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          s.frings74
          wrote on last edited by
          #4

          No, I have still no solution. SInce I encountered some more serious issues, I decided to use the Java SDK until Qt comes to a useable state. It's a bit frustrating.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            Which version of android sdk/ndk are you using ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • E Offline
              E Offline
              EdOfTheMountain
              wrote on last edited by
              #6

              If anyone had any success with Qt and Android? If so please reply. I could use some encouragement.

              I have burned over a week of work failing to get a :hello world" Qt5.3.* or Qt5.2.* widget application to run on Android. iOS is no problem.

              I have setup a number of development VMs using both Ubuntu 14.04 both 32-bit and 64-bit hosts, OS X hosts, NDX r8 and NDK r10. I have tried both Qt 5.2.1 and Qt 5.3.1 without success. I am using the latest adt-bundle-linux-x86-20140702 and NDK r10 currently.

              I have gotten furthest with OS X were the simulator started launching before data exception occurred:
              http://qt-project.org/forums/viewthread/45126/#185282

              I am currently on Ubuntu 14.04 32-bit stuck here:
              @
              /home/edward/Qt5.2.1/5.2.1/android_armv7/bin/uic ../qt-hello-world/mainwindow.ui -o ui_mainwindow.h
              /home/edward/android/android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-g++ -c -pipe -std=gnu++0x -g -g -gdwarf-2 -marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -D_REENTRANT -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../Qt5.2.1/5.2.1/android_armv7/mkspecs/android-g++ -I../qt-hello-world -I../../Qt5.2.1/5.2.1/android_armv7/include -I../../Qt5.2.1/5.2.1/android_armv7/include/QtWidgets -I../../Qt5.2.1/5.2.1/android_armv7/include/QtGui -I../../Qt5.2.1/5.2.1/android_armv7/include/QtCore -I. -I. -I../../android/android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.8/include -I/home/edward/android/android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.8/libs/default/armeabi-v7a/include -I../../android/android-ndk-r10/platforms/android-19/arch-arm/usr/include -I. -o main.o ../qt-hello-world/main.cpp
              In file included from ../../android/android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.8/include/algorithm:60:0,
              from ../../Qt5.2.1/5.2.1/android_armv7/include/QtCore/qglobal.h:82,
              from ../../Qt5.2.1/5.2.1/android_armv7/include/QtGui/qwindowdefs.h:45,
              from ../../Qt5.2.1/5.2.1/android_armv7/include/QtWidgets/qwidget.h:45,
              from ../../Qt5.2.1/5.2.1/android_armv7/include/QtWidgets/qmainwindow.h:45,
              from ../../Qt5.2.1/5.2.1/android_armv7/include/QtWidgets/QMainWindow:1,
              from ../qt-hello-world/mainwindow.h:4,
              from ../qt-hello-world/main.cpp:1:
              ../../android/android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.8/include/utility:68:28: fatal error: bits/c++config.h: No such file or directory
              #include <bits/c++config.h>
              @

              1 Reply Last reply
              0
              • S Offline
                S Offline
                s.frings74
                wrote on last edited by
                #7

                SDK 22.6.2
                NDK r9d
                Oracle JDK 1.7.0_55
                Ubuntu 14.04
                Qt 5.3

                However, I tried it with several older versions of each component and had the same issue on all of my 3 different Android devices.

                @EdOfTheMountain: Please open a separate thread for your issue. We are talking here about the debugger not working (while everything else works fine).

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  davidh
                  wrote on last edited by
                  #8

                  I'm in the same boat. I'm using Qt 5.3. I have tried NDK r8e and r10 to no avail. I'm running on Mac OS X 10.8.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    s.frings74
                    wrote on last edited by
                    #9

                    I upgraded to Qt 5.3.1 and NDK release 10. The debugger works fine now on my devices.

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      gorec323
                      wrote on last edited by
                      #10

                      [quote author="s.frings74" date="1410805900"]I upgraded to Qt 5.3.1 and NDK release 10. The debugger works fine now on my devices.[/quote]
                      Show screnshot of Qt Creaor setups, please.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        s.frings74
                        wrote on last edited by
                        #11

                        I don't know how to upload screenshots. The problem disappeared after upgrading stuff, the settings are still the same.

                        JDK path: /usr/lib/jvm/java-7-openjdk-i386
                        Android SDK: /opt/adt-bundle/sdk
                        Android NDK: /opt/adt-bundle/android-ndk-r10

                        Generate kits for Android automatically

                        Ant: /usr/bin/ant
                        The AVD-Manager block is empty.

                        Qt is installed in /opt/qt

                        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