[wxruby-users] wxRuby 1.9.9 on SLES 10

Alex Fenton alex at pressure.to
Mon Nov 10 08:51:42 EST 2008


Hi Franz

Irlweg, Franz (ZNT) wrote:
> couldn't find a unicode build of wxwidgets. 
>   
I don't know about compatibility between SLES and OpenSuse or whether 
you're able to install 3rd party rpms, but:
http://software.opensuse.org/search?baseproject=openSUSE%3A10.3&p=1&q=wxWidgets

> After installing 
> - wxWidgets-2.8.9 rpm    
> - wxWidgets-gl-2.8.9  rpm
>   

I don't think you need these packages if you're compiling and installing 
wxWidgets yourself. wxGTK should have everything you need in it.

> - wxGTK-2.8.9 with ( config --enable-unicode) , make, make installthe
>
> the libraries can be found, but some version information is wrong:
>
> ldd wxruby2.so
> ./wxruby2.so: /usr/lib/libwx_gtk2u_gl-2.8.so.0: no version information
> available (required by ./wxruby2.so)
>   

Sorry, this error isn't familiar to me. But I was a bit surprised that 
your self-built version looks to be in /usr/lib - I would have expected 
it to be in /usr/local/lib or /opt/lib. Might be worth checking again 
what wx-config --libs returns, and that the wxRuby build is pointing to 
the right libs.

Perhaps you might post the first few lines returned when running 'rake' 
to build wxRuby, summarising the kind of build to be done and the 
classes that will be excluded (eg PrinterDC is always skipped on Linux).

> - executing a example  ...
>  ruby /data/install/grid.rb
> /usr/local/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-linux/lib/wxruby2.so:
> /usr/local/lib/ruby/gems/1.8/gems/wxruby-1.9.9-x86-linux/lib/wxruby2.so:
> symbol _ZTI6wxGCDC, version WXU_2.8 not defined in file
>   

I can find a few references to this error message on the web with 
wxWidgets and various other packages and software, but no decisive solution.

The fact that the error is occurring with GCDC makes me wonder if the 
problem is specific to that class. Did you build wxWidgets with 
--enable-graphics_ctx? If you didn't, you might try this - especially if 
rake is not reporting that support for GCDC, GraphicsContext etc is 
going to be skipped.

See also the recommended Linux options at 
http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets

cheers
alex



More information about the wxruby-users mailing list