[erlang-questions] compiling R14B02 with WX support on Ubuntu 11.04
Dan Gudmundsson
dgud@REDACTED
Mon May 16 11:37:07 CEST 2011
It seems to be a Ubuntu 11.04 problem with (proprietary) drivers.
In my case /usr/lib/libGL.so is linked to mesa/libGL.so and not to
nvidia-current/libGL.so
which erlang-wx uses for dynamically loading all functions and extensions.
But wxWidgets (and SDL) loads and creates the context with
nvidia-current/libGL so
two different GL implementations are used.
Link /usr/lib/libGL.so to point to the correct nvidia-current/libGL.so
and it works.
IMHO this is a bug in (atleast) the nvidia package in ubuntu 11.04.
I googled a bit and it seems other GL wrappers have the same problem
in 11.04, so maybe someone
should tell the ubuntu guys.
/Dan
2011/5/13 Cyryl Płotnicki-Chudyk <cyplo@REDACTED>:
> 2011/5/13 Boris Mühmer <boris.muehmer@REDACTED>:
>> Besides, could you check "wx:demo()", please?
>>
>> Especially the "gl" part... It crashes on my system.
>>
>> If it crashes on Your system as well, I would submit a bug report...
>>
>>
>
> works, except the gl part
> wchich crashes the whole emulator
>
> 1> wx:demo().
> {wx_ref,35,wxFrame,<0.34.0>}
> 2>
> (Erlang:24191): Gtk-WARNING **: gtk_widget_size_allocate(): attempt
> to allocate widget with width -5 and height 17
>
>
> (Erlang:24191):
> Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget
> with width -5 and height 17
>
> (Erlang:24191): Gtk-WARNING **:
> gtk_widget_size_allocate(): attempt to allocate widget with width -5
> and height 17
>
>
> Segmentation fault
>
>
> --
> cyryl
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list