Ubuntu14.04 LTS Installation QT5 development environment

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.