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. No android build step with Qt + Android + CMake in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

No android build step with Qt + Android + CMake in Qt Creator

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 4 Posters 3.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.
  • D Offline
    D Offline
    David Demelier
    wrote on last edited by David Demelier
    #1

    Hello,

    I'm able to create a project for android using QMake, it works fine. However, if I try to build using CMake, builds works but only the code. No android build step are generated.

    I get the following error:

    Cannot find the android build step.
    Error while building/deploying project untitled (kit: Android for x86 (GCC 4.9, Qt 5.10.1 (x86)))
    When executing step "Deploy to Android device"
    

    What should I do?

    1 Reply Last reply
    1
    • S Offline
      S Offline
      Soda31
      wrote on last edited by
      #2

      Hello,

      Did you found a response to your question ?
      I have similar "problem" : I'm able to compile and genrate apk using cmake and qtcreator but not able to start the application, I have same error message than your topic

      Is it possible to run apk generated via cmake in qtcreator ?
      I use following thing to do that
      https://forum.qt.io/topic/91485/qt-5-10-1-try-to-compile-a-basic-app-for-android-arm-using-cmake/6

      1 Reply Last reply
      1
      • K Offline
        K Offline
        Kot-Zadrot
        wrote on last edited by
        #3

        Hit the same problem. You may want to try if this works for you (For me it had not yet).

        S 1 Reply Last reply
        0
        • Narasimha Reddy MVN Offline
          Narasimha Reddy MVN Offline
          Narasimha Reddy MV
          wrote on last edited by
          #4

          https://forum.qt.io/topic/91485/qt-5-10-1-try-to-compile-a-basic-app-for-android-arm-using-cmake/6

          S 1 Reply Last reply
          0
          • Narasimha Reddy MVN Narasimha Reddy MV

            https://forum.qt.io/topic/91485/qt-5-10-1-try-to-compile-a-basic-app-for-android-arm-using-cmake/6

            S Offline
            S Offline
            Soda31
            wrote on last edited by Soda31
            #5

            @Narasimha-Reddy-MV
            Hi,
            Thanks for your help

            I'm the author of this post ;)

            Well in this topic my problem is that I tryed to debug the apk with QtCreator
            As androidqtdeploy step has been handled in the cmake scripts QtCreator does not know that apk has already been deployed and try to do it without success

            So now I compile and generate apk with dos scripts and cmake and all necessary things, and I debug the apk using Android Studio
            It works well but I'm not able to debug QML code, so I use lots of console.log in the source code !

            1 Reply Last reply
            1
            • K Kot-Zadrot

              Hit the same problem. You may want to try if this works for you (For me it had not yet).

              S Offline
              S Offline
              Soda31
              wrote on last edited by
              #6

              @Kot-Zadrot
              Hello,

              I use Android Studio for debug
              I'm not able to debug QML code but for c++ part I can set breakpoints and see content of some variables
              I use also lots of qDebug
              It's not perfect but at least it works
              I compile / generate the apk, and in Android studio I choose "profile or debug apk" and gives the path / file of my apk previously generated

              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