Chauk-Mean P
2008-Dec-18 16:10 UTC
[wxruby-development] Building wxRuby now for ruby-1.9.1-preview2 on Windows
Hi all (again), My main motivation is in fact using wxRuby with ruby-1.9.1 on Windows and there is no 1.9 version of wxRuby at the moment. I was forced to build a ruby-1.8.7-p72 for the following reasons. My configuration : - Windows XP SP2. - winswig-1.3.35 with the little patch for Lib/ruby/file.i - Visual C++ 2008 Express SP1 for building : - zlib 1.1.4 (zlib-1.1.4-1-src.zip from http://jarp.does.notwork.org/win32) - wxWidgets 2.8.9 - ruby-1.9.1-preview2 (with 19 as the program suffix). The tests are OK and I can install successfully a gem (e.g rspec). 1/ First, I''m not able to generate source files from swig : D:\HOME\wxruby2>rake19 --trace swig (in D:/HOME/wxruby2) Enabling STATIC build Enabling UNICODE build ** Invoke swig (first_time) ** Invoke src/AboutDialogInfo.cpp (first_time) ** Invoke swig/classes/AboutDialogInfo.i (first_time, not_needed) ** Invoke D:/HOME/wxruby2/swig/common.i (first_time, not_needed) ** Invoke D:/HOME/wxruby2/swig/classes/include/wxAboutDialogInfo.h (first_time, not_needed) ** Execute src/AboutDialogInfo.cpp swig -ID:\opt\wxWidgets-2.8.9/include -D__WXMSW__ -ID:\opt\wxWidgets-2.8.9/lib/v c_lib/mswu -D_UNICODE -DUNICODE -Iswig/custom -w401 -w801 -w515 -c++ -ruby -o sr c/AboutDialogInfo.cpp swig/classes/AboutDialogInfo.i Syntaxe du nom de fichier, de r?pertoire ou de volume incorrecte. rake aborted! Command failed with status (1): [swig -ID:\opt\wxWidgets-2.8.9/include -D__...] C:/ruby19/lib/ruby19/1.9.1/rake.rb:967:in `block in sh'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:980:in `call'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:980:in `sh'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:1068:in `sh'' D:/HOME/wxruby2/rake/rakewx.rb:86:in `do_swig'' D:/HOME/wxruby2/rake/rakewx.rb:141:in `block (2 levels) in <top (required)>'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:611:in `call'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:611:in `block in execute'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:608:in `each'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:608:in `execute'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:574:in `block in invoke_with_call_chain'' C:/ruby19/lib/ruby19/1.9.1/monitor.rb:190:in `mon_synchronize'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:567:in `invoke_with_call_chain'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:584:in `block in invoke_prerequisites'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:581:in `each'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:581:in `invoke_prerequisites'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:573:in `block in invoke_with_call_chain'' C:/ruby19/lib/ruby19/1.9.1/monitor.rb:190:in `mon_synchronize'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:567:in `invoke_with_call_chain'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:560:in `invoke'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:2015:in `invoke_task'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:1993:in `block (2 levels) in top_level'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:1993:in `each'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:1993:in `block in top_level'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:2032:in `standard_exception_handling'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:1987:in `top_level'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:1966:in `block in run'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:2032:in `standard_exception_handling'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:1963:in `run'' C:/ruby19/bin/rake19.bat:39:in `<main>'' D:\HOME\wxruby2> "Syntaxe du nom de fichier, de r?pertoire ou de volume incorrecte." means Syntax of filename, directory or volume incorrect". 2/ I built the source files with ruby-1.8.7-p72 ''s rake (rake swig). Then I tried to build wxRuby : D:\HOME\wxruby2>rake19 --trace gem WXRUBY_VERSION=1.9.9 (in D:/HOME/wxruby2) Enabling STATIC build Enabling UNICODE build ** Invoke gem (first_time) ** Invoke default (first_time) ** Invoke lib/wxruby2.so (first_time) ** Invoke obj/AboutDialogInfo.obj (first_time) ** Invoke src/AboutDialogInfo.cpp (first_time, not_needed) ** Invoke swig/classes/AboutDialogInfo.i (first_time, not_needed) ** Invoke D:/HOME/wxruby2/swig/common.i (first_time, not_needed) ** Invoke D:/HOME/wxruby2/swig/classes/include/wxAboutDialogInfo.h (first_time, not_needed) ** Execute obj/AboutDialogInfo.obj cl.exe -c -ID:\opt\wxWidgets-2.8.9/include -D__WXMSW__ -ID:\opt\wxWidgets-2.8.9 /lib/vc_lib/mswu -D_UNICODE -DUNICODE -MD -Zi -O2b2xty- -Zm200 -DNDEBUG /GR / EHsc -DSTRICT -DWIN32 -D__WIN32__ -DWINVER=0x0400 -D_WINDOWS /D__WINDOWS__ /D__W IN95__ -I. -I C:/ruby19/include/ruby19-1.9.1 -I C:/ruby19/include/ruby19-1.9.1/ site_ruby -I C:/ruby19/include/ruby19-1.9.1/vendor_ruby -I C:/ruby19/include/rub y19-1.9.1/i386-mswin32_90 -I C:/ruby19/include/ruby19-1.9.1/ruby /Foobj/AboutDia logInfo.obj src/AboutDialogInfo.cpp La ligne entr?e est trop longue. rake aborted! Command failed with status (1): [cl.exe -c -ID:\opt\wxWidgets-2.8.9/includ...] C:/ruby19/lib/ruby19/1.9.1/rake.rb:967:in `block in sh'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:980:in `call'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:980:in `sh'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:1068:in `sh'' D:/HOME/wxruby2/rake/rakewx.rb:154:in `block in <top (required)>'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:611:in `call'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:611:in `block in execute'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:608:in `each'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:608:in `execute'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:574:in `block in invoke_with_call_chain'' C:/ruby19/lib/ruby19/1.9.1/monitor.rb:190:in `mon_synchronize'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:567:in `invoke_with_call_chain'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:584:in `block in invoke_prerequisites'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:581:in `each'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:581:in `invoke_prerequisites'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:573:in `block in invoke_with_call_chain'' C:/ruby19/lib/ruby19/1.9.1/monitor.rb:190:in `mon_synchronize'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:567:in `invoke_with_call_chain'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:584:in `block in invoke_prerequisites'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:581:in `each'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:581:in `invoke_prerequisites'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:573:in `block in invoke_with_call_chain'' C:/ruby19/lib/ruby19/1.9.1/monitor.rb:190:in `mon_synchronize'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:567:in `invoke_with_call_chain'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:584:in `block in invoke_prerequisites'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:581:in `each'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:581:in `invoke_prerequisites'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:573:in `block in invoke_with_call_chain'' C:/ruby19/lib/ruby19/1.9.1/monitor.rb:190:in `mon_synchronize'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:567:in `invoke_with_call_chain'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:560:in `invoke'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:2015:in `invoke_task'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:1993:in `block (2 levels) in top_level'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:1993:in `each'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:1993:in `block in top_level'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:2032:in `standard_exception_handling'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:1987:in `top_level'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:1966:in `block in run'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:2032:in `standard_exception_handling'' C:/ruby19/lib/ruby19/1.9.1/rake.rb:1963:in `run'' C:/ruby19/bin/rake19.bat:39:in `<main>'' D:\HOME\wxruby2> "La ligne entr?e est trop longue." means "Entered line is too long". Thanks for any help. Chauk-Mean.