[erlang-questions] compiling R14B02 with WX support on Ubuntu 11.04

Boris Mühmer boris.muehmer@REDACTED
Mon May 16 21:16:42 CEST 2011


You're right Dan, I just did some tests with the following drivers:
 - (default) nouveau
 - nvidia_current
 - nvidia_173
[- experimental 3D for nvidia cards (couldn't be installed on my system)]

Using "nouveau" gave the "best results" for the
"wx:demo()/gl-Example": it worked.
[I had a crash with the gauge-Example, but I couldn't reproduce it
(yet) to get a core dump.]

But the "nouveau" driver isn't the best for more complex OpenGL
applications/games (,yet).


  - boris


2011/5/16 Dan Gudmundsson <dgud@REDACTED>:
> 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