[wxruby-users] wxruby - compile trouble on 64bit linux (ubuntu)

Rene Paulokat rene at so36.net
Mon Sep 15 19:50:14 EDT 2008


hi, 
i'd like to give an report how i managed to get wxruby-1.9.8 installed on ubuntu 8.04.
think this could be usefull for others.

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

did not find another solution to pass this arguments when invoking rake...

big thanks to the ppl working on development of wxruby.

regards

rene





More information about the wxruby-users mailing list