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