Skip to content

Instantly share code, notes, and snippets.

@jj1bdx
Created May 18, 2021 03:52
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jj1bdx/972ba8da566f7e2eb1ff209fe4865f68 to your computer and use it in GitHub Desktop.
Save jj1bdx/972ba8da566f7e2eb1ff209fe4865f68 to your computer and use it in GitHub Desktop.
Building Erlang/OTP 24.0 on macOS 10.15.7 with Homebrew

Building Erlang/OTP 24.0 on macOS 10.15.7 with Homebrew

Outstanding issues (workaround given here)

A solution of OTP 24.0 and autoconf/kerl issue

See erlang/otp#4821 (comment)

A solution of building latest wxmac for Erlang

See asdf-vm/asdf-erlang#95 (comment)

brew edit wxmac # Use patch below
brew install wxmac --build-from-source # you might need to upgrade instead of installing
# This will rebuild the erlang installation of Homebrew with --build-from-source

Source of the following patch: asdf-vm/asdf-erlang#95 (comment)

diff --git a/Formula/wxmac.rb b/Formula/wxmac.rb
index 463bb08543..94088c09e9 100644
--- a/Formula/wxmac.rb
+++ b/Formula/wxmac.rb
@@ -1,8 +1,8 @@
 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.1/wxWidgets-3.0.5.1.tar.bz2"
-  sha256 "440f6e73cf5afb2cbf9af10cec8da6cdd3d3998d527598a53db87099524ac807"
+  url "https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.4/wxWidgets-3.1.4.tar.bz2"
+  sha256 "3ca3a19a14b407d0cdda507a7930c2e84ae1c8e74f946e0144d2fa7d881f1a94"
   license "wxWindows"
   revision 1
   head "https://github.com/wxWidgets/wxWidgets.git"
@@ -32,6 +32,7 @@ class Wxmac < Formula
   def install
     args = [
       "--prefix=#{prefix}",
+      "--enable-compat28",
       "--enable-clipboard",
       "--enable-controls",
       "--enable-dataviewctrl",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment