在Ubuntu 20.04上安装PySide / ShiBoken

问题描述

我一直试图在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?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...