Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding section for Mac to COMPILE.md #156

Merged
merged 5 commits into from
Jan 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions COMPILE.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ mkdir build && cd build
cmake .. -G "MSYS Makefiles" -DCMAKE_MAKE_PROGRAM="mingw32-make"
```

#### Mac OS X

```bash
brew install Assimp SDL2 SDL2_mixer TinyXML2 Bullet freeimage
cmake ./;
```

If you want to profile the source code pass `-DCMAKE_CXX_FLAGS=-pg` to cmake.

Expand All @@ -47,6 +53,8 @@ bugtracker https://github.com/GlPortal/glPortal/issues to report an issue.

If the command did not produce an error, you can build the binary by typing in:



### Building
#### Linux
```bash
Expand All @@ -58,6 +66,12 @@ make
mingw32-make
```

#### Mac OS X
```bash
make
```


### Running
If this produces no error you have built the binary and should be able to start GlPortal by typing in:
#### Linux
Expand All @@ -83,9 +97,16 @@ cp /mingw64/bin/{libLinearMath,SDL2{,_mixer},libtinyxml2,libgcc_s_seh-1,libstdc+
mingw32-make run
```


#### Mac OS X
```bash
make run
```

If you get errors, try to build GlPortal again. If you don't manage to fix the error, use the
bugtracker https://github.com/GlPortal/glPortal/issues or http://bugs.glportal.de to report what you did, and what error you got.


## Build with docker
Building with docker is still in early testing and not feature complete. It will make compiling easier in the future.
```bash
Expand Down