1. Virtual machine installation Ubuntu 14.04 LTS
2. Update the installation source
Source for installation 163
3. Install Vim
4. Installing build-essential
G++ is not installed by default
5. Installing the SSH Service
facilitates remote operation.
sudo apt-get install Openssh-server
Modify configuration: sudo vim/etc/ssh/sshd-config
Permitrootlogin Without-password Change to Permitrootlogin Yes, allow root login
Restart Service: sudo service ssh restart
6. Installing QT5
Download the Run installation package installation using APT installation or Qt.io
sudo apt-get install Qtconnectivity5-dev qtbase5-dev qtmobility-dev qtmobility-dev qtbase5-dev qtbase5-dev Qttools5-dev Qttools5-dev qtmobility-dev qtmobility-dev qtbase5-dev qttools5-dev qtmobility-dev qtmultimedia5-dev Qtmobility-dev Qtbase5-dev qtconnectivity5-dev libqt5opengl5-dev qtmobility-dev qtpositioning5-dev qtbase5-dev Qtmobility-dev Qtdeclarative5-dev qtdeclarative5-dev Qtdeclarative5-dev Qtdeclarative5-dev qtdeclarative5-dev Qtscript5-dev Qtscript5-dev Qtmobility-dev, Libqt5sensors5-dev libqt5serialport5-dev qtmobility-dev Qtbase5-dev Libqt5svg5-dev Qtmobility-dev qtbase5-dev qttools5-dev qtmobility-dev libqt5webkit5-dev qtbase5-dev libqt5x11extras5-dev Qtbase5-dev Libqt5xmlpatterns5-dev
sudo apt-get install Qtcreator
Qmake--version View version of the time will be prompted to find, edit ~/.BASHRC, in the end add export qt_select=qt5.
Qtselector-l can see all available versions, set the environment variable Qt_select to choose which version to select.
7. Start the program on the remote host
Export display=:0
8. GUI program in Pro project file plus qt = Core GUI widgets These items, Windows found there will be linker error
Ubuntu14.04 LTS Installation QT5 development environment