Bonjour,

Je voudrais compiler un programme C++ / Qt sur un Mac OS X 10.4 (Tiger)

J'ai installé XCode 2.4.1 (le seul qui fonctionnait sur cette machine)
-> J'ai donc g++ v4.0.1, comme préconisé sur le site de trolltech

J'ai installlé le SDK Qt "qt-sdk-mac-opensource-2009.04.dmg" (Qt 4.5)

J'ouvre un projet Qt ou j'en crée un nouveau, je lance la compilation et là, j'ai les messages d'erreurs en rouge ci-dessous :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
Running build steps for project Test...
Starting: /usr/bin/qmake /Users/moi/Documents/Test_Qt/Test/Test.pro -spec macx-g++ -r CONFIG+=release 
Exited with code 0.
Starting: /usr/bin/make -w 
make: Entering directory `/Users/moi/Documents/Test_Qt/Test'
g++ -headerpad_max_install_names -arch i386 -o Test.app/Contents/MacOS/Test main.o mainwindow.o moc_mainwindow.o -F/Library/Frameworks -L/Library/Frameworks -framework QtGui -framework Carbon -framework AppKit -framework QtCore -lz -lm -framework ApplicationServices
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /System/Library/Frameworks/Carbon.framework/Carbon cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /System/Library/Frameworks/AppKit.framework/AppKit cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libz.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning fat file: /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libm.dylib does not contain an architecture that matches the specified -arch flag: i386 (file ignored)
...
D'après ce que je comprends, je n'ai pas le bon processeur et le flag "-arch flag: i386" de g++ n'est pas bon ?

Comment configurer les options de Qt Creator (je ne connais que ça) pour que ça fonctionne ?

Merci.