Everything's here : linking-the-application-to-qt-as-frameworks.
Hint : list your frameworks in a Makefile variable and do something like:
for f in $(QT_FRAMEWORKS); do \
ditto -rsrc "$(QTDIR)/lib/$$f.framework" ... ; \
rm debug ... ; \
rm headers ... ; \
install_name_tool -id ... ; \
for g in $(QT_FRAMEWORKS); do \
install_name_tool -change ... ; \
done; \
install_name_tool -change ... ; \
done
for f in $(QT_FRAMEWORKS); do \
ditto -rsrc "$(QTDIR)/lib/$$f.framework" ... ; \
rm debug ... ; \
rm headers ... ; \
install_name_tool -id ... ; \
for g in $(QT_FRAMEWORKS); do \
install_name_tool -change ... ; \
done; \
install_name_tool -change ... ; \
done
To copy to clipboard, switch view to plain text mode
Be carefull, you'll have to list the framework in the right order (regarding which frameworks they rely on ...). Use otool -L to know which libraries a framework is linked with.
Example :
QT_FRAMEWORKS=QtCore QtXml QtNetwork QtGui QtSql Qt3Support QtOpenGL
QT_FRAMEWORKS=QtCore QtXml QtNetwork QtGui QtSql Qt3Support QtOpenGL
To copy to clipboard, switch view to plain text mode
Bookmarks