简体   繁体   English

通过 pyqtdeploy 和 Qt5 将 PyQt5 应用程序部署到 Android

[英]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)."我的意思是,是的, pyqtdeploy介绍页面说:“pyqtdeploy 是一个用于部署 PyQt 应用程序的工具。它支持部署到桌面平台(Linux、Windows 和 OS/X)和移动平台(iOS、Android 和 Windows RT)。”

I've installed Qt 5.3.0 for Android and all it's prerequisites (SDK, NDK, etc.).我已经为 Android 安装了 Qt 5.3.0 及其所有先决条件(SDK、NDK 等)。 Also I made test project with simple button and label in QtCreator for testing deployment.此外,我在 QtCreator 中使用简单的按钮和标签制作了测试项目,用于测试部署。 Everything is fine.一切安好。 Next step was trying pyqtdeploy for making Qt project, pretty simple.下一步是尝试 pyqtdeploy 来制作 Qt 项目,非常简单。 But when I'm trying to build this project, linker said that there is no QtCore, QtWidget libraries.但是当我尝试构建这个项目时,链接器说没有 QtCore、QtWidget 库。 As I can recognize it, I've no static-linked PyQt libraries and that they must be compiled for arm architecture.据我所知,我没有静态链接的 PyQt 库,它们必须针对 arm 架构进行编译。 Is it right?这样对吗? But then I've realised, that python library itself also must be arm compiled.但后来我意识到,python 库本身也必须经过 arm 编译。 And can I build this libraries from source in Qt?我可以在 Qt 中从源代码构建这些库吗?

Search did nothing.搜索什么也没做。 If this is true, why no one (riverbank, python) have no compiled libraries for arm?如果这是真的,为什么没有人(河岸,python)没有为 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?如何使用 pyqtdeploy 和 Qt 5.3.0 for Android 将 PyQt5.3 Python 3.4 应用程序部署到 Android?

Wait for the next release of pyqtdeploy, which will probably give better instructions or include cross-compiled libraries.等待 pyqtdeploy 的下一个版本,它可能会提供更好的说明或包含交叉编译的库。 The pyqtdeploy project is being actively developed. pyqtdeploy 项目正在积极开发中。 Yes, you can use it for Android now, but you are on your own for cross-compiling many static libraries.是的,您现在可以将它用于 Android,但是您需要自己交叉编译许多静态库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM