hello,..
i would like to start learning qt so i have installed
Code:
libqt3-headers
qt3-doc
libqt3-mt-dev
im running debian etch amd64 and i would like to start learning qt programming.
my preferred IDEs is anjuta and vim.
then i went to anjuta and pasted this:
Code:
/****************************************************************
**
** Qt tutorial 1
**
****************************************************************/
#include "/usr/include/qt3/qapplication.h"
#include "/usr/include/qt3/qpushbutton.h"
int main( int argc, char **argv )
{
QApplication a( argc, argv );
QPushButton hello( "Hello world!", 0 );
hello.resize( 100, 30 );
a.setMainWidget( &hello );
hello.show();
return a.exec();
}
tried to compile (all went ok )..
then in make i got errors ..
so i guesed that im duing some thing worng spesific in anjuta so i went to the source dir.
Code:
qmake -project
qmake
make
but make complains about :
Code:
... ( i removed alot of them) ..
moc_qbutton.o:(.rodata._ZTV7QButton[vtable for QButton]+0x430): undefined refere nce to `QPaintDevice::fontMet(QFont*, int, char const*, int) const'
moc_qbutton.o:(.rodata._ZTV7QButton[vtable for QButton]+0x438): undefined refere nce to `QPaintDevice::fontInf(QFont*, int) const'
collect2: ld returned 1 exit status
make: *** [qt] Error 1
also make started with :
g++ -o qt qt_hello.o moc_qapplication.o moc_qpushbutton.o moc_qdesktopwidget.o moc_qtranslator.o moc_qwidget.o moc_qobject.o moc_qbutton.o -L/usr/X11R6/lib -lXext -lX11 -lm -lpthread
what more packages should i install to be able compile any qt stuff ?
or am i doing wrong ?
thnx in advance ..