Hi,
I am new to qt. Tried hard to build a static version of qt 4.8.5 on MAC OS X, but without success, please help.
Clone from here: git://gitorious.org/qt/qt.git to get version 4.8.5.
ran configure below, which has the correct -I path to the standard C++ include folder that has file “new”, but ./configure could not find file “new” when it tried to build qmake. It seems “configure” ignored -I.
./configure -confirm-license -developer-build -arch x86 -L “/Developer/SDKs/MacOSX10.5.sdk/usr/lib/” -I “/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0” -I “/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/x86_64-apple-darwin9/bits” -I “/usr/include” -I “/usr/local/include” -I “/Developer/SDKs/MacOSX10.5.sdk/usr/include” -I “/Developer/SDKs/MacOSX10.5.sdk/usr/include/gcc/darwin/4.2” -optimized-qmake -nomake examples -nomake tests -opensource -static -no-qt3support -no-nis -no-svg -no-phonon -no-stl -no-javascript-jit -no-accessibility -no-dwarf2 -no-xmlpatterns -no-multimedia -no-audio-backend -no-webkit -no-cups -no-dbus -carbon -sdk “/Developer/SDKs/MacOSX10.5.sdk” -prefix /Developer/qt-src-4.8.5/mybuilds
Got these messages:
Creating qmake. Please wait…
g++ -c -o project.o -arch i386 -pipe -DQMAKE_OPENSOURCE_EDITION -O2 -fconstant-cfstrings -isysroot /Developer/SDKs/MacOSX10.5.sdk -g -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -Igenerators/integrity -I/temp/qt/include -I/temp/qt/include/QtCore -I/temp/qt/src/corelib/global -I/temp/qt/src/corelib/xml -I/temp/qt/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/temp/qt/mkspecs/macx-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DEPRECATED project.cpp
In file included from /temp/qt/include/QtCore/qiterator.h:1,
from /temp/qt/include/QtCore/../../src/corelib/tools/qlist.h:45,
from /temp/qt/include/QtCore/qlist.h:1,
from /temp/qt/include/QtCore/../../src/corelib/tools/qstringlist.h:47,
from /temp/qt/include/QtCore/qstringlist.h:1,
from project.h:45,
from project.cpp:42:
/temp/qt/include/QtCore/../../src/corelib/tools/qiterator.h:50:79: error: new: No such file or directory
/temp/qt/include/QtCore/../../src/corelib/tools/qlist.h: In member function ‘void QList<T>::node_construct(QList<T>::Node*, const T&) [with T = QString]’:
/temp/qt/include/QtCore/../../src/corelib/tools/qlist.h:512:
↧