Forum: wxRuby Re: linking gem to wx on Linux

Posted by Don Wilde (Guest)
on 2010-12-23 18:03
(Received via mailing list)
By compiling wxWidgets from source, enabling the shared library option 
and
using 2.8.11 wxGTK as follows:

../configure --enable-shared --with-gtk --enable-monolithic \
 --enable-unicode --disable-debug --enable-catch_segvs 
--enable-graphics_ctx
\
 --enable-mediactrl --with-opengl --with-libjpeg=builtin
--with-libpng=builtin \
 --with-libtiff=builtin --with-zlib=builtin --with-expat=builtin
--enable-gui \
 --enable-xrc --enable-mdi --enable-gif \
 --enable-pcx --enable-iff --enable-pnm --enable-xpm

I now get this error on my own machine (Ubuntu 9,10) which was working:

/usr/local/lib/ruby/site_ruby/1.8/i686-linux/wxruby2.so:
/usr/local/lib/ruby/site_ruby/1.8/i686-linux/wxruby2.so: undefined 
symbol:
_ZN8wxWindow12ApplyToolTipEP12_GtkTooltipsPKc -
/usr/local/lib/ruby/site_ruby/1.8/i686-linux/wxruby2.so (LoadError)
    from 
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from /usr/local/lib/ruby/site_ruby/1.8/wx.rb:12
    from 
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
    from 
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
    from ./smarttvmark.rb:11

I know I had it working, so I'll keep pushing forward. :D
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.