Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying Qt Application on Android is really slow?

Tags:

android

qt

As you may know there are three ways to deploy a Qt application on Android :

  1. Use Ministro service to install Qt
  2. Deploy local Qt libraries to temporary directory
  3. Bundle Qt libraries in APK

The first method takes about 30 seconds and it also needs to install an extra apk . Ministro. The second takes about 1 minute for me ! And anytime I try to run the program Qt creator pushes Qt libraries to the device. The third one makes the .apk file really big and again takes about 1 minute for me.
I think with this situation that's not reasonable to develop Android application using Qt. Is there a way to make the deploying process faster?

like image 755
s4eed Avatar asked Jul 23 '13 07:07

s4eed


People also ask

Can Android run QT?

Qt for Android enables you to run Qt applications on Android devices. For Qt modules that support android targets see: All Supported Qt Modules.


1 Answers

Almost a full year since the OP and things have not changed at all. Deployment of a 7 MB APK takes over minute and a half for a project that compiles in 5 seconds. The reason I am answering is not that the problem got resolved, but to offer an alternative solution.

I've implemented a "workaround" consisting of two applications that work in tandem - one on the PC and one on the device - I created this mostly to compile files remotely, but it turned out to be a much faster alternative for deployment as well. On the host create an application that launches compilation in a separate process, when done copy the product file over network to the device to deploy. Besides remote compilation this reduced the time to deploy to like 10 seconds, I can live with that.

like image 137
dtech Avatar answered Sep 22 '22 14:09

dtech