fractorium/Data/BuildGuideMacOSX.md

65 lines
1.0 KiB
Markdown
Raw Normal View History

2016-03-15 23:40:02 -04:00
# Build Guide for Mac OS/X
2016-01-20 13:48:21 -05:00
Install Xcode from the App Store
Install Qt 5.4.2 (Note, newer versions of Qt up to and including 5.8 have a bug with drawing OpenGL lines)
Install [homebrew](http://brew.sh/).
2016-01-20 13:48:21 -05:00
Install `git` and clone the repository:
```
brew install git
2016-05-30 17:51:54 -04:00
git clone https://mfeemster@bitbucket.org/mfeemster/fractorium.git
2016-01-20 13:48:21 -05:00
```
Install the dependencies:
```
brew install qt5 tbb glm jpeg libpng glib libxml2
2016-01-20 13:48:21 -05:00
```
TODO: Confirm if `glib` and `libxml2` are actually needed.
Add the Qt `bin` folder to `PATH` to make `qmake` available. In
`~/.bash_profile` or `~/.bashrc`:
```
PATH=/usr/local/opt/qt5/bin:$PATH
export PATH
```
Obtain the source:
```
git clone https://mfeemster@bitbucket.org/mfeemster/fractorium.git
```
2016-01-20 13:48:21 -05:00
Compile the binary:
```
cd fractorium
qmake CONFIG+=release
2016-01-20 13:48:21 -05:00
make
```
Creating the app bundle:
```
cd archive
./build.sh
```
2016-01-20 13:48:21 -05:00
Run the binary from the release folder:
```
cd ..
2016-01-20 13:48:21 -05:00
cd Bin/release
./fractorium
```
Installing:
```
Open Fractorium.dmg and copy Fractorium.app to /Applications.
```