[Interest] Qt4.8 on a Mac with custom GCC?

Konrad Rosenbaum konrad at silmor.de
Sun Jan 8 22:27:33 CET 2012


Hi,

has anyone managed to compile Qt 4.8 with a custom GCC (4.6.2) on MacOS/X?

OS: Snow Leopard (fully patched: 10.6.8)
Hardware: Mac Mini, Intel Core2 Duo
XCode: 3 (just used to bootstrap GCC)
GCC: vanilla 4.6.2, unpatched GNU version

The reason I'm asking is that I'm starting to use C++11 features 
(specifically lambdas, unsupported even by XCode 4). This works fine for 
Linux and MinGW (my main targets, which provide GCC 4.5). I'd like to 
continue to support MacOS, but it is not more important than programming 
convenience...

I got through configure by removing the -fconstant-cfstrings option from the 
script. But I'm not sure what to do about the error thrown by make.

configure options:
./configure -prefix $HOME/qt4.8.0 -opensource -confirm-license -nomake demos 
-nomake examples

make:
---
cd src/tools/bootstrap/ && make -f Makefile 
gcc -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall 
-W -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_FROM_ASCII -
DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_GEOM_VARIANT 
-DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_STL -DQT_NO_SYSTEMLOCALE -
DQT_NO_TEXTSTREAM -DQT_NO_THREAD -DQT_NO_UNICODETABLES -
DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -D_LARGEFILE64_SOURCE -
D_LARGEFILE_SOURCE -I../../../mkspecs/macx-g++ -I. -I../../../include -
I../../../include/QtCore -I../../../include/QtXml 
../../corelib/tools/qlocale_mac.mm -o .obj/release-shared/qlocale_mac.o
gcc: error: x86_64: No such file or directory
gcc: error: unrecognized option '-arch'
gcc: error: unrecognized option '-Xarch_x86_64'
make[1]: *** [.obj/release-shared/qlocale_mac.o] Error 1
make: *** [sub-tools-bootstrap-make_default-ordered] Error 2
---

Any ideas?


	Konrad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120108/cb93b417/attachment.sig>


More information about the Interest mailing list