Install QtCreator4.5 in Ubuntu

Source: Internet
Author: User
Author: Sun Xiaoming, a lecturer at Huaqing vision embedded College. The QtCreator we installed in the classroom is a Windows version, and it obviously feels slow during compilation, so I found a Linux version of QtCreator and installed it on the Ubuntu operating system. After the installation, the compilation was attempted, which is much faster than in windows. We can download the latest version at http://www.qtsoftware.com/downloads-cn.

Author: Sun Xiaoming, a lecturer at Huaqing vision embedded College.

The QtCreator we installed in the classroom is a Windows version, and it is obviously slow during compilation, so I found a Linux version of QtCreator, install Ubuntu 9.04 on the operating system. After the installation, the compilation was attempted, which is much faster than in windows.

We can download the latest version to the http://www.qtsoftware.com/downloads-cn. Qt-sdk-linux-x86-opensource-2009.02.bin

After the download, run the following command on the terminal:

1. Add execution permission to the Installation File

Chmod u + x qt-sdk-linux-x86-opensource-2009.02.bin

2. Execute the installation command

/Qt-sdk-linux-x86-opensource-2009.02.bin

After QtCreator is installed to build a helloworld project for compilation, the following error may occur during compilation:

/Usr/bin/ld: cannot find-lfreetype

Collect2: ld returns 1

Make [1]: *** [text] Error 1

Make [1]: leaving the directory '/home/noah/qtWorkPlace/text'

Make: Leave the directory "/home/noah/qtWorkPlace/text"

Make: *** [debug] Error 2

Exited with code 2.

Error while building project text

When executing build step 'make'

Solution:

Find freetype in the new, install the dev version of The libfreetype6-dev.

The following error may occur during compilation:

/Usr/bin/ld: cannot find-lgobject-2.0

Collect2: ld returns 1

Make [1]: leaving the directory '/home/noah/qtWorkPlace/text'

Make: Leave the directory "/home/noah/qtWorkPlace/text"

Make [1]: *** [text] Error 1

Make: *** [debug] Error 2

Exited with code 2.

Error while building project text

When executing build step 'make'

Solution:

Find the gobject in the new version and install libavahi-gobject-dev of the dev version.

The following error may occur during compilation:

/Usr/bin/ld: cannot find-lSM

Collect2: ld returns 1

Make [1]: leaving the directory '/home/noah/qtWorkPlace/text'

Make [1]: *** [text] Error 1

Make: *** [debug] Error 2

Make: Leave the directory "/home/noah/qtWorkPlace/text"

Exited with code 2.

Error while building project text

When executing build step 'make'

Solution:

Find libsm-dev installation in the new IDE

The following error may occur during compilation:

/Usr/bin/ld: cannot find-lXrender

Collect2: ld returns 1

Make [1]: *** [text] Error 1

Make [1]: leaving the directory '/home/noah/qtWorkPlace/text'

Make: Leave the directory "/home/noah/qtWorkPlace/text"

Make: *** [debug] Error 2

Exited with code 2.

Error while building project text

When executing build step 'make'

Solution:

Find libxrender-dev to install

The following error may occur during compilation:

/Usr/bin/ld: cannot find-lfontconfig

Collect2: ld returns 1

Make [1]: leaving the directory '/home/noah/qtWorkPlace/text'

Make: Leave the directory "/home/noah/qtWorkPlace/text"

Make [1]: *** [text] Error 1

Make: *** [debug] Error 2

Exited with code 2.

Error while building project text

When executing build step 'make'

Solution:

Find the libfontconfig1-dev in the new one

The following error may occur during compilation:

/Usr/bin/ld: cannot find-lXext

Collect2: ld returns 1

Make [1]: leaving the directory '/home/noah/qtWorkPlace/text'

Make: Leave the directory "/home/noah/qtWorkPlace/text"

Make [1]: *** [text] Error 1

Make: *** [debug] Error 2

Exited with code 2.

Error while building project text

When executing build step 'make'

Solution:

Find libxext-dev installation in the new IDE

At this point, there should be no problem. Run it now and try it to see if it is much faster.

This article from the CSDN blog, reproduced please indicate the source: http://blog.csdn.net/farsight2009/archive/2009/06/06/4247413.aspx

Related Article

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.