[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wxruby-dev] MinGW/MSYS build environment - error
From: |
Gour |
Subject: |
[Wxruby-dev] MinGW/MSYS build environment - error |
Date: |
Tue, 8 Jul 2003 13:32:14 +0200 |
User-agent: |
Mutt/1.4i |
Hi!
I am trying to build wxruby with MinGW compiler in MSYS environment (Ruby
1.8.0).
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"
. . .
In original extconf.rb, window.h was not found.
By compiling wxruby with the Makefile produced with above modified extconf.rb,
all went OK until the window.cpp file which produces the following error:
<snip>
g++ -Os `wx-config --cxxflags` -Ic:/wx/include -Ic:/wx/lib/mswdll -DSTRICT
-DWIN32 -D__WIN32__ -D_WINDOWS -DWINVER=0x0400 -D__WIN95__ -D__WXMSW__
-DWXUSINGDLL=1 -D__WINDOWS__ -D__WXMSW__ -I.
-IC:/MSYS/1.0/LOCAL/lib/ruby/1.8/i386-mingw32
-IC:/MSYS/1.0/LOCAL/lib/ruby/1.8/i386-mingw32 -I. -I/usr/local/mingw/include
-c window.cpp
window.cpp: In static member function `static VALUE WxWindow::GetHandle(int,
VALUE*, long unsigned int)':
window.cpp:959: invalid conversion from `WXWidget' to `void*'
make: *** [window.o] Error 1
Sincerely,
Gour
--
Gour
address@hidden
Registered Linux User #278493
- [Wxruby-dev] MinGW/MSYS build environment - error,
Gour <=