wxruby-dev
[Top][All Lists]
Advanced

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

Re: [Wxruby-dev] MinGW/MSYS build environment - error


From: Kevin Smith
Subject: Re: [Wxruby-dev] MinGW/MSYS build environment - error
Date: 08 Jul 2003 07:00:42 -0700

On Tue, 2003-07-08 at 04:32, Gour wrote:
> extconf.rb didn't produce correct file so I modified it a bit and it looks 
> like:
> 
> require 'mkmf'
> 
> $objs = [ ... ]
> 
>     $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__WIN32__ -D_WINDOWS -DWINVER=0x0400 -D__WIN95__ -D__WXMSW__ 
> -DWXUSINGDLL=1 -D__WINDOWS__ -D__WXMSW__  "
>     $libs += " #$WXLIB"
>     $objs.push("wx.res")
> 
> SRC_EXT << "t"
> 
> . . .

Ok. It sounds like we need a fourth section. We already have sections
for linux, powerpc-darwin, and windows native. This stuff would go in
windows-mingw. Can you have your extconf.rb print out RUBY_PLATFORM so
we know exactly what this new section should test for?


> window.cpp:959: invalid conversion from `WXWidget' to `void*'
> make: *** [window.o] Error 1

It looks like you don't have the very latest code, but I found the
problem. GetHandle returns different types on different platforms. I
modified wxpp.rb to generate code that should work for you, and have
checked it in.

Thanks again,

Kevin






reply via email to

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