[bt-devel] qt static errors
Brook Humphrey
bt-devel@crosswire.org
Mon, 21 May 2001 12:42:31 -0700
On Monday 21 May 2001 12:28 pm, you wrote:
> Hi!
>
> I think the libqt.a file has not the references to the other libs it uses.
>
> Add the following switches before the -lqt part.
Ok, this is the current qt line in the makefile.
LIB_QT = -lqt $(LIBPNG) $(LIBJPEG) -lXext $(LIB_X11) $(LIBSM)
I change it to this with a patch
LIB_QT = -static -lqt $(LIBPNG) $(LIBJPEG) -static -lXext $(LIB_X11) $(LIBSM)
but that still wasn't working so i moved the qt libs out of the way to force
a static compile when I got this error.
>
> -lX11 -lmng
>
> If it doesn't work, try to add them behind -lqt.
>
> I hope this works. -lmng is machine dependant.
>
> Joachim
>
> > Thats enough for me for right now. I'll try the new printer code right
> > now.
> >
> > This is what I get from the compiler when I force qt to compile staitc.
> >
> > /usr/lib/qt2/lib/libqt.a(qfont_x11.o): In function
> > `QFont::initFontInfo(void) const':
> > qfont_x11.o(.text+0x119a): undefined reference to `XftPatternGetString'
> > qfont_x11.o(.text+0x11ac): undefined reference to `XftPatternGetInteger'
> > qfont_x11.o(.text+0x11c1): undefined reference to `XftPatternGetInteger'
> > qfont_x11.o(.text+0x11d3): undefined reference to `XftPatternGetInteger'
> > /usr/lib/qt2/lib/libqt.a(qfont_x11.o): In function `QFont::load(void)
> > const': qfont_x11.o(.text+0x23ea): undefined reference to `XftFontOpen'
> > /usr/lib/qt2/lib/libqt.a(qfont_x11.o): In function
> > `QFontMetrics::inFont(QChar) const':
> > qfont_x11.o(.text+0x648d): undefined reference to `XftGlyphExists'
> > /usr/lib/qt2/lib/libqt.a(qfont_x11.o): In function `getExt(QString, int,
> > XRectangle &, XRectangle &, _XOC *, _XftFont *, QTextCodec const *)':
> >
> > qfont_x11.o(.text+0x6a00): undefined
> > reference to `XftTextExtents16'
> > /usr/lib/qt2/lib/libqt.a(qfont_x11.o): In function
> > `QFontMetrics::leftBearing(QChar) const':
> > qfont_x11.o(.text+0x6bbb): undefined reference to `XftTextExtents32'
> > /usr/lib/qt2/lib/libqt.a(qfont_x11.o): In function
> > `QFontMetrics::rightBearing(QChar) const':
> > qfont_x11.o(.text+0x6deb): undefined reference to `XftTextExtents32'
> > /usr/lib/qt2/lib/libqt.a(qfont_x11.o): In function
> > `QFontMetrics::width(QChar) const':
> > qfont_x11.o(.text+0x758b): undefined reference to `XftTextExtents32'
> > /usr/lib/qt2/lib/libqt.a(qfont_x11.o): In function
> > `QFontMetrics::width(QString const &, int) const':
> > qfont_x11.o(.text+0x77ea): undefined reference to `XftTextExtents16'
> > /usr/lib/qt2/lib/libqt.a(qfont_x11.o): In function
> > `QFontMetrics::boundingRect(QString const &, int) const':
> > qfont_x11.o(.text+0x7bc9): undefined reference to `XftTextExtents16'
> > /usr/lib/qt2/lib/libqt.a(qpainter_x11.o): In function
> > `qt_lookup_ft_draw(unsigned long, QPaintDevice *, QRegion *)':
> > qpainter_x11.o(.text+0x647): undefined reference to `XftDrawCreate'
> > qpainter_x11.o(.text+0x659): undefined reference to `XftDrawCreateBitmap'
> > qpainter_x11.o(.text+0x704): undefined reference to `XftDrawSetClip'
> > qpainter_x11.o(.text+0x780): undefined reference to `XftDrawSetClip'
> > qpainter_x11.o(.text+0x7ac): undefined reference to `XftDrawSetClip'
> > /usr/lib/qt2/lib/libqt.a(qpainter_x11.o): In function
> > `QPainter::drawText(int, int, QString const &, int)':
> > qpainter_x11.o(.text+0x721e): undefined reference to
> > `XftDefaultHasRender' qpainter_x11.o(.text+0x7412): undefined reference
> > to `XftDefaultHasRender' qpainter_x11.o(.text+0x754a): undefined
> > reference to `XftTextExtents16' qpainter_x11.o(.text+0x75ee): undefined
> > reference to `XftDrawRect' qpainter_x11.o(.text+0x7692): undefined
> > reference to `XftDrawString16' /usr/lib/qt2/lib/libqt.a(qpainter_x11.o):
> > In function `qt_use_xft(void)': qpainter_x11.o(.text+0x7969): undefined
> > reference to `XftDefaultHasRender'
> > /usr/lib/qt2/lib/libqt.a(qpainter_x11.o): In function
> > `qt_create_ft_draw(_XDisplay *, unsigned long, Visual *, unsigned long)':
> > qpainter_x11.o(.text+0x79e8): undefined reference to
> > `XftDefaultHasRender' /usr/lib/qt2/lib/libqt.a(qpainter_x11.o): In
> > function
> > `qt_destroy_ft_draw(_XDisplay *, unsigned long)':
> > qpainter_x11.o(.text+0x7add): undefined reference to `XftDrawDestroy'
> > /usr/lib/qt2/lib/libqt.a(qmngio.o): In function `readdata(mng_data_struct
> > *, void *, unsigned int, unsigned int *)':
> > qmngio.o(.text+0x15): undefined reference to `mng_get_userdata'
> > /usr/lib/qt2/lib/libqt.a(qmngio.o): In function
> > `processheader(mng_data_struct *, unsigned int, unsigned int)':
> > qmngio.o(.text+0xc4): undefined reference to `mng_get_userdata'
> > qmngio.o(.text+0x14a): undefined reference to `mng_set_canvasstyle'
> > /usr/lib/qt2/lib/libqt.a(qmngio.o): In function
> > `QMNGFormat::decode(QImage &, QImageConsumer *, unsigned char const *,
> > int)':
> > qmngio.o(.text+0x1a5): undefined reference to `mng_initialize'
> > qmngio.o(.text+0x1b5): undefined reference to `mng_set_suspensionmode'
> > qmngio.o(.text+0x1c5): undefined reference to `mng_setcb_openstream'
> > qmngio.o(.text+0x1d5): undefined reference to `mng_setcb_closestream'
> > qmngio.o(.text+0x1e5): undefined reference to `mng_setcb_readdata'
> > qmngio.o(.text+0x1f5): undefined reference to `mng_setcb_errorproc'
> > qmngio.o(.text+0x205): undefined reference to `mng_setcb_processheader'
> > qmngio.o(.text+0x215): undefined reference to `mng_setcb_getcanvasline'
> > qmngio.o(.text+0x225): undefined reference to `mng_setcb_refresh'
> > qmngio.o(.text+0x235): undefined reference to `mng_setcb_gettickcount'
> > qmngio.o(.text+0x245): undefined reference to `mng_setcb_settimer'
> > qmngio.o(.text+0x256): undefined reference to `mng_readdisplay'
> > qmngio.o(.text+0x28d): undefined reference to `mng_display_resume'
> > /usr/lib/qt2/lib/libqt.a(qmngio.o): In function
> > `openstream(mng_data_struct *)':
> > qmngio.o(.text+0x439): undefined reference to `mng_get_userdata'
> > /usr/lib/qt2/lib/libqt.a(qmngio.o): In function
> > `closestream(mng_data_struct *)':
> > qmngio.o(.text+0x459): undefined reference to `mng_get_userdata'
> > /usr/lib/qt2/lib/libqt.a(qmngio.o): In function
> > `errorproc(mng_data_struct *, int, signed char, int, unsigned int, int,
> > int, char *)':
> >
> > qmngio.o(.text+0x48d): undefined reference to
> > `mng_get_userdata'
> > /usr/lib/qt2/lib/libqt.a(qmngio.o): In function
> > `getcanvasline(mng_data_struct *, unsigned int)':
> > qmngio.o(.text+0x4df): undefined reference to `mng_get_userdata'
> > /usr/lib/qt2/lib/libqt.a(qmngio.o): In function `refresh(mng_data_struct
> > *, unsigned int, unsigned int, unsigned int, unsigned int)':
> >
> > qmngio.o(.text+0x539): undefined reference to
> > `mng_get_userdata'
> > /usr/lib/qt2/lib/libqt.a(qmngio.o)(.text+0x5aa): more undefined
> > references to `mng_get_userdata' follow
> > /usr/lib/qt2/lib/libqt.a(qmngio.o): In function
> > `QMNGFormat::processheader(unsigned int, unsigned int)':
> > qmngio.o(.QMNGFormat::gnu.linkonce.t.processheader(unsigned int, unsigned
> > int)+0x90): undefined reference to
> > `mng_set_canvasstyle'/usr/lib/qt2/lib/libqt.a(qpsprinter.o): In function
> > `QPSPrinterFont::QPSPrinterFont(QFont const &, QPSPrinterPrivate *)':
> > qpsprinter.o(.text+0x8dee): undefined reference to `XftPatternGetString'
> > /usr/lib/qt2/lib/libqt.a(qfontdatabase.o): In function
> > `addStyle(_XftFontSet *, QtFontCharSet *)':
> > qfontdatabase.o(.text+0x4a28): undefined reference to
> > `XftPatternGetString' qfontdatabase.o(.text+0x4baa): undefined reference
> > to
> > `XftPatternGetInteger' qfontdatabase.o(.text+0x4bc9): undefined reference
> > to `XftPatternGetInteger' qfontdatabase.o(.text+0x4be5): undefined
> > reference to `XftPatternGetInteger'
> > /usr/lib/qt2/lib/libqt.a(qfontdatabase.o): In function
> > `QFontDatabase::createDatabase(void)':
> > qfontdatabase.o(.text+0x4f0e): undefined reference to `XftListFonts'
> > qfontdatabase.o(.text+0x4f5c): undefined reference to
> > `XftPatternGetString' qfontdatabase.o(.text+0x513a): undefined reference
> > to `XftListFonts' qfontdatabase.o(.text+0x518c): undefined reference to
> > `XftPatternGetString' qfontdatabase.o(.text+0x537f): undefined reference
> > to `XftListFonts' qfontdatabase.o(.text+0x5400): undefined reference to
> > `XftFontOpen' qfontdatabase.o(.text+0x57dc): undefined reference to
> > `XftGlyphExists' qfontdatabase.o(.text+0x59c0): undefined reference to
> > `XftFontClose' qfontdatabase.o(.text+0x5b7c): undefined reference to
> > `XftFontSetDestroy' qfontdatabase.o(.text+0x5ba0): undefined reference to
> > `XftFontSetDestroy' qfontdatabase.o(.text+0x5bce): undefined reference to
> > `XftFontSetDestroy' collect2: ld returned 1 exit status
> > make[3]: *** [bibletime] Error 1
> > make[3]: Leaving directory
> > `/usr/src/RPM/BUILD/bibletime-1.0.beta/bibletime' make[2]: ***
> > [all-recursive] Error 1
> > make[2]: Leaving directory
> > `/usr/src/RPM/BUILD/bibletime-1.0.beta/bibletime' make[1]: ***
> > [all-recursive] Error 1
> > make[1]: Leaving directory `/usr/src/RPM/BUILD/bibletime-1.0.beta'
> > make: *** [all-recursive-am] Error 2
--
-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-
Brook Humphrey
Mobile PC Medic, 420 1st, Cheney, WA 99004, 509-235-9107
http://www.webmedic.net, bah@webmedic.net, bah@linux-mandrake.com
-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-~`'~-
My posting or sending this is NOT an invitation for spammers to say that
I've asked to be put on a mailing list.
You are not permitted to send unsolicited bulk email
(commonly referred to as spam)
to this address, or to sell this address to people who do.
By extracting the address from this page,
you agree to pay a fee of $10,000.00 per UBE message you send
and $100,000.00 per instance you sold this address.
_______________-~-_______________
Holliness unto the Lord
He must increase but I must decrease.
*****************-~-*****************