码迷,mamicode.com
首页 > 其他好文 > 详细

centos qt5,PyQt5 installation

时间:2015-05-05 01:16:06      阅读:842      评论:0      收藏:0      [点我收藏+]

标签:

一、SIP
http://www.riverbankcomputing.com/software/sip/download
 

1,centos linux系统必须预先以安装x Server(KDE or GNOME)

2,wget http://download.qt-project.org/official_releases/qt/5.4/5.4.0/qt-opensource-linux-x64-5.4.0.run  (软件包下载链接)

http://download.qt.io/official_releases/qt/5.4/5.4.0/   (软件介质参考链接)

技术分享

3,问题解决

Error during installation process (qt.54.gcc_64):
Execution failed(Unexpected exit code: 1): "/opt/Qt5.4.0//Tools/QtCreator/bin/sdktool addQt --id qt.54.gcc_64 --name Qt %{Qt:Version} GCC 64bit --type Qt4ProjectManager.QtVersion.Desktop --qmake /opt/Qt5.4.0/5.4/gcc_64/bin/qmake"

 

技术分享

技术分享

技术分享

Error during installation process (qt.54.gcc_64):
Execution failed(Unexpected exit code: 1): "/opt/Qt5.4.0//Tools/QtCreator/bin/sdktool addQt --id qt.54.gcc_64 --name Qt %{Qt:Version} GCC 64bit --type Qt4ProjectManager.QtVersion.Desktop --qmake /opt/Qt5.4.0/5.4/gcc_64/bin/qmake"

技术分享

可以看到没有GLIBCXX_3.4.15这个版本,下载一个新版本

http://ftp.de.debian.org/debian/pool/main/g/gcc-4.7/libstdc++6_4.7.2-5_i386.deb

 4.解压文件

ar -x libstdc++6_4.7.2-5_i386.deb
tar -zxvf data.tar.gz

 出现usr文件夹。进入usr/lib/i386-linux-gnu目录

cd usr/lib/i386-linux-gnu

5.将libstdc++.so.6.0.17文件复制到 /usr/lib 文件夹下面

sudo cp libstdc++.so.6.0.17 /usr/lib

 6.进入/usr/lib文件夹下,建立新的软链接

sudo ln -sf libstdc++.so.6.0.17 libstdc++.so.6

 7.再查看一次

strings /usr/lib/libstdc++.so.6 | grep GLIBC

 技术分享

 

关键在“qmake” is missing from my PATH错误解决

 

三、安装完Qt5之后,再安装PyQt5:

http://www.riverbankcomputing.co.uk/software/pyqt/download5

python configure.py --qmake /usr/local/Cellar/qt5/5.3.1/bin/qmake

make

make install

 

 

参考:

PyQt: http://www.pythoncentral.io/install-pyside-pyqt-on-windows-mac-linux/

http://fr.wikibooks.org/wiki/PyQt/Installation/Linux

http://www.time-eater.net/?p=302

http://www.jianshu.com/p/7mqAmr

 

centos qt5,PyQt5 installation

标签:

原文地址:http://www.cnblogs.com/x113/p/4478088.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!