Pages

Thursday, October 27, 2011

Installing Qt4 on Ubuntu and integrating with Eclipse

First install qt4 on Ubuntu

sudo su
apt-get update
apt-get install qt4-designer qt4-demos qt4-doc qt4-dev-tools libqt4-dev
Then you need to install the pde environment for eclipse.
Refer to my older post on seeing how to do this.
go to help->install new software -> select your package-> general tools -> plugin development environment

Then download the integration files from http://qt.nokia.com/products/eclipse-integration/
Then you need to extract the tar file and place the extracted files in the eclipse folder, if you did a standard installation using apt or synaptics package manager you will find it in /usr/lib
cd /usr/lib
tar -xvzf /qt-eclipse-integration-linux.x86-1.6.1.tar.gz
Now you need to re-start eclipse with a clean configuration
eclipse -clean

Now go to new..Project..qt

You will get an error when it starts
Click on open preferences and setup the paths as follows
After this it will ask you that a rebuild is necessary, you should say yes to this. It will also ask for changing perspective, say yes if you please :) You're done enjoy!

No comments:

Post a Comment