diff --git a/mac_post_make.sh b/mac_post_make.sh index 7712f72f..86c19fda 100755 --- a/mac_post_make.sh +++ b/mac_post_make.sh @@ -23,6 +23,8 @@ cp -R ./data $RESOURCES # create framework-path BINARY_FW_PATH="$APPLICATION/Contents/Frameworks" mkdir $BINARY_FW_PATH +QT_PLUGIN_PATH="$APPLICATION/Contents/plugins/imageformats" +mkdir -p $QT_PLUGIN_PATH # integrate SDL-frameworks into binary cp -R $SDL_FW_PATH/SDL.framework $BINARY_FW_PATH @@ -31,7 +33,8 @@ cp -R $SDL_FW_PATH/SDL_mixer.framework $BINARY_FW_PATH # integrate Qt-frameworks into binary if [ "$1" != "--without-qt" ] ; then - + cp /Developer/Applications/Qt/plugins/imageformats/libqgif.dylib $QT_PLUGIN_PATH + cp /Developer/Applications/Qt/plugins/imageformats/libqjpeg.dylib $QT_PLUGIN_PATH cp -R $QT_FW_PATH/QtCore.framework $BINARY_FW_PATH cp -R $QT_FW_PATH/QtGui.framework $BINARY_FW_PATH diff --git a/src/pokerth.cpp b/src/pokerth.cpp index 5fe1db02..c4528dc8 100755 --- a/src/pokerth.cpp +++ b/src/pokerth.cpp @@ -113,6 +113,13 @@ int main( int argc, char **argv ) a.installTranslator(&translator); +#ifdef __APPLE__ + QDir dir(QApplication::applicationDirPath()); + dir.cdUp(); + dir.cd("plugins"); + QApplication::setLibraryPaths(QStringList(dir.absolutePath())); +#endif + qRegisterMetaType("unsigned"); qRegisterMetaType >("boost::shared_ptr"); qRegisterMetaType("ServerStats");