1. 安裝 Qt 5.xlinux
1.1 Add PPA to your system:ubuntu
sudo apt-add-repository ppa:ubuntu-sdk-team/ppa sudo apt-get update
1.2 Install Qt 5.x devspa
sudo apt-get install qtdeclarative5-dev
refer to: http://askubuntu.com/questions/279421/how-can-i-install-qt-5-x-on-12-04-ltscode
2. Default Qt version configue:blog
Replace Default Qt version paths in /usr/lib/x86_64-linux-gnu/qtchooser/default.conf
.get
then check: qtchooser -print-env
qt
3. Missing moc in "/usr/lib/x86_64-linux-gnu/qt4/bin/moc"it
sudo apt-get install qt4-dev-tools