wxruby-dev
[Top][All Lists]
Advanced

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

Re: [Wxruby-dev] Status update


From: Gour
Subject: Re: [Wxruby-dev] Status update
Date: Sun, 10 Aug 2003 17:47:00 +0200
User-agent: Mutt/1.4i

Kevin Smith (address@hidden) wrote:

> I just wanted to apologize for the silence the last couple weeks. Of the
> last three weekends, I have been out of town for two and sick for the
> other. Combine that with buying a new computer and looking for a new
> place to live, and...well...my life is almost as busy as some of the
> other folks on the list. Ok. I'm done whining.

I was also absent last week for several days, and here I'm :-)
> 

> My near-term goals for wxRuby are:
> 1. Incorporate the patches posted recently to this list
> 2. Migrate to rubyforge

I just checked rubyforge and can see that the migration is in the process.

> 3. Release a 0.1, even if it doesn't work on all platforms yet

Here is what I've foudn regarding MinGW & MSYS platform:

a) compile errors in Yield Macro experienced by Roy & myself are due to win32api
headers and/or old MinGW headers. (info got from wxwindwos ml)

I tried to add wx/msw/winundef.h in all the problematic header files and the 
wxruby
code was compiled. However, I still cannot link wxruby.so with static version of
wxwindows library (is it possible at all?) due to many unresolved references 
during the
linking phase.

b) I also learnt about the non-awareness for backticking in MinGW's version of 
Ruby,
so I changed MinGW section in extconf.rb to:

*** extconf.rb  Tue Jul 29 12:37:00 2003
--- /home/ggd/win/msys/1.0/home/ggd/wxruby/src/extconf.rb       Sun Aug 10 
17:38:13 2003
***************
*** 24,31 ****
      $LDFLAGS += " `wx-config --libs` -Wl,--version-script,./version-script "
  elsif /mingw32/ =~ RUBY_PLATFORM
!     CONFIG["CC"] = " `wx-config --cxx`"
!     CONFIG["LDSHARED"].gsub!("gcc"," `wx-config --cxx`".strip)
!     $CFLAGS += " `wx-config --cxxflags` -DWXUSINGDLL=1"
!     $LDFLAGS += " `wx-config --libs` -Wl,--version-script,./version-script "
      $LIBS += " -lwxmsw241"
  elsif /powerpc-darwin/ =~ RUBY_PLATFORM
--- 24,31 ----
      $LDFLAGS += " `wx-config --libs` -Wl,--version-script,./version-script "
  elsif /mingw32/ =~ RUBY_PLATFORM
!     CONFIG["CC"] = eval("`sh wx-config --cxx`")
!     CONFIG["LDSHARED"].gsub!("gcc",eval("`sh wx-config --cxx`").strip)
!     $CFLAGS += eval(" `sh wx-config --cxxflags`").strip
!     $LDFLAGS += eval(" `sh wx-config --libs`").strip
      $LIBS += " -lwxmsw241"
  elsif /powerpc-darwin/ =~ RUBY_PLATFORM

I assume that MinGW platform means MinGW + MSYS (otherwise we'd need to check
whether $SHELL match "/bin/sh").

Strange, but although `wx-config --libs` lists -lwxmsw241, unlike on Linux, we 
still
need $LIBS statement, but let it be like that, at the moment (although it's not 
very
elegant).

So, wxwindows has to be built with "--enable-shared" switch which will produce  
wxmsw241.dll & wxmsw241.dll.a needed for linking.

> 4. Release my monkeys and redwood projects as larger examples of wxRuby
> projects

I'm interested to see them since until now I'm much more busy with Win (MinGW) 
intricacies, than learning wxruby :-(

Sincerely,
Gour

-- 
Gour
address@hidden
Registered Linux User #278493





reply via email to

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