Updated Compile and install on macOS (markdown)

Jonas Kvinge 2021-04-10 03:56:48 +02:00
parent 625dc9bbb4
commit 4bf4296ae3
1 changed files with 10 additions and 2 deletions

@ -16,10 +16,18 @@ Install sparkle:
brew install --cask sparkle
sudo ln -s /usr/local/Caskroom/sparkle/$(ls /usr/local/Caskroom/sparkle | head -n1) /usr/local/opt/sparkle
Set environment variables:
Set environment variables (Intel x86_64):
export Qt6_DIR=/usr/local/opt/qt6/lib/cmake
export Qt6LinguistTools_DIR=/usr/local/opt/qt6/lib/cmake/Qt6LinguistTools
Set environment variables (Apple Silicon):
export Qt6_DIR=/opt/homebrew/opt/qt6/lib/cmake
export Qt6LinguistTools_DIR=/opt/homebrew/opt/qt6/lib/cmake/Qt6LinguistTools
Set GStreamer environment variables:
export GIO_EXTRA_MODULES=/usr/local/lib/gio/modules
export GST_PLUGIN_SCANNER=/usr/local/opt/gstreamer/libexec/gstreamer-1.0/gst-plugin-scanner
export GST_PLUGIN_PATH=/usr/local/lib/gstreamer-1.0
@ -30,7 +38,7 @@ Get code, compile and create DMG:
cd strawberry
mkdir build
cd build
cmake .. -DBUILD_WITH_QT6=ON -DUSE_BUNDLE=ON
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_QT6=ON -DUSE_BUNDLE=ON
make -j$(nproc)
make install
make dmg