Skip to content

Commit

Permalink
What I needed to do to build on MacOS (alamminsalo#182)
Browse files Browse the repository at this point in the history
* What I needed to do to build on MacOS

* Add qmake linkage
  • Loading branch information
SCdF authored and alamminsalo committed Jun 21, 2017
1 parent 3a171a4 commit 0b206a2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,29 @@ qmake ../
make && sudo make install
```

## Building on MacOS

#### Install needed libraries and software

```
brew install qt mpv
brew link --force qt
```
You need to force link qt to get qmake. Note that this can cause problems with other make tools. For more information see `brew info qt`.

#### Get orion from github and install

```
git clone https://github.com/alamminsalo/orion
cd orion
mkdir build && cd build
qmake ../
make
```

There will now be an orion.app application in the build directory.


## Windows troubleshooting

You need Visual C++ 2015-runtime installed.
Expand Down
3 changes: 2 additions & 1 deletion orion.pro
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ mpv {

unix:!macx: LIBS += -lmpv
win32: LIBS += -L$$PWD/libs -lmpv
macx: LIBS += -L$$PWD/../../../../usr/local/Cellar/mpv/0.17.0/lib -lmpv
macx: LIBS += -L$$PWD/../../../../usr/local/Cellar/mpv/0.25.0/lib -lmpv
}

qtav {
Expand Down Expand Up @@ -171,6 +171,7 @@ macx: {

INCLUDEPATH += /System/Library/Frameworks/Foundation.framework/Versions/C/Headers
INCLUDEPATH += /System/Library/Frameworks/AppKit.framework/Versions/C/Headers
INCLUDEPATH += /usr/local/include
}

OBJECTIVE_SOURCES += \
Expand Down

0 comments on commit 0b206a2

Please sign in to comment.