Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linking against fink's qt-2.3.2 on 10.3



Robert Tillyard wrote:

I'm trying to link against qt-2.3.2 installed with fink 0.7.? on 10.3. I can see that I have libqt.dylib in /sw/lib/qt2/lib but my compile with...

gcc -s myprog.o moc_myprog.o common.o privilages.o -L/usr/rob/lib/Mac/OSX-10.3/4.16.8-1e -L/sw/lib/qt2/lib -ltcp0101 -lintf0106 -llang0100 -ldb0212 -lgen0108 -lisam0200 -lwind0117 -lspl0300 -lipl0100 -lpanel -lcurses -lm -lilmorph0100 -lmorpheus0100 -lqt -lqutil -o myprog
ld: Undefined symbols:
QBoxLayout::setStretchFactor(QLayout*, int)
QBoxLayout::setStretchFactor(QWidget*, int)
QBoxLayout::addWidget(QWidget*, int, int)
QGridLayout::addColSpacing(int, int)
....


I'm using Apple's default X11 for 10.3.

I have LD_LIBRARY_PATH and DYLD_LIBRARY_PATH set to include the Qt libraries.

I have MACOSX_DEPLOYMENT_TARGET=10.2

Is there something else I'm doing wrong? the other non-Qt symbols are located fine, it's just the Qt stuff that's unresolved.

gcc version 3.3 20030304 (Apple Computer, Inc. build 1666)

Could you install the November2004 gcc updater from developer.apple.com and see if this helps? You would need to rebuild the qt2 libraries afterwards. Your error looks suspiciously similar to the famous XCode-1.5 bug mentioned on the Fink web page. It wasn't noticed that qt2 was affected by this bug, but then I guess not many people still use qt2, so it may well have gone unnoticed.


It could be something else, of course, but updating your gcc won't harm anyway.

--
Martin

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden

This email sent to email@hidden
References: 
 >linking against fink's qt-2.3.2 on 10.3 (From: Robert Tillyard <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.