Skip to content

Special notice for macOS

wangqr edited this page Jun 7, 2020 · 16 revisions

This page contains some issues I've met when building Aegisub on macos.

Installing the dependencies with homebrew

To install the dependencies with homebrew, run

brew install autoconf automake boost ffmpeg ffms2 fftw freetype fribidi gettext icu4c libass lua luarocks m4 pkg-config wxmac
brew install hunspell uchardet  # optional

Some packages are installed as keg-only. You need to either

Issue with wxOSX

The wxWidgets 3.0 has multiple bugs on macos. You will be able to build and run with wxWidgets 3.0.x provided by homebrew, but there will be glitches in the user interface. The most severe one I met was the wxSpinCtrl not showing up. This can be solved by upgrading wxWidgets to 3.1. After you have installed wxmac using homebrew, follow these steps to upgrade it:

  • Open /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/wxmac.rb with a text editor
  • Make the following changes:
diff --git a/Formula/wxmac.rb b/Formula/wxmac.rb
index d80b02f9e8..42af6fd624 100644
--- a/Formula/wxmac.rb
+++ b/Formula/wxmac.rb
@@ -1,10 +1,13 @@
 class Wxmac < Formula
   desc "Cross-platform C++ GUI toolkit (wxWidgets for macOS)"
   homepage "https://www.wxwidgets.org"
-  url "https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.5/wxWidgets-3.0.5.tar.bz2"
-  sha256 "8aacd56b462f42fb6e33b4d8f5d40be5abc3d3b41348ea968aa515cc8285d813"
+  url "https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.3/wxWidgets-3.1.3.tar.bz2"
   head "https://github.com/wxWidgets/wxWidgets.git"

+  patch do
+    url "https://github.com/wxWidgets/wxWidgets/commit/53c5ebedca8219fd2c6c7b505c49dfe202286f4c.patch"
+  end
+
   bottle do
     cellar :any
     sha256 "de27c768e8b52cbe84cb683a487f2fd2dce115aef7f5fb1f5f59c7362da4b5ca" => :catalina
  • Save and quit text editor
  • Upgrade by running brew reinstall --build-from-source wxmac

Additional build target on macOS

There are 2 additional build target for make on macOS.

  • make osx-bundle will create Aegisub.app in the same folder,
  • make osx-dmg will create a dmg for distribution.

Issue with freezing menubar

If you run src/aegisub from command line after build, the menubar may freeze, and clicking has no effect. This can be temporarily solved by switching to another window, and switch back to Aegisub window. This issue should not happen if you have build Aegisub.app and started the app from Finder.

Clone this wiki locally