0 Compiling from source (macOS)
Arseniy Pavlenko edited this page 2022-11-18 11:26:27 +02:00
xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install glib pkgconfig cmake boost protobuf protobuf-c qt gettext gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav chromaprint glew 
# cryptopp isn't available on brew anymore
brew tap tomahawk-player/homebrew-tomahawkqt5
brew install tomahawk-player/homebrew-tomahawkqt5/liblastfm
sudo ln -s /usr/local/include/lastfm /usr/local/include/lastfm5
export Qt5_DIR=/usr/local/opt/qt5/lib/cmake
# M1 Path
# export Qt5_DIR=/opt/homebrew/opt/qt5/lib/cmake
# if you have brew's qt installed (now version 6 is default), you will need to uninstall qt6, otherwise it's failed `brew uninstall qt`

export Qt5LinguistTools_DIR=/usr/local/Cellar/qt/5.11.2/lib/cmake/Qt5LinguistTools
export GST_SCANNER_PATH=/usr/local/Cellar/gstreamer/1.14.4/libexec/gstreamer-1.0/gst-plugin-scanner
export GST_PLUGIN_PATH=/usr/local/lib/gstreamer-1.0
export PATH="/usr/local/opt/gettext/bin:$PATH"

git clone https://github.com/clementine-player/Clementine
cd Clementine
cd bin
cmake ..
make -j8