Skip to content

Fix macOS Apple Silicon build and CPack packaging - #1753

Open
roberto-cito wants to merge 1 commit into
MiKTeX:nextfrom
roberto-cito:next
Open

Fix macOS Apple Silicon build and CPack packaging#1753
roberto-cito wants to merge 1 commit into
MiKTeX:nextfrom
roberto-cito:next

Conversation

@roberto-cito

@roberto-cito roberto-cito commented Aug 3, 2026

Copy link
Copy Markdown

This commit addresses several issues preventing MiKTeX from building and packaging correctly on modern macOS (ARM64) with Homebrew:

  • CMakeLists.txt: Raised CMAKE_OSX_DEPLOYMENT_TARGET to 10.15 (required for std::filesystem) and added auto-detection for Homebrew's icu4c.
  • Cairo: Added CAIRO_HAS_PTHREAD and HAVE_CTIME_R to fix thread safety and compilation errors on macOS.
  • Qt/Console: Added /opt/homebrew library paths so fixup_bundle can resolve Qt, Poppler, and ICU on Apple Silicon.
  • InstallQtPlugin: Use REALPATH to prevent CPack from copying broken relative symlinks.
  • Codesign: Explicitly sign all .dylib files in non-standard directories (like miktex-lib) during packaging to prevent SIGKILL (Code Signature Invalid) crashes on ARM64 Macs.

Resolves #1742

This commit addresses several issues preventing MiKTeX from building and packaging correctly on modern macOS (ARM64) with Homebrew:
- CMakeLists.txt: Raised CMAKE_OSX_DEPLOYMENT_TARGET to 10.15 (required for std::filesystem) and added auto-detection for Homebrew's icu4c.
- Cairo: Added CAIRO_HAS_PTHREAD and HAVE_CTIME_R to fix thread safety and compilation errors on macOS.
- Qt/Console: Added /opt/homebrew library paths so fixup_bundle can resolve Qt, Poppler, and ICU on Apple Silicon.
- InstallQtPlugin: Use REALPATH to prevent CPack from copying broken relative symlinks.
- Codesign: Explicitly sign all .dylib files in non-standard directories (like miktex-lib) during packaging to prevent SIGKILL (Code Signature Invalid) crashes on ARM64 Macs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MikTeX on Silicon

1 participant