Pages

Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

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!

Tuesday, December 14, 2010

Installing Eclipse with C++ in Ubuntu

use synaptics to install eclipse

sudo su
apt-get update
apt-get upgrade
apt-get install g++
apt-get install eclipse

then follow these steps to install c++ support
If you want to add CDT (and other components) to the version of Eclipse in Ubuntu 10.04, ( which is Galileo )...

- select the "Install New Software" option of the help menu.
- click the "Add" button next to the "Work with" drop-down
- Put "Galileo" into the "Name" field - see below
- Put the Galileo release URL = "http://download.eclipse.org/releases/galileo" into the "Location" field
- Press the "OK" button to add this repository location
- Select "Galileo ... " in the "Work with" field
- Press the twisty to the left of the "Programming Languages" category
- Tick the "Eclipse C/C++ Development Tools" check-box ( should be Version 6.0.0 )
- Press the "Next" button and then "Finish" Button to install.

Galileo release URL: The Eclipse framework is released annually as a collected
and tested repository. Each release has a different name relating to celestial objects, so far moons of planets in the solar system. You should use the repository URL for the release you are using. The name is made up of "download.eclipse.org" and "/releases/galileo" in this case, but would obviously change if you used a different version of eclipse.