Join KDAB Training Day 2025 in Munich
Choose between learning advanced QML programming, Modern C++, integrating Rust and Qt or 3d rendering with Vulkan. The KDAB Training Day 2025 will take place in Munich on the 8th of May, right after the Qt World Summit on 6th to 7th of May.
Learn more
14 Comments
11 - Dec - 2018
Crstian
Does it pack just the shared objects? Wouldn't be nice if this would have something to do with "install" step of CMake? At the moment Qt Creator has some deployment support via QtCreatorDeployment.txt, but one has to manually set it up, which is a pain. http://doc.qt.io/qtcreator/creator-deployment-embedded-linux.html It would so much better if there would be some cross platform support for the "installed" targets.
11 - Dec - 2018
BogDan Vatra
Currently it packs all shared objects. Install step will be very difficult with cmake, because the shared objects must go in some special folders (libs/arm64-v8a, libs/armv7a, etc). That's the reason why I chose to copy those libs from QtCreator and not using cmake ;-).
12 - Dec - 2018
Sune
Shouldn't this use "the cmake way" of make install rather than copying it manually over?
12 - Dec - 2018
BogDan Vatra
Well, if an user really insist to use "the cmake way" you can disable the "Magic" QtCreator step and add one in which you do the "make install", but be aware that you'll need to set the right paths before doing that. My goal was (still is and it will be) to create a painless experience for the users ;-).
6 - Mar - 2019
BogDan Vatra
Sadly, the CMake support was postponed for the next QtCreator version.
11 - Dec - 2018
Jean-Michaël Celerier
11 - Dec - 2018
BogDan Vatra
Hehe, I'm going to tell you a secret, I did this plugin (and also the android qmake one) because I'm way too lazy to build, deploy & debug cmake Qt apps manually on Android ;-).
21 - Feb - 2019
Markus
Is there an example project that creates an Android app with CMake? I have installed Qt 5.12.1 and QtCreator 4.9.0-beta1, but I'm not sure how to do this. I assumed that I can use the same CMakeLists.txt that I use for building on the desktop version (which uses add_executable()) also for the Android app, just like I could use the same qmake project for both the desktop version and the Android app. But I get an error at link time:
Qt/5.12.1/android_armv7/lib/libQt5Gui.so: error adding symbols: file in wrong format
Or do I need a separate CMakeLists.txt for the Android app with a shared library target? A simple example project how to set this up would be really helpful.
6 - Mar - 2019
BogDan Vatra
Sadly, the CMake support was postponed for the next QtCreator version.
6 - Mar - 2019
Kyle
So it is now planned for Qt Creator 4.10?
6 - Mar - 2019
BogDan Vatra
That's my hope
6 - Mar - 2019
BogDan Vatra
I just merge the patch a few minutes ago, so it will be part of QtCreator 4.10
7 - Mar - 2019
Kyle
Thank you for keeping us posted, and, most of all, thank you for developing this. I am looking forward to trying it out once Qt Creator 4.10 is released.
20 - Jun - 2019
Roman
Hi Bogdan,
Thanks for this work, this plugin is very helpful!
I just installed QtCreator 4.10-beta1 and was able to build our project. However, it fails at "Build Android APK" step with the error: "Cannot set up Android, not building an APK."
I checked the source code of the plugin at https://github.com/qt-creator/qt-creator/blob/master/src/plugins/android/androidbuildapkstep.cpp and it looks like there can be multiple causes of this error. Is it possible to add specific or more detailed error messages for each type issue?