Details
-
Suggestion
-
Resolution: Fixed
-
Not Evaluated
-
None
-
None
-
mobile (android)
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.