Sorry for the lameness, but I need things explained to me very slowly... -----Original Message----- Subject: RE: [Wxruby-users] wxGrid Question> > Yes, grab the latest tarball from the above location. Then, you should > install rubygems if you haven''t already: > http://rubyforge.org/projects/rubygems/ > > That should allow you to easily install rake: > http://rubyforge.org/projects/rake >Then download wxWidgets-2.4.2 from wxwidgets.org. Unzip and manually set the WXWIN env var to the correct dir. Build from the make file _at least once_ (requires MS nmake).> After you unpack the wxruby-swig tarball, you should just be able torun> ''rake'' from the main directory. You don''t run make configure, or make.> At that point, it''s just a matter of figuring out, and eitherreporting> or fixing, any compiler or linker warnings or errors. That''s where the > old non-swig build instructions will help.Am now on it (with wxruby-swig-0.0.16), still in the setup stage and trying to get to the build-errors stage. Will report as I progress (which will be slowly, as my boss keeps getting in the way with silly work requirements :).
Mehr, Assaph (Assaph) wrote:> Sorry for the lameness, but I need things explained to me very slowly...Not at all. I hate when instructions are incomplete, or assume I know something that I don''t. Your feedback will help everyone who comes along after you!> Am now on it (with wxruby-swig-0.0.16), still in the setup stage and > trying to get to the build-errors stage. Will report as I progress > (which will be slowly, as my boss keeps getting in the way with silly > work requirements :).Ok. Don''t forget that 0.0.16 is missing a file: http://rubyforge.org/pipermail/wxruby-users/2004-June/000585.html I still don''t know if my suggestion in that email will work or not. Thanks! Kevin
> Ok. Don''t forget that 0.0.16 is missing a file: > http://rubyforge.org/pipermail/wxruby-users/2004-June/000585.htmlThanks for that - Indeed the file was needed. Now for the errors: * The MSW rake file needed a few changes. Attached. * In rakeutil.rb method force_rmdir: Better use rm_rf(dir) as rmdir(dir) on windows complains that the directory is not empty. * rakewx.rb - see attached file. In create_compile_task and create_link_task: The output parameter for MSVC CL.exe is changed slightly. I also had to add the ruby library. I don''t think it comes with a simple install, so the readme should mention that you need to download and compile ruby itself. * In EvtHandler.cpp: For some reason MSVC doesn''t like the connect function (static void connect). It thinks it''s a macro defined elsewhere. Since it looks like a function local to the file, I renamed it to wxconnect. * Icon.cpp: line 934 in SaveFile method. Had to explicitly cast arg1 into wxBitmap*. For some reason it doesn''t pick up that the SaveFile method in Icon is inherited from wxBitmap. And now for the true wierdness: I get the following errors: c:\langs\ruby\wxRuby-swig\wxWindows-2.4.2/include\wx/thread.h(448) : error C2062: type ''void'' unexpected c:\langs\ruby\wxRuby-swig\wxWindows-2.4.2/include\wx/thread.h(448) : error C2238: unexpected token(s) preceding '';'' c:\langs\ruby\wxRuby-swig\wxWindows-2.4.2/include\wx/msw/toplevel.h(96) : error C2059: syntax error : ''constant'' Turns out that the methods wxThread::Sleep and wxTopLevelWindowMSW::CreateDialog make MSVC barf. Simply renameing them (with underscores or anything) will allow things to compile (but obviously will break stuff later). I guess there''s a clash with WinAPI native functions of the same name, though why the clash occurs within a class definition is beyond me. After all was compiled into the obj files, I had linkage errors looking for stuff like _cWxEvtHandler. My understanding is that these are the swigged classes. I looked in the directory but couldn''t find a .lib or .so/dll file that seems to fit. Guess I''m missing something here. Hope this helps you with wxRuby. If you have any suggestions on how I could proceed I''d be happy to try them out. Cheers, Assaph -------------- next part -------------- A non-text attachment was scrubbed... Name: rakemswin.rb Type: application/octet-stream Size: 1847 bytes Desc: rakemswin.rb Url : http://rubyforge.org/pipermail/wxruby-users/attachments/20040616/bf442eb8/rakemswin.obj -------------- next part -------------- A non-text attachment was scrubbed... Name: rakewx.rb Type: application/octet-stream Size: 5570 bytes Desc: rakewx.rb Url : http://rubyforge.org/pipermail/wxruby-users/attachments/20040616/bf442eb8/rakewx.obj