[wxruby-users] wxruby - compile trouble on 64bit linux (ubuntu)
Alex Fenton
alex at pressure.to
Tue Sep 16 10:30:18 EDT 2008
Hi Rene
Rene Paulokat wrote:
> after several errors during wxruby compilation i decided to get rid of wxwidgets-libs and swig that came with / were installed via ubuntu-packet-manager.
> i got ahold of the mentioned versions of swig and wxwidgets and installed them from source.
>
> but this did NOT change the error (something with AboutDialog.o and unreferenced Symbol).
>
> what did the trick for me finally was to change wxruby-1.9.8/rake/rakeconfigure.rb and add there some "-fPIC" to
>
> --- snip ---
> # Flags to be passed to the C++ compiler
> $cppflags = [ $wx_cppflags, $ruby_cppflags,
> $extra_cppflags, $ruby_includes , "-fPIC"].join(' ')
>
> # Flags to be passed to the linker
> $ldflags = [ $ruby_ldflags, $extra_ldflags, "-fPIC" ].join(' ')
>
> --- snap ---
>
Thanks for taking the time to write in about this. It's mentioned on the
wiki here:
http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets
but I agree we should make that easier to find. I plan to write an
INSTALL.txt to go with the source tar.gz which covers this sort of thing.
> did not find another solution to pass this arguments when invoking rake...
>
wxRuby gets its flags and options to pass to the C compiler from
wxWidgets and Ruby, I think if wxWidgets is built with -fPIC, so will
wxRuby, without having to change the rakefile.
Were you building against a static or dynamic wxWidgets?
> big thanks to the ppl working on development of wxruby.
>
thanks
Alex
More information about the wxruby-users
mailing list