Unable to run Qt on Ubuntu 9.04

Asked by Pragati Garg

Hello everyone,
I m new to ubuntu and Qt. I had downloaded the qt latest edition for linux and installed on my laptop. The Qt creator and other libraries were successfully installed. But when i try to build a project with the Qt creator, i get an error :
make[1]: g++: Command not found

make[1]: *** [.obj/release-shared/qapplication.o] Error 127

Can somebody pls help me out on this.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu build-essential Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
mycae (mycae) said :
#1

you need to install the G++ compile (gnu c++).

you can do this by selecting the build-essential package in the software centre, or by the following command in a terminal:

sudo aptitude install build-essential

Why you would want to compile QT from source is a bit odd, unless you need to modify QT itself. You probably just want to install the development headers for the pre-built QT development libraries "qt4-dev" (I think). You may also want to install and IDE (Integrated Development Environemnt), like KDevelop

sudo aptitude install qt4-dev

Can you help with this problem?

Provide an answer of your own, or ask Pragati Garg for more information if necessary.

To post a message you must log in.