From 7009cf96853c9f48a9394cc08cc44cb0098366da Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 18 Jul 2021 11:43:15 +0200 Subject: [PATCH] Created Compile and install on macOS using macports (markdown) --- ...ile-and-install-on-macOS-using-macports.md | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Compile-and-install-on-macOS-using-macports.md diff --git a/Compile-and-install-on-macOS-using-macports.md b/Compile-and-install-on-macOS-using-macports.md new file mode 100644 index 0000000..6c85608 --- /dev/null +++ b/Compile-and-install-on-macOS-using-macports.md @@ -0,0 +1,38 @@ +macports does not currently have Qt 6 in their repository, so you need to compile with Qt 5 instead. + +First install xcode tools: + + xcode-select --install + +Download and install macports from: https://www.macports.org/install.php + +Prepare macports: + + port -v selfupdate + +Install dependencies through port: + + sudo port -N install glib2 pkgconfig cmake boost protobuf-cpp sqlite3 gnutls chromaprint fftw + sudo port -N install qt5-qtbase qt5-qttools qt5-sqlite-plugin + sudo port -N install gstreamer1 gstreamer1-gst-plugins-base gstreamer1-gst-plugins-good gstreamer1-gst-plugins-bad gstreamer1-gst-plugins-ugly gstreamer1-gst-libav + sudo port -N install libcdio libmtp + +Install create-dmg: + + sudo port -N install npm7 + sudo npm install --global create-dmg + +Get code, compile and create DMG: + + git clone https://github.com/strawberrymusicplayer/strawberry + cd strawberry + mkdir build + cd build + cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=/opt/local/lib/cmake -DBUILD_WITH_QT5=ON -DUSE_BUNDLE=ON -DENABLE_SPARKLE=OFF + make -j$(nproc) + make install + make dmg + +Install: + +To install, either open the DMG, drag Strawberry over to Applications, or manually copy the strawberry.app folder over to /Applications/