[erlang-questions] 19.0 vs wx on a mac
Dan Gudmundsson
dangud@REDACTED
Mon Jul 4 10:18:07 CEST 2016
wxWidgets-3.0.2 should work out of the box.
If you use wxWidgets-3.1 you need to compile wxWidgets with
--enable-compat28
On Sun, Jul 3, 2016 at 7:44 AM Felix Gallo <felixgallo@REDACTED> wrote:
> With a bog standard wx 3.0 installation that had worked for the 17 and 18
> series on a mac and hadn't changed for about a year, I was able to compile
> a wx-aware 19.0, but running observer caused obscure wx crashes when I
> clicked on any buttons.
>
> I figured maybe, since the release notes mention wx 3.1, that the
> HOWTO/INSTALL.md doc hadn't been updated, and so I tried to install wx
> 3.1.0 and compile with that. However, the wx application refuses to
> compile, because in its config.log we see:
>
> conftest.cc:54:33: error: no matching constructor for initialization of
> 'wxGLCanvas'
> wxGLCanvas * bar = new wxGLCanvas((wxWindow *)
> NULL, -1,
> ^
> ~~~~~~~~~~~~~~~~~~~~~~
> /usr/local/include/wx-3.1/wx/osx/glcanvas.h:69:5: note: candidate
> constructor not viable: no known conversion from 'const wxPoint' to 'const
> int *' for 3rd argument
> wxGLCanvas(wxWindow *parent,
> ^
> /usr/local/include/wx-3.1/wx/osx/glcanvas.h:60:5: note: candidate
> constructor not viable: no known conversion from 'int' to 'const
> wxGLAttributes' for 2nd argument
> ...
>
> which results in a failure to link, and so wx is skipped.
>
> That looks like the configure script is not wx-3.1 aware or something of
> that nature, so I'm now backpedalling to 3.0.0.
>
> Is anyone aware of the proper combination of sigils, incantations, and
> cargo cult mumbo jumbo necessary to properly compile a wx-aware 19.0 on a
> mac in such a way that the resulting wx doesn't crash?
>
> F.
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160704/c01938d8/attachment.htm>
More information about the erlang-questions
mailing list