mattfara50

mattfara50

Mac and :observer.start - ERROR: Could not find 'wxe_driver.so'

I am new to Elixir, and am running on a Macbook Pro, Monterey 12.5. I am going through a course that uses :observer.start(). When I ran this in iex, I got this output:

iex(1)> :observer.start()

19:39:22.117 [error] ERROR: Could not find 'wxe_driver.so' in: /Users/matt.farabaugh/.asdf/installs/erlang/23.3.4.4/lib/wx-1.9.3.1/priv

{:error,
 {{:load_driver, 'No driver found'},
  [
    {:wxe_server, :start, 1, [file: 'wxe_server.erl', line: 65]},
    {:wx, :new, 1, [file: 'wx.erl', line: 115]},
    {:observer_wx, :init, 1, [file: 'observer_wx.erl', line: 107]},
    {:wx_object, :init_it, 6, [file: 'wx_object.erl', line: 404]},
    {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 226]}
  ]}}

When I used asdf to reinstall erlang, I see a message related to wxwidgets:

 * wx             : wxWidgets was not compiled with --enable-compat28, wx will NOT be useable
 * Can not link the wx driver, wx will NOT be useable

However, when I look at the Homebrew formula for wxwidgets, which is installed, I see that compat28 has a line like this:

"--enable-compat28",

So I tried reinstalling wxwidgets with the --build-from-source option, and then tried to reinstall erlang. I got a new error, with partial log below from ~/.asdf/plugins/erlang/kerl-home/builds/asdf_23.3.4.4/otp_build_23.3.4.4.log
:

=== Entering application wx
make[3]: Nothing to be done for `opt'.
 CXX    x86_64-apple-darwin21.6.0/wxe_funcs.o
 CXX    x86_64-apple-darwin21.6.0/wxe_events.o
 CXX    x86_64-apple-darwin21.6.0/wxe_init.o
 CC     x86_64-apple-darwin21.6.0/wxe_driver.o
 CC     x86_64-apple-darwin21.6.0/wxe_ps_init.o
 CXX    x86_64-apple-darwin21.6.0/wxe_main.o
 CXX    x86_64-apple-darwin21.6.0/wxe_impl.o
 CXX    x86_64-apple-darwin21.6.0/wxe_helpers.o
 CXX    x86_64-apple-darwin21.6.0/wxe_callback_impl.o
 CXX    x86_64-apple-darwin21.6.0/wxe_return.o
 CXX    x86_64-apple-darwin21.6.0/wxe_gl.o
 CXX    x86_64-apple-darwin21.6.0/gl_funcs.o
 CXX    x86_64-apple-darwin21.6.0/egl_impl.o
In file included from gen/wxe_init.cpp:21:
In file included from /usr/local/include/wx-3.2/wx/wx.h:24:
In file included from /usr/local/include/wx-3.2/wx/event.h:22:
In file included from /usr/local/include/wx-3.2/wx/cursor.h:75:
/usr/local/include/wx-3.2/wx/utils.h:749:35: warning: default member initializer for non-static data member is a C++11 extens
ion [-Wc++11-extensions]
    wxEventLoop* m_modalEventLoop = NULL;
                                  ^
In file included from wxe_impl.cpp:25:
In file included from /usr/local/include/wx-3.2/wx/wx.h:24:
In file included from /usr/local/include/wx-3.2/wx/event.h:22:
In file included from /usr/local/include/wx-3.2/wx/cursor.h:75:
/usr/local/include/wx-3.2/wx/utils.h:749:35: warning: default member initializer for non-static data member is a C++11 extens
ion [-Wc++11-extensions]
    wxEventLoop* m_modalEventLoop = NULL;
                                  ^
In file included from gen/wxe_events.cpp:23:
In file included from /usr/local/include/wx-3.2/wx/wx.h:24:
In file included from /usr/local/include/wx-3.2/wx/event.h:22:
In file included from /usr/local/include/wx-3.2/wx/cursor.h:75:
/usr/local/include/wx-3.2/wx/utils.h:749:35: warning: default member initializer for non-static data member is a C++11 extens
ion [-Wc++11-extensions]
    wxEventLoop* m_modalEventLoop = NULL;
                                  ^
In file included from wxe_impl.cpp:25:
In file included from /usr/local/include/wx-3.2/wx/wx.h:24:
In file included from /usr/local/include/wx-3.2/wx/event.h:22:
In file included from /usr/local/include/wx-3.2/wx/cursor.h:75:
/usr/local/include/wx-3.2/wx/utils.h:749:35: warning: default member initializer for non-static data member is a C++11 extens
ion [-Wc++11-extensions]
    wxEventLoop* m_modalEventLoop = NULL;
                                  ^
In file included from gen/wxe_events.cpp:23:
In file included from /usr/local/include/wx-3.2/wx/wx.h:24:
In file included from /usr/local/include/wx-3.2/wx/event.h:22:
In file included from /usr/local/include/wx-3.2/wx/cursor.h:75:
/usr/local/include/wx-3.2/wx/utils.h:749:35: warning: default member initializer for non-static data member is a C++11 extens
ion [-Wc++11-extensions]
    wxEventLoop* m_modalEventLoop = NULL;
                                  ^
In file included from wxe_return.cpp:21:
In file included from ./wxe_return.h:31:
In file included from ./wxe_impl.h:29:
In file included from /usr/local/include/wx-3.2/wx/glcanvas.h:18:
In file included from /usr/local/include/wx-3.2/wx/app.h:19:
In file included from /usr/local/include/wx-3.2/wx/event.h:22:
In file included from /usr/local/include/wx-3.2/wx/cursor.h:75:
/usr/local/include/wx-3.2/wx/utils.h:749:35: warning: default member initializer for non-static data member is a C++11 extens
ion [-Wc++11-extensions]
    wxEventLoop* m_modalEventLoop = NULL;
                                  ^
In file included from wxe_helpers.cpp:21:
In file included from /usr/local/include/wx-3.2/wx/wx.h:24:
In file included from /usr/local/include/wx-3.2/wx/event.h:22:
In file included from /usr/local/include/wx-3.2/wx/cursor.h:75:
/usr/local/include/wx-3.2/wx/utils.h:749:35: warning: default member initializer for non-static data member is a C++11 extens
ion [-Wc++11-extensions]
    wxEventLoop* m_modalEventLoop = NULL;
                                  ^
In file included from wxe_gl.cpp:28:
In file included from ./wxe_impl.h:29:
In file included from /usr/local/include/wx-3.2/wx/glcanvas.h:18:
In file included from /usr/local/include/wx-3.2/wx/app.h:19:
In file included from /usr/local/include/wx-3.2/wx/event.h:22:
In file included from /usr/local/include/wx-3.2/wx/cursor.h:75:
/usr/local/include/wx-3.2/wx/utils.h:749:35: warning: default member initializer for non-static data member is a C++11 extens
ion [-Wc++11-extensions]
    wxEventLoop* m_modalEventLoop = NULL;
                                  ^
In file included from wxe_main.cpp:25:
In file included from ./wxe_impl.h:29:
In file included from /usr/local/include/wx-3.2/wx/glcanvas.h:18:
In file included from /usr/local/include/wx-3.2/wx/app.h:19:
In file included from /usr/local/include/wx-3.2/wx/event.h:22:
In file included from /usr/local/include/wx-3.2/wx/cursor.h:75:
/usr/local/include/wx-3.2/wx/utils.h:749:35: warning: default member initializer for non-static data member is a C++11 extens
ion [-Wc++11-extensions]
    wxEventLoop* m_modalEventLoop = NULL;
                                  ^
In file included from gen/wxe_funcs.cpp:23:
In file included from /usr/local/include/wx-3.2/wx/wx.h:24:
In file included from /usr/local/include/wx-3.2/wx/event.h:22:
In file included from /usr/local/include/wx-3.2/wx/cursor.h:75:
/usr/local/include/wx-3.2/wx/utils.h:749:35: warning: default member initializer for non-static data member is a C++11 extens
ion [-Wc++11-extensions]
    wxEventLoop* m_modalEventLoop = NULL;
                                  ^
In file included from wxe_callback_impl.cpp:21:
In file included from /usr/local/include/wx-3.2/wx/wx.h:24:
In file included from /usr/local/include/wx-3.2/wx/event.h:22:
In file included from /usr/local/include/wx-3.2/wx/cursor.h:75:
/usr/local/include/wx-3.2/wx/utils.h:749:35: warning: default member initializer for non-static data member is a C++11 extens
ion [-Wc++11-extensions]
    wxEventLoop* m_modalEventLoop = NULL;
                                  ^
 CC     ../priv/x86_64-apple-darwin21.6.0/erl_gl.so
1 warning generated.
1 warning generated.
1 warning generated.
1 warning generated.
1 warning generated.
1 warning generated.
gen/wxe_funcs.cpp:8289:28: error: taking the address of a temporary object of type 'wxBitmap' [-Waddress-of-temporary]
 const wxBitmap * Result = &This->GetBitmap();
                           ^~~~~~~~~~~~~~~~~~
gen/wxe_funcs.cpp:8495:57: error: call to member function 'AddTool' is ambiguous
 wxToolBarToolBase * Result = (wxToolBarToolBase*)This->AddTool(*toolid,label,*bitmap,shortHelp,kind);
                                                  ~~~~~~^~~~~~~
/usr/local/include/wx-3.2/wx/tbarbase.h:311:24: note: candidate function
    wxToolBarToolBase *AddTool(int toolid,
                       ^
/usr/local/include/wx-3.2/wx/tbarbase.h:527:24: note: candidate function
    wxToolBarToolBase *AddTool(int toolid,
                       ^
1 warning generated.
1 warning generated.
1 warning and 2 errors generated.
make[3]: *** [x86_64-apple-darwin21.6.0/wxe_funcs.o] Error 1
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2

Please keep it simple. I’m new to Macs generally.

Thanks

Most Liked

nathanl

nathanl

I just had this error with Erlang 25.1.1 and Elixir 1.14.0-rc.1-otp-25 on MacOS Monterey 12.3. For me, the fix was:

asdf uninstall erlang 25.1.1
brew install wxwidgets
asdf install erlang 25.1.1

I found this from this post about Ubuntu, leading to this issue comment, leading to these instructions for setting up asdf-erlang.

Where Next?

Popular in Questions Top

Tee
can someone please explain to me how Enum.reduce works with maps
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
pgiesin
This should be a simple problem but I just can’t seem to figure it out. I have a standalone Elixir app that won’t find the database. Dep...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
LegitStack
I’m trying to make a websocket server in Phoenix or raw Elixir. I heard about gun, I think I could use cowboy, but since I’m not that sma...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New

Other popular topics Top

lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
vac
Hi, I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
stefanluptak
Hello everybody, usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

We're in Beta

About us Mission Statement