- February, 2008 (5)
- March, 2008 (1)
- April, 2008 (7)
- May, 2008 (8)
- June, 2008 (13)
- July, 2008 (10)
- August, 2008 (6)
- September, 2008 (4)
- November, 2008 (9)
I've shifted gears from pretending to being a programmer to now pretending to being a packager. Today's adventure is to get macports to build qt4 as a universal app with gcc4.2. To do this I had to manually symlink g++ to g++-4.2 instead of the default g++-4.0.
/usr/bin/g++-4.2 -c -isystem/opt/local/include -I/opt/local/var/macports/build/_Users_orville_Source_ports_aqua_qt4/work/qt-mac-opensource-src-4.4.1/include -Os -arch ppc -arch i386 -Wall -W -DQT_BOOTSTRAPPED -DQT_MOC -DQT_NO_CODECS -DQT_LITE_UNICODE -DQT_NO_LIBRARY -DQT_NO_STL -DQT_NO_COMPRESS -DQT_NO_DATASTREAM -DQT_NO_TEXTSTREAM -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_THREAD -DQT_NO_REGEXP -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_GEOM_VARIANT -DQT_NO_USING_NAMESPACE -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../mkspecs/macx-g++ -I. -I../../corelib/arch/generic -I../../../include -I. -I../../../include/QtCore -I. -I.uic/debug-shared -o release-shared/qcore_mac.o ../../corelib/kernel/qcore_mac.cpp
g++ -headerpad_max_install_names -arch ppc -arch i386 -o ../../../bin/moc release-shared/moc.o release-shared/preprocessor.o release-shared/generator.o release-shared/parser.o release-shared/token.o release-shared/main.o release-shared/qglobal.o release-shared/qmalloc.o release-shared/qnumeric.o release-shared/qbuffer.o release-shared/qdir.o release-shared/qdiriterator.o release-shared/qfile.o release-shared/qfileinfo.o release-shared/qfsfileengine.o release-shared/qfsfileengine_iterator.o release-shared/qiodevice.o release-shared/qtemporaryfile.o release-shared/qtextstream.o release-shared/qurl.o release-shared/qmetatype.o release-shared/qbytearraymatcher.o release-shared/qdatetime.o release-shared/qhash.o release-shared/qlistdata.o release-shared/qlocale.o release-shared/qmap.o release-shared/qstring.o release-shared/qstringlist.o release-shared/qvector.o release-shared/qvariant.o release-shared/qabstractfileengine.o release-shared/qbytearray.o release-shared/qvsnprintf.o release-shared/qfsfileengine_unix.o release-shared/qfsfileengine_iterator_unix.o release-shared/qcore_mac.o -L/opt/local/var/macports/build/_Users_orville_Source_ports_aqua_qt4/work/qt-mac-opensource-src-4.4.1/lib -L/opt/local/lib -framework CoreServices
Undefined symbols for architecture ppc:
"___floatundidf", referenced from:
__ZL7convertPKN8QVariant7PrivateENS_4TypeEPvPb in qvariant.o
"___floatundisf", referenced from:
__ZL7convertPKN8QVariant7PrivateENS_4TypeEPvPb in qvariant.o
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccZXjzAw.out (No such file or directory)
make[1]: *** [../../../bin/moc] Error 1
make: *** [sub-moc-make_default-ordered] Error 2
Note that the first command uses /usr/bin/g++-4.2 explicitly while the pre-lipo job uses g++. Lipo for those wondering is that magical thing that smooshes together ppc and intel code into one harmonious blob. The fact that changing the symlink makes building a universal port of qt work again means something isn't right somewhere. Macports bug? Perhaps. I did manually force macports into using gcc 4.2 by fidaddling with the portconfigure.tcl file. Per'aps it's time to file a bug to make sure that macports deals with these properly. Perhaps qt has given me the answer to all my other universal build issues as well. One can only hope. I'll check out pth gpgme boost boost-jam again tomorrow. Blasted kdepimlibs deps. Every single one of them. Sigh. P.S. The qt4-mac package will contain all the non-x11 patches from kde's qt-copy repo :-) |
|||
