compiling R14B02 with WX support on Ubuntu 11.04

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

compiling R14B02 with WX support on Ubuntu 11.04

Cyryl Płotnicki-Chudyk
Hello there !
I have a problem compiling R14B02 on Ubuntu 11.04.
Despite having all wx packages installed the configure program still gives me

wx             : Can not link the wx driver, wx will NOT be useable

anyone already dealt with this ?

If not then I'll try to debug this and return to you with the answer.


--
cyryl
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: compiling R14B02 with WX support on Ubuntu 11.04

bsmr
Maybe have a look at:

    http://boris.muehmer.de/2011/05/07/installing-erlangotp-r14b02-on-ubuntu-11-04-from-source-tarball/

And compare it to what You have done so far.


  - boris


2011/5/13 Cyryl Płotnicki-Chudyk <[hidden email]>:

> Hello there !
> I have a problem compiling R14B02 on Ubuntu 11.04.
> Despite having all wx packages installed the configure program still gives me
>
> wx             : Can not link the wx driver, wx will NOT be useable
>
> anyone already dealt with this ?
>
> If not then I'll try to debug this and return to you with the answer.
>
>
> --
> cyryl
> _______________________________________________
> erlang-questions mailing list
> [hidden email]
> http://erlang.org/mailman/listinfo/erlang-questions
>
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: compiling R14B02 with WX support on Ubuntu 11.04

Cyryl Płotnicki-Chudyk
2011/5/13 Boris Mühmer <[hidden email]>:
> Maybe have a look at:
>
>    http://boris.muehmer.de/2011/05/07/installing-erlangotp-r14b02-on-ubuntu-11-04-from-source-tarball/
>
> And compare it to what You have done so far.
>
>

Thanks for the link !
It seems that I've missed the 'libglu-dev' as the dependency of the wx.
Btw my apt-get said that there's no such package, however it selected
the similar one which seems to get the job done. i.e. I don't get the
configure warning at this time, I'll try compiling some WX examples
later on.

Here's the apt-get output:
'Note, selecting 'libglu1-mesa-dev' instead of 'libglu-dev'


--
cyryl
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: compiling R14B02 with WX support on Ubuntu 11.04

bsmr
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...


  - boris


2011/5/13 Cyryl Płotnicki-Chudyk <[hidden email]>:

> 2011/5/13 Boris Mühmer <[hidden email]>:
>> Maybe have a look at:
>>
>>    http://boris.muehmer.de/2011/05/07/installing-erlangotp-r14b02-on-ubuntu-11-04-from-source-tarball/
>>
>> And compare it to what You have done so far.
>>
>>
>
> Thanks for the link !
> It seems that I've missed the 'libglu-dev' as the dependency of the wx.
> Btw my apt-get said that there's no such package, however it selected
> the similar one which seems to get the job done. i.e. I don't get the
> configure warning at this time, I'll try compiling some WX examples
> later on.
>
> Here's the apt-get output:
> 'Note, selecting 'libglu1-mesa-dev' instead of 'libglu-dev'
>
>
> --
> cyryl
>
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: compiling R14B02 with WX support on Ubuntu 11.04

Cyryl Płotnicki-Chudyk
2011/5/13 Boris Mühmer <[hidden email]>:
> 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
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: compiling R14B02 with WX support on Ubuntu 11.04

Dan Gudmundsson-3
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 <[hidden email]>:

> 2011/5/13 Boris Mühmer <[hidden email]>:
>> 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
> [hidden email]
> http://erlang.org/mailman/listinfo/erlang-questions
>
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: compiling R14B02 with WX support on Ubuntu 11.04

bsmr
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 <[hidden email]>:

> 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 <[hidden email]>:
>> 2011/5/13 Boris Mühmer <[hidden email]>:
>>> 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
>> [hidden email]
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: compiling R14B02 with WX support on Ubuntu 11.04

Don Kidder
This post has NOT been accepted by the mailing list yet.
In reply to this post by Cyryl Płotnicki-Chudyk
I get the same error on an old Compaq Presario SR1311NX with 1 gig of mem and the following graphics card
donald@ubuntu:~$ lspci -nn | grep VGA
01:00.0 VGA compatible controller [0300]: VIA Technologies, Inc. KM400/KN400/P4M800 [S3 UniChrome] [1106:7205] (rev 01)

Can I run wxwidgets in Erlang? And any ideas how to fix the driver issue below? And any idea why I have to run erl with -smp, otherwise I get an error saying smp missing when I start wx:demo().

donald@ubuntu:~$ erl -smp
Erlang R14B03 (erts-5.8.4) [source] [smp:1:1] [rq:1] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.8.4  (abort with ^G)
1> wx:demo().

=ERROR REPORT==== 4-Jul-2011::10:36:19 ===
WX Failed loading "wxe_driver"@"/opt/erlang/R14B03/lib/erlang/lib/wx-0.98.10/priv"
{error,{{load_driver,"symbol _ZN16wxStyledTextCtrl7SendMsgEill, version WXU_2.8 not defined in file libwx_gtk2u_stc-2.8.so.0 with link time reference"},
        [{wxe_server,start,0},
         {wx,new,1},
         {demo,init,1},
         {wx_object,init_it,6},
         {proc_lib,init_p_do_apply,3}]}}
2>