PDA

View Full Version : relink qtplugin to QtGui && QtCore



patrik08
1st June 2007, 12:44
I like to enable the app ( a XHTML Wysiwyg editor ) http://www.qt-apps.org/content/show.php/XHTML+Wysiwyg+Qeditor?content=59493
to MAC OSX universal..

The doc http://doc.trolltech.com/4.2/deployment-mac.html#qt-plugins say
i must relink qtplugin, on app install_name_tool inside the bundle, but if i have plugin jpg & tiff & gif , ... i must relink each qt-plugins to QtGui && QtCore and if i have a mysql + odbc plugin i must relink 5 or moore plugin to QtGui 5x && QtCore 5x, ist this true? or mistake?




Use install_name_tool to link the plugins to the frameworks in the bundle:

install_name_tool -change /path/to/Qt/lib/QtGui.framework/Versions/4.0/QtGui
@executable_path/../Frameworks/QtGui.framework/Versions/4.0/QtGui
plugandpaint.app/Contents/plugins/imageformats/libqjpeg.dylib
install_name_tool -change /path/to/Qt/lib/QtCore.framework/Versions/4.0/QtCore
@executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore
plugandpaint.app/Contents/plugins/imageformats/libqjpeg.dylib




i use the script ....
http://qxhtml-edit.googlecode.com/svn/trunk/htmledit/mac_bundle/bundle1.sh
is this mistake? ....