Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-19096

Enable build and run for android/mobile using cmake

    XMLWordPrintable

Details

    Description

      Currently it is not possible to build and run a cmake project on android.

      It is necessary to waste huge amounts of time using libraries like link qt-android-cmake and trying to guess what is going to properly fix the big amount of build problems that you'll find.
      Also, after spending a lot of time configuring it, when I finally deployed an apk the application simple closes right after it is started (using the example code generated for a new qtquickcontrols2 project). Configuring it by hand is frustrating.

      Since the basic difference of a desktop and a mobile build would be creating a library or a executable, my suggestion is to enable cmake functions like

      qt5_android_install(TARGET library) #for usage with add_library
      OR
      qt5_add_executable(...) #that would handle android deploys
      

      I know that there is qmake for that, but sometimes (most part of) the libraries that we find aroung the internet are already cmake projects that could be easily used.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            portale Alessandro Portale
            allan.kg allan.kg
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes