Qt Installation auf OS X: Fehler bei configure/make

Verschiedenes zu Qt
Antworten
sepp
Beiträge: 8
Registriert: 25. Mai 2007 15:58

Qt Installation auf OS X: Fehler bei configure/make

Beitrag von sepp »

Hallo zusammen,

ich habe Qt (4.6.3) auf Mac OS X (10.6.4) (re)configured:

Code: Alles auswählen

make confclean
läuft durch

Code: Alles auswählen

./configure -debug-and-release -opensource -no-webkit -platform macx-g++ -qt-zlib -qt-gif -qt-libtiff -qt-libpng -qt-libmng -qt-libjpeg -cocoa -arch "x86 ppc x86_64 ppc64"
läuft durch... schlägt fehl mit folgender Ausgabe:

Code: Alles auswählen

cd src/tools/bootstrap/ && make -f Makefile 
g++ -c -pipe -O2 -fPIC -arch ppc64 -Xarch_ppc64 -mmacosx-version-min=10.5 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -arch ppc -arch i386 -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 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../mkspecs/macx-g++ -I. -I../../../include -I../../../include/QtCore -I../../../include/QtXml -o .obj/release-static/qisciicodec.o ../../corelib/codecs/qisciicodec.cpp
In file included from /usr/include/c++/4.2.1/new:44,
                 from ../../../include/QtCore/../../src/corelib/tools/qlist.h:54,
                 from ../../../include/QtCore/qlist.h:1,
                 from ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:46,
                 from ../../../include/QtCore/qtextcodec.h:1,
                 from ../../corelib/codecs/qisciicodec_p.h:56,
                 from ../../corelib/codecs/qisciicodec.cpp:41:
/usr/include/c++/4.2.1/cstddef:50:28: error: bits/c++config.h: No such file or directory
In file included from /usr/include/c++/4.2.1/new:44,
                 from ../../../include/QtCore/../../src/corelib/tools/qlist.h:54,
                 from ../../../include/QtCore/qlist.h:1,
                 from ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:46,
                 from ../../../include/QtCore/qtextcodec.h:1,
                 from ../../corelib/codecs/qisciicodec_p.h:56,
                 from ../../corelib/codecs/qisciicodec.cpp:41:
/usr/include/c++/4.2.1/cstddef:53: error: expected constructor, destructor, or type conversion before ‘(’ token
In file included from /usr/include/c++/4.2.1/new:45,
                 from ../../../include/QtCore/../../src/corelib/tools/qlist.h:54,
                 from ../../../include/QtCore/qlist.h:1,
                 from ../../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:46,
                 from ../../../include/QtCore/qtextcodec.h:1,
                 from ../../corelib/codecs/qisciicodec_p.h:56,
                 from ../../corelib/codecs/qisciicodec.cpp:41:
/usr/include/c++/4.2.1/exception:40: error: ‘#pragma’ is not allowed here
/usr/include/c++/4.2.1/exception:133: error: expected declaration before end of line
lipo: can't open input file: /var/folders/wM/wMqPWiAmETOsmPVl+BdxaU+++TI/-Tmp-//ccwGmYVv.out (No such file or directory)
make[1]: *** [.obj/release-static/qisciicodec.o] Error 1
make: *** [sub-tools-bootstrap-make_default-ordered] Error 2
Weiss jemand Rat? Vorher war als arch nur x86 angegeben, da hat alles wunderbar geklappt, nur baruche ich eben auch die anderen Architekturen...

Danke für jede Hilfe:)
solarix
Beiträge: 1133
Registriert: 7. Juni 2007 19:25

Beitrag von solarix »

Klingt für mich wie wenn du Universal-Binaries verwenden möchtest..

Wie du Qt als "Universal"-Target generierst, findest du in der Anleitung...

hth..
sepp
Beiträge: 8
Registriert: 25. Mai 2007 15:58

Beitrag von sepp »

solarix hat geschrieben:Klingt für mich wie wenn du Universal-Binaries verwenden möchtest..
Ja, will ich. Aber laut Anleitung ist -universal nur ein Ersatz für -arch "ppc x86", also nur die 32 Bit Variante, ich möchte aber auch die 64 Bit Variante...
solarix
Beiträge: 1133
Registriert: 7. Juni 2007 19:25

Beitrag von solarix »

Keine Ahnung wo das steht.. gemäss
http://doc.qt.nokia.com/4.7/developing- ... l-binaries
sind doch alle vier supportet.. oder nicht?

[EDIT]
Aber ich sehe dein Problem.. gemäss obigem Link können die vier Targets tatsächlich einzeln angegeben werden.. hmm..

[EDIT2]
Kein Qt-Problem.. sondern eine unvollständige GCC-Installation (ppc64 fehlt vermutlich)
siehe:
http://stackoverflow.com/questions/2830 ... arch-ppc64
Antworten