在Ubuntu 20.04上安装PySide / ShiBoken

时间:2020-11-06 22:39:19

标签: python qt pyside shiboken2

我一直试图在Ubuntu 20.04(Focal)的虚拟机上安装PySide(更具体地说,是shiboken,PySide的依赖项)。但是,CMake似乎很难找到Qt。

...
-- Found unsuitable Qt version "5.12.8" from /usr/bin/qmake
    -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.18", minimum required is "2.6")
    -- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found suitable version "2.9.10", minimum required is "2.6.32")
    -- Found LibXslt: /usr/lib/x86_64-linux-gnu/libxslt.so (found suitable version "1.1.34", minimum required is "1.1.19")
    Qt QTGUI library not found.
    Qt QTXML library not found.
    Qt QTCORE library not found.
    CMake Error at ApiExtractor/CMakeLists.txt:82 (qt4_add_resources):
      Unknown CMake command "qt4_add_resources".
    
    
    -- Configuring incomplete, errors occurred!
    See also "/tmp/pip-install-stnnA9/shiboken/shiboken_build/py2.7-qt5.12.8-64bit-release/shiboken/CMakeFiles/CMakeOutput.log".
    error: Error configuring shiboken

我已经安装了Qt5,看来shiboken想要Qt4吗?有什么方法可以使它与Qt5配合使用吗?如果那不可能,我该如何降级为Qt4?

0 个答案:

没有答案