I tried to accomplish this in this steps:
1) .pro
CONFIG -= qt
QT =
2) AndroidManifest.xml
<application android:hardwareAccelerated="true" android:label="@string/app_name"
android:name="android.app.Application">
instead of
<application android:hardwareAccelerated="true" android:label="@string/app_name"
android:name="org.qtproject.qt5.android.bindings.QtApplication">
3) Java
my own Activity instead of QtActivity
But then I’ve got an error from androiddeployqt:
No platform plugin, neither libqtforandroid.so or libqtforandroidGL.so, included in package. Please include one.
Then I’ve rebuilt androiddeployqt with commented return:
if (plugin.isEmpty()) {
fprintf(stderr, "No platform plugin, neither libqtforandroid.so or libqtforandroidGL.so, included in package. Please include one.\n");
//return false;
}
And then I’ve finally managed to build and deploy my application into device.
So the questions are:
Is this the only way?
If developers plan to add support for deploy without Qt libs?
Thanks in advance.
↧