-
Notifications
You must be signed in to change notification settings - Fork 40
OS X Deployment
athairus edited this page Jun 12, 2016
·
2 revisions
- Make sure SDL2 is built for 10.7+
- Uninstall if necessary first
-
brew edit SDL2
- Add to
./configure
argsargs << "CFLAGS=-mmacosx-version-min=10.7"
- Add to
brew install SDL2 --build-from-source
- Grab source, extract
wget http://download.qt.io/official_releases/qt/5.6/5.6.0/single/qt-everywhere-opensource-src-5.6.0.tar.gz
tar -xf qt-everywhere-opensource-src-5.6.0.tar.gz
- Build static Qt
- Options
-prefix $PWD/../prefix/
-release
-opensource -confirm-license
-static
-qt-zlib
-qt-libpng
-qt-libjpeg
-qt-freetype
-nomake examples -nomake tests
- Maybe
-no-rpath
-force-asserts
./configure -...
make -j4
make install
- Options
- Set up static Qt kit in Qt Creator
- Tell it where
qmake
is
- Tell it where
- Build normally
- Copy
.dylibs
used by Phoenix to app bundle (see next step for paths) - Change hard-coded dylib paths to relative paths
install_name_tool -change /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib @executable_path/libSDL2-2.0.0.dylib ~/Projects/phoenix/build/osx-static-release/frontend/Phoenix.app/Contents/MacOS/Phoenix
install_name_tool -change /usr/local/opt/libsamplerate/lib/libsamplerate.0.dylib @executable_path/libsamplerate.0.dylib ~/Projects/phoenix/build/osx-static-release/frontend/Phoenix.app/Contents/MacOS/Phoenix
master
Branch
Build Guide (obsolete)