[wxruby-users] wxruby - compile trouble on 64bit linux (ubuntu)
Mario Steele
mario at ruby-im.net
Tue Sep 16 22:55:03 EDT 2008
Actually Alex,
wxRuby's build process won't receive from wx-config, or ruby.h, I had to do
the same hack myself when I did the x86 build of wxRuby gem. No matter what
I tried, I couldn't get -fPIC in there, and I tried everything.
On Tue, Sep 16, 2008 at 9:30 AM, Alex Fenton <alex at pressure.to> wrote:
> 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
>
> _______________________________________________
> wxruby-users mailing list
> wxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wxruby-users
>
--
Mario Steele
http://www.trilake.net
http://www.ruby-im.net
http://rubyforge.org/projects/wxruby/
http://rubyforge.org/projects/wxride/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20080916/0f37a73a/attachment.html>
More information about the wxruby-users
mailing list