Skip to content

Commit

Permalink
fix jpeg library link
Browse files Browse the repository at this point in the history
  • Loading branch information
such committed Nov 17, 2012
1 parent 44228af commit 4cd48d0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build-osx.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
#!/bin/sh

#make clean
qmake
make
macdeployqt CirclePackings.app
sudo rm -Rf CirclePackings.app
make -j8
sudo macdeployqt CirclePackings.app
mkdir -p CirclePackings.app/Contents/plugins/imageformats
cp -R /usr/local/Cellar/qt/4.8.2/plugins/imageformats/libqjpeg.dylib CirclePackings.app/Contents/plugins/imageformats

install_name_tool -change /usr/local/Cellar/qt/4.8.2/lib/QtGui.framework/Versions/4/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/4/QtGui CirclePackings.app/Contents/plugins/imageformats/libqjpeg.dylib
install_name_tool -change /usr/local/Cellar/qt/4.8.2/lib/QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4/QtCore CirclePackings.app/Contents/plugins/imageformats/libqjpeg.dylib
ACTUAL_SIZE=`du -sm "CirclePackings.app" | awk '{print $1}'`
DISK_IMAGE_SIZE=$(expr $ACTUAL_SIZE + 20)
VOLUME_NAME="CirclePackings"
Expand Down

0 comments on commit 4cd48d0

Please sign in to comment.