![]() Refer to strawberry build instructions at github. Look for the line that says 'build-macos-qt5'. Link to the line as of this writing:ĭO NOT 'brew install qt5' in the next step. ![]() Set the active developer directory to Xcode 10.1:Īfter the qt5 build succeeds, go back to Xclode 9.4.1: It will be performed in a later step.ĭo the brew-installs listed in ccpp.yml/build-macos-qt5.īrew install pkgconfig. $ xcode-select -s /Application/Xcode-9.4.1.app SKIP anything in ccpp.yml related to Sparkle. (We end up in ~/Documents/strawberry/build): $ git clone git:///strawberrymusicplayer/strawberry -branch 0.9.3 Get the strawberry code (to ~/Documents): We have to patch some Qt6-specific code to build with Qt5. $ mkdir strawberry.app/Contents/Frameworks $ sed -i '.bak' '/Sparkle/s/^/#/' CMakeFiles/dmg.dir/build.makeīefore the final step, we have to preemptively copy a dylib that doesn't get copied in 'make dmg': Or more simply (assumes 'Sparkle' is a case-sensitive match): We have to patch a file that refers to Sparkle, which we are not using:Īnd comment out the line that copies amework DBUILD_WITH_QT5=ON -DBUILD_WERROR=ON -DUSE_BUNDLE=ON -DSPARKLE=OFF -DCMAKE_PREFIX_PATH=/usr/local/opt/qt5/lib/cmake $ export GST_PLUGIN_PATH=/usr/local/lib/gstreamer-1.0 $ export GST_PLUGIN_SCANNER=/usr/local/opt/gstreamer/libexec/gstreamer-1.0/gst-plugin-scanner $ export GIO_EXTRA_MODULES=/usr/local/lib/gio/modules $ export Qt5LinguistTools_DIR=/usr/local/opt/qt5/lib/cmake/Qt5LinguistTools $ export Qt5_DIR=/usr/local/opt/qt5/lib/cmake $ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig $ sed -i '.bak' 's/QLibraryInfo::path/QLibraryInfo::location/g'. $ cp /usr/local/opt/icu4c/lib/libicudata.68.dylib strawberry.app/Contents/FrameworksĮt voila! There should be a strawberry-0.9.3-highsierra-x86_64.dmg in the current (build) directory. ![]() There are lots of ways to accomplish these tasks. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |