wxruby-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wxruby-dev] Building on OS X and 1.8...


From: Richard Kilmer
Subject: [Wxruby-dev] Building on OS X and 1.8...
Date: Mon, 30 Jun 2003 18:24:16 -0400

Kevin,

I am working on compiling on OS X w/ruby 1.8... (yeah!)

1) The makefile generation works on OS X just like for Linux

so...changing line 13 of extconf.rb from:

if /linux/ =~ RUBY_PLATFORM

to

if /linux/ =~ RUBY_PLATFORM || /powerpc-darwin/ =~ RUBY_PLATFORM

builds a proper makefile (very cool!)

2) In your wxpp.rb you do a lot of gsub!(match_string, replacement_string) instead of gsub!(regex, replacement_string). This raises warnings on my installation of Ruby 1.8. It seems that you are supposed to only use (regex, string) on 1.8.

What version of Ruby are you using?

3) I get this after those sets of warnings:

****** RubyToCpp error: ()
wxpp.rb:59:in `getRubyToCppConversionMethod': unhandled exception
        from wxpp.rb:227:in `convertVariables'
        from wxpp.rb:222:in `each_index'
        from wxpp.rb:222:in `convertVariables'
        from wxpp.rb:650:in `implementMemberMethods'
        from wxpp.rb:639:in `each'
        from wxpp.rb:639:in `implementMemberMethods'
        from wxpp.rb:949:in `handleImplement'
        from wxpp.rb:939:in `handleImplementClass'
        from wxpp.rb:832:in `command'
        from wxpp.rb:772:in `parse'
        from wxpp.rb:769:in `foreach'
        from wxpp.rb:769:in `parse'
        from wxpp.rb:983
make: *** [button.cpp] Error 1

and it dies.

further investigation (puts parameter.cppClass in getRubyToCppConversionMethod)

(wxWindow*
wxWindowID
wxString&
wxPoint&
wxSize&
long
wxValidator&
wxString&
()

That last one yields the error.

-rich





reply via email to

[Prev in Thread] Current Thread [Next in Thread]