2009年9月1日 星期二

[Qt] installation on Linux/Ubuntu

The whole Qt programming IDE and tools is called ,"Qt SDK".

My Linux platform has the below parameters:
1. Ubuntu v8.10
2. Default language: ENGLISH
3. Added language: CHINESE, Input-Method included
4. apt-get install minicom
5. apt-get install tftp-hpa
6. apt-get install tftpd-hpa
7. apt-get install gcc
8. apt-get install g++
==================================================

step 1,
Get the Qt SDK from Qt official web-sit, "http://qt.nokia.com".

step 2,
Choose "Qt SDK for Open Source C++ development on Linux/X11 32-bit (or 64-bit)"

step 3,
Download the above (step 2) installation BIN-file into home/[user-account] directory.
qt-sdk-linux-x86-opensource-2009.03.1.bin

step 4,
Copy the "BIN" file into "/home/[user-account]" directory.


step 5,
And make sure that the have the console-command, "sudo chmod 777 BIN-file"


step 6,
In the console, type the following string:
$ ./qt-sdk-linux-x86-opensource-2009.03.1.bin


step 7,
Make sure that the installation directory located in the "/home/[user-account]" directory.


step 8,
For console-using, if programmer wants to have stand-alone compiling and making to Qt, please have the PATH-environment to refer to QT-installed directory (for ex: "/home/[user-account]/qtsdk-2009.03").


step 9,
In Qt-Creator, found the below error-prompt while building..
/usr/bin/ld: cannot find -lfreetype


$ sudo apt-get install libfreetype6
$ sudo apt-get install libfreetype6-dev




step 10,
In Qt-Creator, found the below error-prompt while building..
/usr/bin/ld: cannot find -lgobject-2.0


$ sudo apt-get install gob2
$ sudo apt-get install libsm6
$ sudo apt-get install libsm-dev
$ sudo apt-get install libxrender-dev
$ sudo apt-get install libfontconfig1-dev
$ sudo apt-get install libgtk2.0-dev






alternative useful reference-site for Qt:
http://www.cuteqt.com/blog/?p=17

沒有留言: