-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile with wx on mac os x mojave #95
Comments
You may need to tell it where wx is on your system. I've had trouble with this in the past with this, and it turned out to be something trivial. Unfortunately I don't have anything written down in my notes. Maybe helpful? kerl/kerl#294 |
@mspanc Did you ever find a solution for this? |
Hey @mspanc Looking at these Erlang docs about compiling wx with wxWidgets, it looks like Looking at the wx changelog for the upcoming OTP 22, it looks like better support is coming, maybe that will resolve the issues without needing a specially compiled version. |
Updating
|
Closing this issue because I am not aware of any problems with asdf-erlang itself. If there is anything we can do improve asdf-erlang please open a new issue. |
To add a final note, to get proper Dark Mode support on Mojave or later, a build of wxMac 3.1.2 or 3.1.3 is needed (the default 3.0.4 version in Homebrew will work but tools like Observer look broken when Dark Mode is enabled). On Catalina a working wxMac 3.1.3 install of Erlang 22.2.8 can be obtained by doing the following: $ brew edit wxmac # Use patch below
$ rm -rf ~/.asdf/plugins/erlang/kerl-home/builds/asdf_22.2.8 # if you have tried building this version previously
$ brew install wxmac --build-from-source
$ asdf install erlang 22.2.8 Patch for Homebrew 2.2.15-12-ga5a5a1a and default wxMac 3.0.5: diff --git a/Formula/wxmac.rb b/Formula/wxmac.rb
index d80b02f9e..9c68e7363 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/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"
+ sha256 "fffc1d34dac54ff7008df327907984b156c50cff5a2f36ee3da6052744ab554a"
head "https://github.com/wxWidgets/wxWidgets.git"
bottle do
@@ -19,6 +19,7 @@ class Wxmac < Formula
def install
args = [
"--prefix=#{prefix}",
+ "--enable-compat28",
"--enable-clipboard",
"--enable-controls",
"--enable-dataviewctrl", (edit: Updated to patch match latest Homebrew version, thanks to @gregors!) |
Changes to use 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", |
Successfully build OTP 23.3.4 with the Dark Mode support on macOS 10.15.7 Catalina, finally.
Thanks for all the tips! |
See https://erlang.org/doc/installation_guide/INSTALL.html#Advanced-configuration-and-build-of-ErlangOTP_Building_Building-with-wxErlang https://elixirforum.com/t/observer-start-crashes-erlang-vm/36875/18 https://stackoverflow.com/questions/67576487/fix-the-erlang-observer-on-osx-with-dark-mode asdf-vm/asdf-erlang#95 asdf-vm/asdf-erlang#203
I am trying to build erlang on Mac OS X Mojave with wxWidgets but they are not recognized.
The text was updated successfully, but these errors were encountered: