[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Wxruby-dev] Corrections for Windows build error
From: |
Roy Varghese |
Subject: |
Re: [Wxruby-dev] Corrections for Windows build error |
Date: |
Sat, 19 Jul 2003 02:35:00 -0700 |
Hi
----- Original Message -----
From: "Park Heesob" <address@hidden>
To: <address@hidden>
Sent: Friday, July 18, 2003 7:15 PM
Subject: Re: [Wxruby-dev] Corrections for Windows build error
> >
> There is four possible libraries In $WXWIN/lib directory
>
> wxmsw24.lib
> wxmsw24d.lib
> wxmsw24u.lib
> wxmsw24ud.lib
Sorry just caught up with my email.
These are what I have too, after rebuilding the MSW in DLL form. And
of course, as Park mentioned, no wx-config script. Also as Park said,
if I rename "depends" to "depend", it inserts all the .obj rules in the
Makefile
Here's how it stands now
Index: extconf.rb
===================================================================
RCS file: /cvsroot/wxruby/wxruby/src/extconf.rb,v
retrieving revision 1.18
diff -r1.18 extconf.rb
37c37
< $WXVERSION = '24'
---
> $WXVERSION = '24d'
52c52
< File.open("Makefile","a+") {|f|
---
> File.open("Makefile","ab+") {|f|
62c62
< File.open("Makefile","a+") {|f|
---
> File.open("Makefile","ab+") {|f|
70c70
< File.open("Makefile","a+") {|f|
---
> File.open("Makefile","ab+") {|f|
79c79,80
< File.open("Makefile","a+") {|f|
---
> if File.exist?("depends")
> File.open("Makefile","ab+") {|f|
92a94
> end
Had to add the File.exist? to prevent the "include depends" from being
tagged on.
So with this I finally got the wxruby.so and wxruby.lib files built.
Then as per the README , I ran
ruby install.rb
which has to be changed like so, to run correctly on my environment.
( is this correct? I couldnt find wx.so anywhere )
diff -r1.2 install.rb
8,9c8,9
< File::install('wxmsw240.dll', CONFIG['bindir'], 0755, true)
< File::install('wx.so', CONFIG['archdir'], 0755, true)
---
> File::install('c:/apps/wx2/lib/wxmsw24d.dll', CONFIG['bindir'],
0755, true)
> File::install('wxruby.so', CONFIG['archdir'], 0755, true)
Final hurdle, I get a Segmentation Fault when running the Calendar
example. I can see the Calendar window , but a dialog box saying
"This applicaton has requested the Runtime to terminate it in an unusual
way" pops up in front of it. Seems to be happening when main_loop() is
called, here's some code through IRB
==========
C:\Temp>irb test2.rbw
test2.rbw(main):001:0> require 'wxruby'
true
test2.rbw(main):002:0> include Wx
Object
test2.rbw(main):003:0>
test2.rbw(main):004:0* class MyFrame < Frame
test2.rbw(main):005:1> def initialize(title,point,size)
test2.rbw(main):006:2> super(nil,-1,title,point,size)
test2.rbw(main):007:2> end
test2.rbw(main):008:1> end
nil
test2.rbw(main):009:0> class MyApp < App
test2.rbw(main):010:1> def OnInit()
test2.rbw(main):011:2> f = MyFrame.new("Hello
World",Point.new(50,50),Size.new(200,300))
test2.rbw(main):012:2> f.show(TRUE);
test2.rbw(main):013:2* end
test2.rbw(main):014:1> end
nil
test2.rbw(main):015:0>
test2.rbw(main):016:0* a = MyApp.new
#<MyApp:0x275c2a0>
test2.rbw(main):017:0> a.main_loop()
test2.rbw:17: [BUG] Segmentation fault
ruby 1.7.3 (2002-11-17) [i386-mswin32]
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
======
Thx
Roy
- Re: [Wxruby-dev] Corrections for Windows build error, (continued)
- Re: [Wxruby-dev] Corrections for Windows build error, Roy Varghese, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Kevin Smith, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Roy Varghese, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Park Heesob, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Kevin Smith, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Park Heesob, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Kevin Smith, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Park Heesob, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Kevin Smith, 2003/07/18
- Re: [Wxruby-dev] Corrections for Windows build error, Gour, 2003/07/19
- Re: [Wxruby-dev] Corrections for Windows build error,
Roy Varghese <=
- Re: [Wxruby-dev] Corrections for Windows build error, Park Heesob, 2003/07/19
- Re: [Wxruby-dev] Corrections for Windows build error, Park Heesob, 2003/07/19
- Re: [Wxruby-dev] Corrections for Windows build error, Roy Varghese, 2003/07/19
- Re: [Wxruby-dev] Corrections for Windows build error, Kevin Smith, 2003/07/19
- Re: [Wxruby-dev] Corrections for Windows build error, Roy Varghese, 2003/07/19
- Re: [Wxruby-dev] Corrections for Windows build error, Park Heesob, 2003/07/19
- Re: [Wxruby-dev] Corrections for Windows build error, Roy Varghese, 2003/07/19
- Re: [Wxruby-dev] Corrections for Windows build error, Gour, 2003/07/20
- Re: [Wxruby-dev] Corrections for Windows build error, Gour, 2003/07/20
- Re: [Wxruby-dev] Corrections for Windows build error, Roy Varghese, 2003/07/21