Archive for August, 2010

Install QT 4.6.2 on Ubuntu

August 31, 2010 Leave a comment

I was installing QT 4.6.2 to Ubuntu I got the below error –
Qt configure error: Basic XLib functionality test failed
Here is what I did to get rid of the issue.
1. Install libpcap files with “]$ sudo apt-get install libpcap0.8-dev” this library was missing

2. Then install few more libraries which were missing as this was a new ubuntu installation I was working on.
]$ sudo apt-get install libx11-dev libfreetype6-dev libavahi-gobject-dev libSM-dev libXrender-dev libfontconfig-dev libXext-dev

]$ ./configure
]$ make
]$ sudo make install

After this set the PATH
]$ PATH=/usr/local/<PATH_TO_QT>/qt4/bin:$PATH
]$ export PATH

Thats it !! .
Enjoy QT Development.

Categories: How To

On the net

August 30, 2010 Leave a comment
Categories: Internet

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

August 24, 2010 Leave a comment
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”

Running build steps for project chip...Creating gdb macros library...
Starting: /usr/bin/qmake-qt4 /home/ahmed/Qt/chip/ -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
-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

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

This solved the issue. 🙂

Categories: How To