Qt IDE library required.

Asked by Rohith Kumar

I got the below error report while trying to build on Qt Creator 1.3.1, Based on Qt 4.6.2 (32 bit)... I think some libraries are missing. Can anyone help me to resolve this build error report. It would be grateful.

Report:
_______________
"
Running build steps for project InteractiveHelloworld...
Configuration unchanged, skipping QMake step.
Starting: /usr/bin/make -w
make: Entering directory `/home/rohith/InteractiveHelloworld'
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o main.o main.cpp
make: g++: Command not found
make: Leaving directory `/home/rohith/InteractiveHelloworld'
make: *** [main.o] Error 127
Exited with code 2.
Error while building project InteractiveHelloworld
When executing build step 'Make'
"

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 do not have a C++ compiler installed. The C++ compiler that is shipped with ubuntu is g++.

install the build-essential package.

Revision history for this message
Rohith Kumar (rohithkumar-av) said :
#2

where to find it????????????????????????????????????????????

Revision history for this message
mycae (mycae) said :
#3

The same way you install any other software in ubuntu, through the repositories.
http://www.psychocats.net/ubuntu/installingsoftware

If you get stuck trying to use the graphical interface to install the package, you can use the following commands to do it.

First press Ctrl+Alt+T to bring up a terminal, then cut and paste this command

sudo apt-get install build-essential

now you will be prompted for your password. This will not print anything when you type, but your password will be accepted when you press enter.

Revision history for this message
Rohith Kumar (rohithkumar-av) said :
#4

I got G++ in Ubuntu Software Center, Thanks .. And are you working on Qt, do you have tutorial that would help

Revision history for this message
mycae (mycae) said :
#5

No, I don't use QT very often, sorry.

Can you help with this problem?

Provide an answer of your own, or ask Rohith Kumar for more information if necessary.

To post a message you must log in.