[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Wxruby-dev] MinGW/MSYS build environment - error
From: |
Gour |
Subject: |
Re: [Wxruby-dev] MinGW/MSYS build environment - error |
Date: |
Fri, 11 Jul 2003 10:45:15 +0200 |
User-agent: |
Mutt/1.4i |
Kevin Smith (address@hidden) wrote:
> I hope everyone continues sending these reports...let's get this thing
> working as many places as possible.
Here I'm again!
Being both wx & Ruby newbie I had to play with wxruby Win build a little bit
longer than expected :-)
Here is the report:
a) after fetching latest CVS code and trying to build it under Linux there are
few
glitches ie. cyclic references:
1) button.cpp depends on control.h & window.h
2) textctrl.cpp ---> textattr.h &
3) window.cpp ---> caret.h
The solution is to just run: wxpp.rb on those required *.t files.
b) after having all kinds of different problems on Win98 platform (which is
tested
under Win4Lin) with compiler & linking, here is the resolution:
1) in order to be able to link properly I had to add wxmsw241 library in
the list of linking libraries, so now the diff for extconf.rb looks
like:
--------------------------- cut here
------------------------------------------------
*** ./extconf.rb Fri Jul 11 04:02:22 2003
--- /home/ggd/win/msys/1.0/home/ggd/wx/wxruby/src/extconf.rb Fri Jul 11
10:17:22 2003
***************
*** 24,36 ****
elsif /mingw32/ =~ RUBY_PLATFORM
$CFLAGS += " `wx-config --cxxflags`"
$LDFLAGS += " `wx-config --libs` -Wl,--version-script,./version-script "
- $WXDIR=ENV['WXWIN']
- $WXVERSION = '241'
- $WXSRC="#$WXDIR/src/msw"
- $WXINC="#$WXDIR/include"
- $INCTEMP="#$WXDIR/lib/mswdll"
- $WXLIB="#$WXDIR/lib/wxmsw#$WXVERSION.lib"
- $CFLAGS += " -I#$WXINC -I#$INCTEMP #$WINFLAGS #$EXTRADLLFLAGS -DSTRICT
-DWIN32 -D__W
IN32__ -D_WINDOWS -DWINVER=0x0400 -D__WIN95__ -D__WXMSW__ -DWXUSINGDLL=1
-D__WINDOWS__ -D_
_WXMSW__ "
- $libs += " #$WXLIB"
- $objs.push("wx.res")
elsif /powerpc-darwin/ =~ RUBY_PLATFORM
--- 24,30 ----
elsif /mingw32/ =~ RUBY_PLATFORM
+ CONFIG["CC"] = " `wx-config --cxx`"
+ CONFIG["LDSHARED"].gsub!("gcc"," `wx-config --cxx`".strip)
+ $LIBS += " -lwxmsw241"
$CFLAGS += " `wx-config --cxxflags`"
$LDFLAGS += " `wx-config --libs` -Wl,--version-script,./version-script "
elsif /powerpc-darwin/ =~ RUBY_PLATFORM
----------------------------------- cut here
------------------------------------------
It is a little bit more Linux-like :-)
I tried minimal & controls sample and they worked without any warning, so now I
can
proceed to explore more pearls in the wxruby ocean :-)
(I'm running Mingw with gcc 3.2 & latest MSYS 1.09.)
Hope it helps.
Sincerely,
Gour
--
Gour
address@hidden
Registered Linux User #278493