[kaffe] Qt based AWT implementation linking errors

Sanjeev Manral sanjeevm at sanyo.co.in
Thu Nov 28 02:14:31 PST 2002


hi all,


I downloaded kaffe from cvs and building it with qt-awt
right now I'm building it for native linux (pentium)

My configuration are -
./configure --with-awt=qt --with-qtdir=/usr/local/qt --without-x
--with-engine=intrp --with-staticlib --with-staticbin --enable-static
--disable-shared --enable-debug

I've compiled qt-emebedded-free-3.0.5 with -thread option, built staticly.
and it is in proper place. I've created a softlink to
/usr/local/qt/lib/libqte-mt.a as /usr/local/qt/lib/libqte.a
I've a softlink  /usr/local/qt to
/second_disk/iapr/x86/qt-embedded-free-3.0.5  where my qt is placed.

but during linking it is giving me following errors-

/*******LOG*********************/

../../libraries/clib/awt/qt/.libs/libawt.a(evt.moc.o)(.gnu.linkonce.d.__vt_1
5EventDispatcher+0x180): undefined reference to `QWidget::x11Event(_XEvent
*)'
../../libraries/clib/awt/qt/.libs/libawt.a(evt.moc.o)(.gnu.linkonce.d.__vt_1
5EventDispatcher.12QPaintDevice+0x18): undefined reference to
`QPaintDevice::x11RenderHandle(void) const'
../../libraries/clib/awt/qt/.libs/libawt.a(evt.moc.o)(.gnu.linkonce.d.__vt_1
5EventDispatcher.12QPaintDevice+0x1c): undefined reference to
`QPaintDevice::setX11Data(QPaintDeviceX11Data const *)'
/usr/local/qt/lib/libqte.a(qgfxraster_qws.o): In function `int_sqrt(unsigned
int)':
/second_disk/iapr/x86/qt-embedded-free-3.0.5/src/kernel/qgfxraster_qws.cpp:3
037: undefined reference to `sqrt'
/usr/local/qt/lib/libqte.a(qthread_unix.o): In function
`QThreadPostEventPrivate::QThreadPostEventPrivate(void)':
/second_disk/iapr/x86/qt-embedded-free-3.0.5/src/kernel/qthread_unix.cpp:207
: undefined reference to `pthread_create'
/usr/local/qt/lib/libqte.a(qdial.o): In function
`QDial::valueFromPoint(QPoint const &) const':
/second_disk/iapr/x86/qt-embedded-free-3.0.5/src/widgets/qdial.cpp:527:
undefined reference to `atan2'
/usr/local/qt/lib/libqte.a(qdial.o): In function `QDial::angle(QPoint const
&, QPoint const &) const':
/second_disk/iapr/x86/qt-embedded-free-3.0.5/src/widgets/qdial.cpp:580:
undefined reference to `atan'
/usr/local/qt/lib/libqte.a(qdatetimeedit.o): In function
`QDateEdit::fix(void)':
/second_disk/iapr/x86/qt-embedded-free-3.0.5/src/widgets/qdatetimeedit.cpp:1
497: undefined reference to `floor'
/second_disk/iapr/x86/qt-embedded-free-3.0.5/src/widgets/qdatetimeedit.cpp:1
499: undefined reference to `floor'
/second_disk/iapr/x86/qt-embedded-free-3.0.5/src/widgets/qdatetimeedit.cpp:1
499: undefined reference to `floor'
/second_disk/iapr/x86/qt-embedded-free-3.0.5/src/widgets/qdatetimeedit.cpp:1
511: undefined reference to `floor'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcc.a(_eh.o)(.data+0x0):
undefined reference to `pthread_create'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcc.a(frame-dwarf2.o): In
function `decode_uleb128':
/usr/src/build/40410-i386/BUILD/gcc-2.96-20000731/obj-i386-redhat-linux/gcc/
../../gcc/frame-dwarf2.c(.data+0x0): undefined reference to `pthread_create'
collect2: ld returned 1 exit status
make[2]: *** [kaffe-bin] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

/**************END OF LOG*************/

I'm sending this question to qt-mailing list also. By any chance if anybody
has any idea of this please let me know.

thanks in advance,
Regards,
Sanjeev




> -----Original Message-----
> From:	Dalibor Topic [SMTP:robilad at yahoo.com]
> Sent:	Thursday, November 28, 2002 12:10 AM
> To:	kaffe at kaffe.org
> Cc:	jim at kaffe.org; beattie at beattie-home.net; sanjeevm at sanyo.co.in
> Subject:	Qt based AWT implementation merged into main tree
> 
> Hi,
> 
> with a little help from the autoqt m4 macros, and
> small patches to get things to compile, I've merged in
> the kaffe-qt-awt sources into the main tree. Run
> configure --help to see the new options.
> 
> Please take a look at FAQ/FAQ.awt for more information
> on configuration issues. If you've had problems with
> qt-awt before, please give it a try now and report
> your experiences on the mailing list.
> 
> cheers,
> 
> dalibor topic
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com




More information about the kaffe mailing list