Guide to building sioyek from HEAD on macOS arm64 (2026) #1602
milan-panta
started this conversation in
General
Replies: 2 comments
-
|
Thanks for this! I just found this app and couldn't work out how to install a recent version |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
If need to run sioyek from command line and pass parameter, put something like the following into #!/bin/sh
exec /Applications/sioyek.app/Contents/MacOS/sioyek "$@" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The last official macOS release is v2.0.0 from December 2022, but the
developmentbranch has had steady commits since then. I got a working build on Apple Silicon and wanted to write up the steps since the existing guides (especially #1031) are either incomplete or out of date.Tested on: macOS 26.4, Apple Silicon (arm64), Qt 6.11.0 from Homebrew.
Prerequisites
You do not need
qt@5,freeglut,mesa,cmake, orharfbuzz. The build script's comment about those is outdated -- Qt6 on macOS uses Metal and doesn't need any of that. MuPDF bundles its own harfbuzz.Steps
1. Clone with submodules
MuPDF and zlib are both submodules so
--recursiveis required:2. Build MuPDF
3. Configure with Qt6
Patch the macOS deployment target and run qmake:
4. Build
make -j$(sysctl -n hw.ncpu)5. Assemble the app bundle
rm -rf build && mkdir build mv sioyek.app build/ cp -r pdf_viewer/shaders build/sioyek.app/Contents/MacOS/shaders cp pdf_viewer/prefs.config build/sioyek.app/Contents/MacOS/prefs.config cp pdf_viewer/prefs_user.config build/sioyek.app/Contents/MacOS/prefs_user.config cp pdf_viewer/keys.config build/sioyek.app/Contents/MacOS/keys.config cp pdf_viewer/keys_user.config build/sioyek.app/Contents/MacOS/keys_user.config cp tutorial.pdf build/sioyek.app/Contents/MacOS/tutorial.pdf6. Embed PATH into Info.plist
This lets sioyek find shell utilities when launched from the Dock:
7. Bundle Qt frameworks
You will see a few "Cannot resolve rpath" warnings for
QtPdfandQtVirtualKeyboard. These are optional Qt modules that sioyek doesn't use and can be ignored.8. Codesign and install
Result
The resulting app is fully self-contained (around 135 MB with all Qt frameworks bundled) and passes codesign verification.
Summary
Beta Was this translation helpful? Give feedback.
All reactions