Qt5.5 has been released, the first two days PYQT also soon launched a corresponding version of 5.5. Tried it out (it took a weekend!) ), it's getting more and more useful. QT5.5 has some important improvements on the Ubuntu15.04, and the window coverage problem that runs in the virtual machine is finally gone. It takes a lot of effort to install several software. Here is a script that can be installed quickly.
Install Qt5.5 first.
#在线安装用这个. wget http://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.runchmod +x qt-unified-linux-x64-online.run./qt-unified-linux-x64-online.run# offline installation with this. Wget Http://download.qt.io/official_ Releases/qt/5.5/5.5.0/qt-opensource-linux-x64-5.5.0-2.runchmod +x qt-opensource-linux-x64-5.5.0-2.run./ Qt-opensource-linux-x64-5.5.0-2.run
Then, set the path to QT.
#Add Qt Path to/etc/profile.sudo gedit/etc/profile#add line:export path= $PATH:/home/userxxx/qt/qt5.5/gcc_64/bin
The general installation of the system requires OpenGL support.
sudo apt-get install Libgl1-mesa-dev
Note: the "open source" is marked as "Builder Qt" in the open source version of the current Qt5.5 version, causing errors in the PYQT to be judged incorrectly and to throw a license incompatibility error. Add the configure.py in the PYQT directory to the following line (search common checks,2590 line) and recompile.
# Common checks. #change by [email protected] Print ("License:") print (introspecting) print (target_config.qt_licensee) print (lty PE) Target_config.qt_licensee = ' Open Source ' #end change.
The following is the complete script:
#!/bin/sh#author:[email protected] #Install qt5.5. #Get online installer. #wget http:// download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run#chmod +x Qt-unified-linux-x64-online.run#get offline installer. #wget http://download.qt.io/official_ releases/qt/5.5/5.5.0/qt-opensource-linux-x64-5.5.0-2.run#chmod +x Qt-opensource-linux-x64-5.5.0-2.run#add qt path to /etc/profile. #sudo gedit /etc /profile#add line: export path= $PATH:/home/userxxx/qt/qt5.5/gcc_64/binecho "Build pyqt.=============================================== "if [ ! -d " PyQt " ]; then mkdir pyqtficd pyqtecho "add opengl lib...=================== ====================== "sudo apt-get install libgl1-mesa-devecho " Install SIP-4.16.9== ====================================== "if [ ! -f "Sip-4.16.9.tar.gz" ]; thenwget http://www.riverbankcomputing.com/static/downloads/sip4/ sip-4.16.9.tar.gzfiif [ ! -d "sip-4.16.9" ]; then tar -vxf sip-4.16.9.tar.gzficd sip-4.16.9python3 configure.pymakesudo make INSTALLCD&NBSP, .... echo "install pyqt-5.5==========================================" if [ ! -f " Pyqt-gpl-5.5.tar.gz " ]; thenwget http://www.riverbankcomputing.com/static/downloads/pyqt5/ pyqt-gpl-5.5.tar.gzfiif [ ! -d "pyqt-gpl-5.5" ]; then tar  -VXF PYQT-GPL-5.5.TAR.GZFICD PYQT-GPL-5.5CP&NBSP, .... /.. /CONFIGURE.PY ./CONFIGURE.PYPYTHON3 CONFIGURE.PYMAKESUDO MAKE INSTALLCD&NBSP, .... echo =========================================echo qt5 and pyqt 5.5/sip 4.16.9 installed.echo =========================================
Qt+python has started to become the standard of many system-level software, Qt5.5 release to get rid of many of the previous small problems, basically can be safely used.
Qt5.5 and PyQt5.5 Quick Install script in UbuntuKylin15.04