From a34aa88d6234c94a7d574649a8dd8d8afdbb6eb9 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 27 Oct 2024 12:49:51 +1300 Subject: [PATCH] doc/README: macOS support notes for Homebrew --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5d93176a..098e68b7 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ These bindings were newly started in August 2024. The bindings are functional fo |Linux|x86_64|Static or Dynamic (.so)|✅ Works |Windows|x86_64|Static or Dynamic (.dll)|✅ Works |Android|ARM64|Dynamic (bundled in .apk package)|✅ Works -|macOS|x86_64|Static or Dynamic (.dylib)|Should work, [not tested](https://github.com/mappu/miqt/issues/2) -|macOS|ARM64|Static or Dynamic (.dylib)|Should work, [not tested](https://github.com/mappu/miqt/issues/2) +|macOS|x86_64|Static or Dynamic (.dylib)|✅ Works +|macOS|ARM64|Static or Dynamic (.dylib)|Should work, not tested ## License @@ -216,6 +216,22 @@ See FAQ Q3 for advice about docker performance. To add an icon and other properties to the .exe, you can use [the go-winres tool](https://github.com/tc-hib/go-winres). See the `examples/windowsmanifest` for details. +### macOS (Homebrew) + +*Tested with macOS 12.6 "Monterey" x86_64 / Go 1.23 / Qt 5.15 / Apple Clang 14.0* + +For dynamic linking: + +```bash +xcode-select --install +brew install golang +brew install pkg-config +brew install qt@5 +go build -ldflags '-s -w' +``` + +Installing `qt@5` from [Homebrew](https://brew.sh/) may be very slow if Homebrew chooses to do a from-source build instead of a binary Bottle build, particularly owing to QtWebEngine (Chromium). + ### Android (Docker) *Tested with Raymii Qt 5.15 / Android SDK 31 / Android NDK 22*