Home > How To > Compiling in Qt Creator 2.0 problem – Error 127 [RESOLVED]

Compiling in Qt Creator 2.0 problem – Error 127 [RESOLVED]

I had problems compiling simple programs in QT Creator, this happens when I try to compile a basic program too (Just build any code)

From Tools->Options->Qt4->”I check rebuild to see of qmake was working – but it gave the below error”

Code:
Running build steps for project chip...Creating gdb macros library...
Starting: /usr/bin/qmake-qt4 /home/ahmed/Qt/chip/chip.pro -spec
/usr/share/qt4/mkspecs/linux-g++ -r CONFIG+=debug_and_release
CONFIG+=debug Exited with code 0.Starting: /usr/bin/make debug -w make:
Entering directory `/home/ahmed/Qt/chip'/usr/bin/make -f Makefile.Debugmake[1]:
Entering directory `/home/ahmed/Qt/chip'g++ -c -pipe -g -Wall -W -D_REENTRANT
-DQT_OPENGL_LIB -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/QtOpenGL
-I/usr/include/qt4 -I/usr/X11R6/include -Idebug -I. -o debug/main.o main.cpp make[1]:
g++: Command not found
make[1]: *** [debug/main.o] Error 127make[1]:
Leaving directory `/home/ahmed/Qt/chip'make:
Leaving directory `/home/ahmed/Qt/chip'make:
*** [debug] Error 2Exited with code 2.
Error while building project ch
ip

To Solve this issue just install g++, I use Ubuntu 9.10
ahmed@ahmed-laptop:~$ sudo apt-get install g++

This solved the issue. 🙂

Advertisements
Categories: How To
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: