Skip to content
shillcock edited this page Sep 23, 2010 · 2 revisions

Qt Build Notes

Configure Qt

./configure -arch x86 -nomake demos -nomake examples -no-qt3support -no-stl -no-exceptions -release -no-rpath -opensource

Build Qt

make -j4

Copy to depends dir

cd lib
cp -R *.framework ~/cm/depend
cp libQtUiTools*.a ~/cm/depend/lib

cd ../bin
cp -R moc rcc uic Designer.app ~/cm/depend/bin

cd ../include
cp -R QtUiTools ~/cm/depend
cp ../tools/designer/src/uitools/quiloader.h ~/cm/depend/QtUiTools
cp ../tools/designer/src/uitools/quiloader_p.h ~/cm/depend/QtUiTools/private

cd ../plugins
cp -R * ~/dm/depend/Qt

cd ~/cm/depend
cp Qt*.framework/Versions/4/Qt* ./Qt/
cp phonon.framework/Versions/4/phonon ./Qt/

Run script to fix paths

cd ./Qt
../../src/lmk/qtInstallPath

QtCore.framework/Headers/qtextcodec.h needs to be edited to remove a compile warning.

In Qt 4.6.3 it is:

../../include/QtCore/../../src/corelib/codecs/qtextcodec.h:175: warning: ‘QCoreXmlStreamWriter’ is already a friend of ‘QTextEncoder’

Clone this wiki locally