[Qt-interest] QT 4.5 OS X Compile errors
Jason Kolbenheyer
jason at dropdeadcreative.com
Wed Sep 23 16:51:03 CEST 2009
Hi Bastian - thanks for the reply.
I'm using 10.4.11
Does this help you help me? :)
I'm totally new at this, thanks for your patience.
So I guess it could be on of these?:
- Your PATH contains an older version of qmake, personally I never had
THAT problem, but I saw it somewhere
-- How do I check for this?
- You are building part of Qt as universal binary and some parts not
(as lipo is complaining).
-- this is my configuration:
./configure -debug-and-release -platform macx-g++ -universal -sdk /
Developer/SDKs/MacOSX10.4u.sdk -qt-zlib -qt-gif -qt-libpng -qt-libmng
-qt-libjpeg -qt-sql-sqlite -static -nomake examples -nomake demos
So this would build all of QT as universal, right?
Thanks in advance.
-jason
On Sep 23, 2009, at 10:42 AM, Bastian Bense wrote:
Possibly some of the following:
- You are using Mac OS X 10.6 and are trying to compile Qt 4.5 (had
trouble with that myself) - use Qt 4.6 preview
- You are using Mac OS X 10.6 and are using Xcode from Apple's website
- don't do that yet, 10.6 ships with a more recent version of Xcode
and frameworks, it seems - so re-install Xcode from the 10.6 DVD.
- You are trying to compile Qt against the 10.4 frameworks on Mac OS X
10.6. That didn't work for me either and brought up similar cryptic
errors.
- You are using Mac OS X 10.5 with outdated Xcode (in this case
download the latest Xcode from Apple's website)
- Your PATH contains an older version of qmake, personally I never had
THAT problem, but I saw it somewhere
- You are building part of Qt as universal binary and some parts not
(as lipo is complaining).
By Xcode I mean Apple's Developer Tools (Libraries, Frameworks, etc),
not the Xcode app itself. Which OS version are you using anyway?
Hope that helps.
Basti
Am 23.09.2009 um 13:33 schrieb Jason Kolbenheyer:
> I've been trying to compile QT 4.5 for the past few days. My
> settings are:
>
> ./configure -debug-and-release -static -no-fast -stl -qt-sql-sqlite
> -qt-zlib -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg -webkit -
> universal -sdk /Developer/SDKs/MacOSX10.4u.sdk -nomake examples -
> nomake demos
>
> I get the error:
>
> QListData::remove(int) referenced from libQtCLucene expected to be
> defined in /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/
> Versions/4/QtCore
> QListData::insert(int) referenced from libQtCLucene expected to be
> defined in /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/
> Versions/4/QtCore
> QString::toAscii() constreferenced from libQtCLucene expected to be
> defined in /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/
> Versions/4/QtCore
> collect2: ld returned 1 exit status
> lipo: can't open input file: /var/tmp//ccLACO3z.out (No such file or
> directory)
> make[4]: *** [../../../../bin/Assistant.app/Contents/MacOS/
> Assistant] Error 1
> make[3]: *** [sub-assistant-make_default-ordered] Error 2
> make[2]: *** [sub-tools-make_default-ordered] Error 2
> make[1]: *** [sub-assistant-make_default-ordered] Error 2
> make: *** [sub-tools-make_default-ordered] Error 2
>
> I know this is due to the -universal setting, I'm not sure how to
> fix, I've tried:
>
> env CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch
> i386 -arch ppc" \
> LDFLAGS="-arch i386 -arch ppc" ./configure -debug-and-release -
> static -no-fast -stl -qt-sql-sqlite -qt-zlib -qt-libpng -qt-libmng -
> qt-libtiff -qt-libjpeg -webkit -universal -nomake examples -nomake
> demos
>
> as per: http://developer.apple.com/mac/library/technotes/tn2005/
> tn2137.html#TNTAG2
>
> But no luck. I appreciate any assistance anyone can offer. Thanks
> and have a great day.
>
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list