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