Skip to content

Compile and install on macOS

Jonas Kvinge edited this page Jun 11, 2019 · 6 revisions

Compile and install on macOs

Strawberry currently compiles and runs on macOS

First install xcode tools and brew package manager:

xcode-select --install

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install all dependencies through brew:

brew install glib pkgconfig cmake boost protobuf protobuf-c qt chromaprint

brew install sqlite --with-fts

brew install gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly

brew install libcdio libmtp libimobiledevice libplist

export Qt5_DIR=/usr/local/opt/qt5/lib/cmake

export Qt5LinguistTools_DIR=/usr/local/Cellar/qt/$(ls /usr/local/Cellar/qt | head -n1)/lib/cmake/Qt5LinguistTools;

export PATH="/usr/local/opt/gettext/bin:$PATH";

export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/$(ls /usr/local/Cellar/libffi | head -n1)/lib/pkgconfig/:$PKG_CONFIG_PATH;

export GST_SCANNER_PATH=/usr/local/Cellar/gstreamer/$(ls /usr/local/Cellar/gstreamer | head -n1)/libexec/gstreamer-1.0/gst-plugin-scanner

export GST_PLUGIN_PATH=/usr/local/lib/gstreamer-1.0

git clone https://github.com/jonaski/strawberry

cd strawberry

mkdir build

cd build

cmake .. -DUSE_BUNDLE=OFF

make -j8

make install

Then manually copy the strawberry.app folder over to /Applications/

You can’t perform that action at this time.