Chauk-Mean P
2008-Nov-17 10:12 UTC
[wxruby-development] About graphics_ctx requirement, gem for ruby-1.9.1, and cross compiling
Hi, I''d really like to start using wxRuby with ruby-1.9.1 on Windows. Here are my feature requests by priority order : 1/ Currently, the build of wxRuby requires that the available build of wxWidgets has graphics_ctx. On Windows, this requires gdi+ support by wxWidgets and thus getting gdi+ files, patching wxWidgets code ... I wanted to build wxRuby trunk for ruby-1.9.1 on Windows. I don''t use graphics_ctx in my application so the steps for supporting gdi+ are a bit restrictive. Can you consider removing this graphics_ctx requirement ? 2/ Otherwise, can you consider delivering upcoming wxRuby 2.0 gems for ruby-1.9.1 on Windows ? 3/ Cross-compiling wxWidgets for Windows from Linux via mingw works well. This seems not working with wxRuby. To benefit from all the comfort of a *NIX system, it would be great if cross-compiling is supported by wxRuby. Cheers. Chauk-Mean.
Alex Fenton
2008-Nov-17 10:48 UTC
[wxruby-development] About graphics_ctx requirement, gem for ruby-1.9.1, and cross compiling
Hi Chauk-Mean Chauk-Mean P wrote:> I''d really like to start using wxRuby with ruby-1.9.1 on Windows.Great. I''ve just recently switched over development to target 1.9. It all works nicely, apart from Ruby''s dire performance with some methods on UTF-8 strings.> 1/ Currently, the build of wxRuby requires that the available build of > wxWidgets has graphics_ctx. > On Windows, this requires gdi+ support by wxWidgets and thus getting > gdi+ files, patching wxWidgets code ... > > I wanted to build wxRuby trunk for ruby-1.9.1 on Windows. > I don''t use graphics_ctx in my application so the steps for supporting > gdi+ are a bit restrictive. > Can you consider removing this graphics_ctx requirement ? >Yes, we could. Happy to have a look at it if you file it as a feature request. As an alternative, I posted a pre-patched set of gdiplus headers and the dll to our website: http://wxruby.rubyforge.org/GDIplus_for_mingW.zip You should be able to just drop these into the MingW lib and include directories.> 2/ Otherwise, can you consider delivering upcoming wxRuby 2.0 gems for > ruby-1.9.1 on Windows ? >We''ll definitely have wxRuby 2.0 gems for both versions. However at this stage it doesn''t seem that the rubygems developers have come up with a way of distinguishing 1.8 from 1.9 gems. I tried renaming the 1.9 gems to wxruby_ruby19 but them gem install won''t find the gems for remote install. I''m looking into it> 3/ Cross-compiling wxWidgets for Windows from Linux via mingw works well. > This seems not working with wxRuby. > To benefit from all the comfort of a *NIX system, it would be great if > cross-compiling is supported by wxRuby.Possible, but I personally know very little about cross-compiling. It would mean another dev environment and set of rake scripts to maintain, and with a working set for four compilers already (gcc on 3 platforms, MSVC7.1 on Windows) I''m not that keen to take on another. cheers alex
Chauk-Mean P
2008-Nov-17 12:45 UTC
[wxruby-development] About graphics_ctx requirement, gem for ruby-1.9.1, and cross compiling
Hi Alex, 2008/11/17 Alex Fenton <alex at pressure.to>:> Hi Chauk-Mean >> Can you consider removing this graphics_ctx requirement ? > > Yes, we could. Happy to have a look at it if you file it as a feature > request.Done. Feature Request #22844.> As an alternative, I posted a pre-patched set of gdiplus headers and the dll > to our website: > > http://wxruby.rubyforge.org/GDIplus_for_mingW.zip > > You should be able to just drop these into the MingW lib and include > directories.OK. Do I still need to patch the wxWidgets src\msw\graphics.cpp file ?> >> 2/ Otherwise, can you consider delivering upcoming wxRuby 2.0 gems for >> ruby-1.9.1 on Windows ? > > We''ll definitely have wxRuby 2.0 gems for both versions. However at this > stage it doesn''t seem that the rubygems developers have come up with a way > of distinguishing 1.8 from 1.9 gems. I tried renaming the 1.9 gems to > wxruby_ruby19 but them gem install won''t find the gems for remote install. > I''m looking into itIf we can download the gem and install it locally (with -l flag), I think that''s a suitable workaround.> >> 3/ Cross-compiling wxWidgets for Windows from Linux via mingw works well. >> This seems not working with wxRuby. >> To benefit from all the comfort of a *NIX system, it would be great if >> cross-compiling is supported by wxRuby. > > Possible, but I personally know very little about cross-compiling. It would > mean another dev environment and set of rake scripts to maintain, and with a > working set for four compilers already (gcc on 3 platforms, MSVC7.1 on > Windows) I''m not that keen to take on another.OK. Cheers. Chauk-Mean.