View Full Version : [SOLVED] nybody uses qt on ubuntu??

November 6th, 2009, 08:59 AM
i use qt on winxp..and i have a dulaboot sytem.i installed qt on ubuntu but the compile output is as:
p, li { white-space: pre-wrap; } Running build steps for project 1...
Starting: /usr/bin/qmake-qt4 /home/nishant/1/1.pro -spec /usr/share/qt4/mkspecs/linux-g++ -r CONFIG+=debug
Exited with code 0.
Starting: /usr/bin/make -w
make: Entering directory `/home/nishant/1'
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. -o 1.o 1.cpp
make: Leaving directory `/home/nishant/1'
make: g++: Command not found
make: *** [1.o] Error 127
Exited with code 2.
Error while building project 1
When executing build step 'Make'

..any ideas nyone....

November 6th, 2009, 09:03 AM
Try this command:

sudo apt-get install build-essential

It installs several compilers and such things necessary for compiling.

November 6th, 2009, 10:24 AM
You don't have the C++ compiler, g++, installed.

Use the command posted by Grubby above. The build-essential package includes compilers for C, C++, and relevant headers.

November 7th, 2009, 06:51 AM
Thanks folks.......
VEry happy nw...no need to switch to winxp for qt.....

November 7th, 2009, 03:33 PM
Well, Kubuntu, the KDE-based Ubuntu derivative is the place to be if you're a Qt/KDE guy like me you know...