Installing QT with Ubuntu under VMware

Source: Internet
Author: User

1. Vmware workstation Creating virtual machines

BIOS opens INTEL virtual technology (AMD does not need)

Install ubuntu 12.04.1 System

when customizing hardware, use the INTEL virtual technology to turn off the 3D graphics effect on your display .

Divide the hard disk of a virtual machine into a single file


2. Modify Ubuntu Configuration

Modify the software source select Best Server

download software synaptic

Login Options

in file /etc/lightdm/lightdm.conf

Add greeter-show-manual-login=true allow-guest=false


3. Create a shared folder

edit virtual machine settings Options Settings shared folder is always enabled

Open /mnt to see if there is a shared folder name

If not:

Bash executes vmware-hgfsclient for example:

$ vmware-hgfsclient Share

When you open Vmware-tools in the VMware software,

Bash Execution vmware-config-tools.pl


4. Installing QT4.8.4

View qt4.8.4 required library files http://doc.qt.io/qt-4.8/requirements-x11.html

Libfontconfig1-dev

Libfreetype6-dev

Libx11-dev

Libxcursor-dev

Libxext-dev

Libxfixes-dev

Libxft-dev

Libxi-dev

Libxrandr-dev

Libxrender-dev

download these library files with synaptic

See if there is a build-essential library, and if not, you cannot use g++ and need to download it.

Download qt-everywhere-opensource-src-4.8.7.tar.gz

Gunzip qt-everywhere-opensource-src-4.8.7.tar.gz

Tar xvf Qt-everywhere-opensource-src-4.8.7.tar

./configure

Make time minutes

Make Install

Setting Environment Variables

qtdir=/usr/local/trolltech/qt-4.8.7

Path= $QTDIR/bin: $PATH

Ld_library_path= $QTDIR/lib:ld_library_path

Export Qtdir PATH Ld_library_path


5. Installing Qt-creator

Download qt-creator-2.8.1-src.tar.gz File

Gunzip qt-creator-2.8.1-src.tar.gz

Tar xvf Qt-creator-2.8.1-src.tar

Qmake–r

Make it take a minute

Make install Install_root=\usr\local\qt-creator

Set the path after installation, if not set, it will be installed in the source folder

Tip: This is best to download the installation package file directly, the compilation time itself is too long, and after compiling only through bash open qt-creator,

The installation package files can be clicked and run directly after installation.


Installing QT with Ubuntu under VMware

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.