[Qt-interest] SPAM-LOW: Re: QT 4.5 OS X Compile errors
Jason Kolbenheyer
jason at dropdeadcreative.com
Wed Sep 23 21:07:53 CEST 2009
I'll give this a try, thanks! I'll post back in a few hours when it's
done building.
I keep seeing "-no-qt3support" in some solutions on Mac, perhaps this
is necessary since I have had Qt 3 installed on this machine prior?
Thanks again, hopefully this works.
-jason
On Sep 23, 2009, at 2:54 PM, Alessandro Portale wrote:
Not a solution how to fix the build issue, but my recipy for building Qt
statically on the Mac:
I do not 'install' Qt. I just make sure that the right qmake gets
called, afterwards. So as prefix I leave the current path.
Here my personal configure line for a deployment Qt:
./configure -static -release -universal -prefix $PWD -no-exceptions
-no-stl -no-webkit -no-xmlpatterns -no-phonon -no-qt3support -no-opengl
-D QT_NO_STYLE_CDE -D QT_NO_STYLE_CLEANLOOKS -D QT_NO_STYLE_MOTIF -D
QT_NO_STYLE_PLASTIQUE -nomake examples -nomake demos
And then, I make sure only to build the Qt libraries, no tools, since
Assistant simply does not build statically (that's known for Windows,
interesting that it is the same on OSX)
You can build just the Qt libs by either
bin/qmake && make sub-src
or
cd src && ../bin/qmake && make
Hope that helps a bit.
Alessandro
Jason Kolbenheyer schrieb:
> Just tried compiling without -universal. Make worked, but when I tried
> to install I got the error:
>
> QFile::size() constreferenced from libQtCLucene expected to be defined
> in /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/Versions/4/
> QtCore
> QFile::error() constreferenced from libQtCLucene expected to be
> defined
> in /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/Versions/4/
> QtCore
> QString::arg(QString const&, int, QChar const&) constreferenced from
> libQtCLucene expected to be defined in
> /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/Versions/4/QtCore
> QDateTime::toTime_t() constreferenced from libQtCLucene expected to be
> defined in
> /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/Versions/4/QtCore
> QFileInfo::isReadable() const referenced from libQtCLucene expected to
> be defined in
> /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/Versions/4/QtCore
> QFileInfo::isWritable() const referenced from libQtCLucene expected to
> be defined in
> /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/Versions/4/QtCore
> QFileInfo::lastModified() const referenced from libQtCLucene
> expected to
> be defined in
> /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/Versions/4/QtCore
> QFileInfo::absoluteFilePath() const referenced from libQtCLucene
> expected to be defined in
> /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/Versions/4/QtCore
> QFileInfo::size() constreferenced from libQtCLucene expected to be
> defined in
> /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/Versions/4/QtCore
> QFileInfo::exists() constreferenced from libQtCLucene expected to be
> defined in
> /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/Versions/4/QtCore
> QFileInfo::isFile() constreferenced from libQtCLucene expected to be
> defined in
> /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/Versions/4/QtCore
> QFileInfo::isSymLink() constreferenced from libQtCLucene expected
> to be
> defined in
> /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/Versions/4/QtCore
> QIODevice::isOpen() constreferenced from libQtCLucene expected to be
> defined in
> /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/Versions/4/QtCore
> QString::rightRef(int) constreferenced from libQtCLucene expected
> to be
> defined in
> /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/Versions/4/QtCore
> QString::operator<(QString const&) constreferenced from libQtCLucene
> expected to be defined in
> /usr/local/Trolltech/Qt-4.5.2/lib/QtCore.framework/Versions/4/QtCore
> 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
> make[4]: *** [../../../../bin/Assistant.app/Contents/MacOS/Assistant]
> Error 1
> make[3]: *** [sub-assistant-install_subtargets-ordered] Error 2
> make[2]: *** [sub-tools-install_subtargets-ordered] Error 2
> make[1]: *** [sub-assistant-install_subtargets-ordered] Error 2
> make: *** [sub-tools-install_subtargets-ordered] Error 2
>
> Any help is greatly appreciated.
>
> -jason
>
>
> On Sep 23, 2009, at 10:01 AM, Richard wrote:
>
> Check that there is no qmake in your path from before, and that 'qmake
> -v' points to the correct version.
>
> -Richard
>
>
>
>
> On Sep 23, 2009, at 1:33 PM, Jason Kolbenheyer wrote:
>
>> 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.
>>
>> -jason
_______________________________________________
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