Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying PyQt5 application to Android via pyqtdeploy and Qt5

Is it possible? I mean, yeah, pyqtdeploy intro page said: "pyqtdeploy is a tool for deploying PyQt applications. It supports deployment to desktop platforms (Linux, Windows and OS/X) and to mobile platforms (iOS, Android and Windows RT)."

I've installed Qt 5.3.0 for Android and all it's prerequisites (SDK, NDK, etc.). Also I made test project with simple button and label in QtCreator for testing deployment. Everything is fine. Next step was trying pyqtdeploy for making Qt project, pretty simple. But when I'm trying to build this project, linker said that there is no QtCore, QtWidget libraries. As I can recognize it, I've no static-linked PyQt libraries and that they must be compiled for arm architecture. Is it right? But then I've realised, that python library itself also must be arm compiled. And can I build this libraries from source in Qt?

Search did nothing. If this is true, why no one (riverbank, python) have no compiled libraries for arm? Maybe I'm missunderstood something. In this case I got more global question.

How to deploy PyQt5.3 Python 3.4 application to Android with pyqtdeploy and Qt 5.3.0 for Android?

like image 210
broomrider Avatar asked Jun 16 '14 08:06

broomrider


People also ask

Does PyQt5 support Android?

Pros of using PyQtIt can be used on all platforms that support Qt, such as Windows, OS X, Linux, iOS, and Android.

Can you make mobile apps with PyQt5?

Similar to the Qt5 framework, PyQt5 is fully cross-platform. By holding control of PyQt5, developers can build applications for Windows, Mac, Linux, iOS, Android, and other platforms.

What is Pyqtdeploy?

What is pyqtdeploy? pyqtdeploy is a tool that, in conjunction with other tools provided with Qt, enables the deployment of PyQt applications written with Python v3. 5 or later. It supports deployment to desktop platforms (Linux, Windows and macOS) and to mobile platforms (iOS and Android).

What is the difference between PyQt and Pyside?

The key difference in the two versions — in fact the entire reason PySide2 exists — is licensing. PyQt5 is available under a GPL or commercial license, and PySide2 under a LGPL license.


1 Answers

Wait for the next release of pyqtdeploy, which will probably give better instructions or include cross-compiled libraries. The pyqtdeploy project is being actively developed. Yes, you can use it for Android now, but you are on your own for cross-compiling many static libraries.

like image 86
bootchk Avatar answered Oct 01 '22 07:10

bootchk