ryerye

ryerye

Erlang build error related to wxwidgets

I am on a Macbook M1 chip running Sequoia 15.7.4. I want to be able to use “observer” from Elixir. I installed wxwidgets with --enable-compat30. That installed fine and I can run wx-config as expected. When I use “asdf” to install Erlang I get the following errors:

gen/wxe_init.cpp:1311:78: error: use of undeclared identifier 'wxSTC_VISUALPROLOG_STRING_VERBATIM_EOL'
 1311 |     { WXE_ATOM_define, "wxSTC_VISUALPROLOG_STRING_VERBATIM_EOL", rt.make_int(wxSTC_VISUALPROLOG_STRING_VERBATIM_EOL) },
      |                                                                              ^
gen/wxe_init.cpp:1312:82: error: use of undeclared identifier 'wxSTC_VISUALPROLOG_STRING_VERBATIM_SPECIAL'
 1312 |     { WXE_ATOM_define, "wxSTC_VISUALPROLOG_STRING_VERBATIM_SPECIAL", rt.make_int(wxSTC_VISUALPROLOG_STRING_VERBATIM_SPECIAL) },
      |                                                                                  ^
gen/wxe_init.cpp:1313:74: error: use of undeclared identifier 'wxSTC_VISUALPROLOG_STRING_VERBATIM'
 1313 |     { WXE_ATOM_define, "wxSTC_VISUALPROLOG_STRING_VERBATIM", rt.make_int(wxSTC_VISUALPROLOG_STRING_VERBATIM) },
      |                                                                          ^
gen/wxe_init.cpp:1314:74: error: use of undeclared identifier 'wxSTC_VISUALPROLOG_STRING_EOL_OPEN'
 1314 |     { WXE_ATOM_define, "wxSTC_VISUALPROLOG_STRING_EOL_OPEN", rt.make_int(wxSTC_VISUALPROLOG_STRING_EOL_OPEN) },
      |                                                                          ^
gen/wxe_init.cpp:1318:81: error: use of undeclared identifier 'wxSTC_VISUALPROLOG_CHARACTER_ESCAPE_ERROR'
 1318 |     { WXE_ATOM_define, "wxSTC_VISUALPROLOG_CHARACTER_ESCAPE_ERROR", rt.make_int(wxSTC_VISUALPROLOG_CHARACTER_ESCAPE_ERROR) },
      |                                                                                 ^
gen/wxe_init.cpp:1319:77: error: use of undeclared identifier 'wxSTC_VISUALPROLOG_CHARACTER_TOO_MANY'
 1319 |     { WXE_ATOM_define, "wxSTC_VISUALPROLOG_CHARACTER_TOO_MANY", rt.make_int(wxSTC_VISUALPROLOG_CHARACTER_TOO_MANY) },
      |                                                                             ^
gen/wxe_init.cpp:1320:68: error: use of undeclared identifier 'wxSTC_VISUALPROLOG_CHARACTER'
 1320 |     { WXE_ATOM_define, "wxSTC_VISUALPROLOG_CHARACTER", rt.make_int(wxSTC_VISUALPROLOG_CHARACTER) },
      |                                                                    ^
gen/wxe_init.cpp:2434:55: error: use of undeclared identifier 'wxSTC_CSS_MEDIA'
 2434 |     { WXE_ATOM_define, "wxSTC_CSS_MEDIA", rt.make_int(wxSTC_CSS_MEDIA) },
      |                                                       ^
gen/wxe_wrapper_5.cpp:6950:3: warning: expression result unused [-Wunused-value]
 6950 |   wxString(title_bin.data, wxConvUTF8, title_bin.size);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/wxe_init.cpp:7177:18: error: invalid application of 'sizeof' to an incomplete type 'wxe_defs[]'
 7177 |   int sz = sizeof(defs) / sizeof(defs[0]);

I have tried installing different versions of Erlang built wxwidgets from source and lots of other thrashing about. I Does anyone have any insight on this? Thanks.

Marked As Solved

Also Liked

pennychase

pennychase

I gave up on installing erlang through asdf because the builds broke. Now I install Erlang from homebrew and set the erlang version to system with asdf. Within asdf, make sure to install elixir versions that correspond to the OTP of the homebrew erlang. Not ideal for using asdf as intended, but observer works :slight_smile:

Where Next?

Popular in Questions Top

Tee
can someone please explain to me how Enum.reduce works with maps
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
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
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call t...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New

Other popular topics Top

mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
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
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
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
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 52774 488
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
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

We're in Beta

About us Mission Statement