【发布时间】:2021-03-11 12:29:06
【问题描述】:
我正在尝试为当前机器(x86_64 系统)构建包含 Qt5 和 PyQt5 的 pyqtdeploy-sysroot。 我在使用 pyqtdeploy 3.0、3.1 和 3.1.1 的 Fedora 30(也尝试过 31 和 32 以及 Debian 10 和 Ubuntu 18.04)系统上尝试了 Qt5 版本 5.15.0、5.15.1 或 5.15.2。 在所有系统上,我都安装了我能想到的所有构建依赖项:
python python3 python3-pip libssl-dev zlib1g-dev pyqt5-dev libqt5x11extras5-dev libgles2-mesa-dev
我尝试安装*x11*-dev 和*gl*-dev(分别为-devel):)
我总是遇到以下问题:
Running 'sip-install --qmake /home/frans/_HOME/2011_pyqt/docker_home/demo/sysroot-linux-64/Qt/bin/qmake --no-distinfo --concatenate 2 --no-docstrings --verbose'.
Querying qmake about your Qt installation...
/home/frans/_HOME/2011_pyqt/docker_home/demo/sysroot-linux-64/Qt/bin/qmake -query
This is the GPL version of PyQt 5.15.0 (licensed under the GNU General Public License) for Python 3.7.7 on linux.
Found the license file 'pyqt-gpl.sip'.
These bindings will be built: QtCore, QtNetwork, QtGui, QtWidgets, QtX11Extras.
Generating the QtCore bindings...
Generating the QtNetwork bindings...
Generating the QtGui bindings...
Generating the QtWidgets bindings...
Generating the QtX11Extras bindings...
Generating the .pro file for the QtCore module...
Generating the .pro file for the QtNetwork module...
Generating the .pro file for the QtGui module...
Generating the .pro file for the QtWidgets module...
Generating the .pro file for the QtX11Extras module...
Generating the top-level .pro file...
Generating the Makefiles...
/home/frans/_HOME/2011_pyqt/docker_home/demo/sysroot-linux-64/Qt/bin/qmake -recursive PyQt5.pro
sip-install: '/home/frans/_HOME/2011_pyqt/docker_home/demo/sysroot-linux-64/Qt/bin/qmake -recursive PyQt5.pro' failed returning 3
Info: creating stash file /tmp/tmp1_ng3eyh/.qmake.stash
Reading /tmp/tmp1_ng3eyh/QtCore/QtCore.pro
Reading /tmp/tmp1_ng3eyh/QtNetwork/QtNetwork.pro
Reading /tmp/tmp1_ng3eyh/QtGui/QtGui.pro
Reading /tmp/tmp1_ng3eyh/QtWidgets/QtWidgets.pro
Reading /tmp/tmp1_ng3eyh/QtX11Extras/QtX11Extras.pro
Project ERROR: Unknown module(s) in QT: x11extras
pyqtdeploy-sysroot: execution of 'sip-install' failed: returned exit code 1
我正在尝试与这个人基本相同的事情:https://www.riverbankcomputing.com/pipermail/pyqt/2020-September/043203.html - 但似乎他已经放弃并切换到 iOS..
知道我可以做些什么来调查这种行为吗?我没有修改任何关于 pyqtdeploy、Qt5 或演示的内容,我所做的只是
pip3 install pyqtdeploy sip PyQt-builder
wget https://files.pythonhosted.org/packages/ab/8c/1416eaed51c87a5ac934ee982e5c6e0a9dcab8d9b0b0461d4b8b259db5f6/pyqtdeploy-3.1.0.tar.gz
tar xf pyqtdeploy-3.1.0.tar.gz
cd pyqtdeploy-3.1.0/demo
python3 build-demo.py --verbose
【问题讨论】: