[Qt-interest] Static build error: "can't figure out the architecture type..."

Stan Warford Stan.Warford at pepperdine.edu
Tue Aug 4 02:54:09 CEST 2009


Hello all,

I am trying to do a static build of Qt to deploy my app, which  
compiles and runs fine with Creator and the binary distribution of Qt.  
I start with

./configure -static -universal -sdk /Developer/SDKs/MacOSX10.4u.sdk

which appears to execute correctly. But when I follow that with

make sub-src

I get the following error after a while

======================
cd src/corelib/ && make
make -f Makefile.Debug all
g++ -pipe -Xarch_i386 -mmacosx-version-min=10.4 -Xarch_ppc -mmacosx- 
version-min=10.3 -fconstant-cfstrings -g -gdwarf-2 -fvisibility=hidden  
-fvisibility-inlines-hidden -Wall -W -arch ppc -arch i386 -fPIC - 
isysroot /Developer/SDKs/MacOSX10.4u.sdk -DQT_BUILD_CORE_LIB - 
DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS - 
DQT3_SUPPORT -DQT_MOC_COMPAT -DHB_EXPORT=Q_CORE_EXPORT - 
D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/macx-g++ -I. - 
I../../include -I../../include/QtCore -I.rcc/debug-static -Iglobal - 
I../3rdparty/harfbuzz/src -I.moc/debug-static -x c++-header -c global/ 
qt_pch.h -o .pch/debug-static/QtCore_debug.gch/c++
lipo: can't figure out the architecture type of: /var/folders/oz/ 
ozwPKB1JGSGPI1bsCDdzxE+++TI/-Tmp-//cc0RPFDX.out
make[2]: *** [.pch/debug-static/QtCore_debug.gch/c++] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-corelib-sub_src_target_ordered] Error 2
======================

I can cd to

/var/folders/oz/ozwPKB1JGSGPI1bsCDdzxE+++TI/-Tmp-

but there does not appear to be any file named cc0RPFDX.out

If I ls the files in that directory, I get

1B2BC06C-B03C-49C0-98AF-C7BE6DF10A18.calendarstore
PreviewTemp-DbnSXn
PreviewTemp-ilmImG
com.apple.notify.644.3
com.apple.notify.644.4
com.apple.notify.644.5
hsperfdata_warford
qtsingleapplication-5e9b-1f5-lockfile

I am running Mac OS X 10.5.7 with dual PowerPC G5s and am trying to  
build Qt 4.5.2 so I can deploy a universal binary in a Mac bundle. I  
have succeeded in building a universal binary with Creator and the  
binary distribution of Qt, but I want a static build for deployment  
because the documentation seems to say that's how to get your app  
deployed into a Mac bundle.

I am clueless as to what's going on. Thanks in advance for any help!

Stan Warford



More information about the Qt-interest-old mailing list