build using libs installed with brew

This commit is contained in:
Johannes Pohl 2016-09-21 17:03:20 +02:00
parent 9ad33a066b
commit f423bc0fc0
2 changed files with 4 additions and 13 deletions

View file

@ -36,8 +36,8 @@ else ifeq ($(TARGET), MACOS)
CXX = /usr/bin/g++
STRIP = strip
CXXFLAGS += -DHAS_TREMOR -DHAS_COREAUDIO -DFREEBSD -DMACOS -DHAS_BONJOUR -I/usr/local/include -Wno-unused-local-typedef -Wno-deprecated
LDFLAGS = -logg -lvorbisidec -lFLAC -L/usr/local/lib -framework AudioToolbox -framework CoreFoundation
CXXFLAGS += -DHAS_OGG -DHAS_COREAUDIO -DFREEBSD -DMACOS -DHAS_BONJOUR -I/usr/local/include -Wno-unused-local-typedef -Wno-deprecated
LDFLAGS = -logg -lvorbis -lFLAC -L/usr/local/lib -framework AudioToolbox -framework CoreFoundation
OBJ += player/coreAudioPlayer.o browseBonjour.o
else

View file

@ -105,20 +105,11 @@ Start and stop the server with `sudo service snapserver start` and `sudo service
*Warning: macOS support is experimental*
Install Xcode from the App Store
Install the build tools and required libs:
$ brew install autoconf automake pkg-config libtool
###Build Snapclient
Build the external libs:
Install the required libs:
$ cd <snapcast dir>/externals/flac
$ ./autogen.sh
$ ./configure
$ make
$ make install
Repeat for `ogg` and `tremor`
$ brew install flac libvorbis
`cd` into the Snapclient src-root directory: