After much fiddling, here is a list of instructions for installing the current QT version (4.5.2) on Kubuntu:
1. Use a package manager (e.g. synaptic) to install "gcc"
2. Download the appropriate Linux/X11 .bin file from http://www.qtsoftware.com/downloads, e.g. "qt-sdk-linux-x86-opensource-2009.03.bin"
3. Change the permissions on the .bin file so that it executable, e.g. "chmod u+x qt-sdk-linux-x86-opensource-2009.03.bin"
4. Open a console window and execute the .bin file, e.g. "sudo ./qt-sdk-linux-x86-opensource-2009.03.bin"
(NOTE - if you do not execute using sudo, QT will be installed into your home directory and will not be accessible by any other users on the machine.)
5. Before you can run QT, you need to set up some environment variables. Create the "/etc/scripts" folder, e.g. "sudo mkdir /etc/scripts"
6. Create a file called ".qtconfig" in your "/etc/scripts" folder, and edit it so it contains the following:
(modify the .qtconfig script so that it refers to the target folder where QT was just installed - the script is set to "/opt/qtsdk-2009.03" by default)
8. Modify the "/etc/profile" OR "/etc/profile.local" file to include the following:
9. You can test the QT configuration script is correct by opening a console application and entering "source /etc/profile". If the .qtconfig script is being read and is detecting the QT installation, you should see:
10. When you run QT Creator (from the menu or command line using "qtcreator"), use the Tools -> Options menu item and check that "Qt" tab shows that the application has auto detected the above target folder.
11. When you first build a console or GUI application, the project make files may have library dependencies to libraries that need to be installed before the build will be successful, including:
Compiler: library not foundRequired Library file
lfreetypelibfreetype6-dev
lgobject-2.0libglib2.0-dev
lSMlibsm-dev
lxrenderlibXRender-dev
lfontconfiglibfontconfig1-dev
lXextlibXext-dev
(Above instructions tested on Kubuntu 9.04 and Suse 11.1)
1. Use a package manager (e.g. synaptic) to install "gcc"
2. Download the appropriate Linux/X11 .bin file from http://www.qtsoftware.com/downloads, e.g. "qt-sdk-linux-x86-opensource-2009.03.bin"
3. Change the permissions on the .bin file so that it executable, e.g. "chmod u+x qt-sdk-linux-x86-opensource-2009.03.bin"
4. Open a console window and execute the .bin file, e.g. "sudo ./qt-sdk-linux-x86-opensource-2009.03.bin"
(NOTE - if you do not execute using sudo, QT will be installed into your home directory and will not be accessible by any other users on the machine.)
5. Before you can run QT, you need to set up some environment variables. Create the "/etc/scripts" folder, e.g. "sudo mkdir /etc/scripts"
6. Create a file called ".qtconfig" in your "/etc/scripts" folder, and edit it so it contains the following:
Originally posted by /etc/scripts/.qtconfig
8. Modify the "/etc/profile" OR "/etc/profile.local" file to include the following:
Originally posted by /etc/profile
Originally posted by Konsole
11. When you first build a console or GUI application, the project make files may have library dependencies to libraries that need to be installed before the build will be successful, including:
Compiler: library not foundRequired Library file
lfreetypelibfreetype6-dev
lgobject-2.0libglib2.0-dev
lSMlibsm-dev
lxrenderlibXRender-dev
lfontconfiglibfontconfig1-dev
lXextlibXext-dev
(Above instructions tested on Kubuntu 9.04 and Suse 11.1)
Comment