[third sending attempt...] I''m going to try and test out the samples on MSW over the next few days and if things look good I think we should release 1.9.2. Might try and fix the bugs related to TreeCtrl#get_first_child as these might involve minor API changes. So if anyone has any time to test out SVN HEAD and look for anything funny, please do. Also, we have an anonymous patch submitted to implement GL Canvas. The patch looks OK but doesn''t include a sample, and I haven''t had a chance to try incorporating it yet. So I was wondering: * does anyone have an interest in GL that would like to test this out? * do people think GL support should be part of core wxRuby? FxRuby I think does include a GL widget http://rubyforge.org/tracker/index.php?func=detail&aid=14462&group_id=35&atid=220 cheers alex
I looked at wxWidgets, and they also have a wxGLCanvas: http://www.wxwidgets.org/wiki/index.php/WxGLCanvas I think that we should consider including it with wxRuby. I would be happy to take a look at it, generate a sample, and let everyone know the results. Regards, Sean Lindsay On 10/17/07, Alex Fenton <alex at pressure.to> wrote:> > [third sending attempt...] > > I''m going to try and test out the samples on MSW over the next few days > and if things look good I think we should release 1.9.2. Might try and > fix the bugs related to TreeCtrl#get_first_child as these might involve > minor API changes. So if anyone has any time to test out SVN HEAD and > look for anything funny, please do. > > Also, we have an anonymous patch submitted to implement GL Canvas. The > patch looks OK but doesn''t include a sample, and I haven''t had a chance > to try incorporating it yet. > > So I was wondering: > * does anyone have an interest in GL that would like to test this out? > * do people think GL support should be part of core wxRuby? FxRuby I > think does include a GL widget > > > http://rubyforge.org/tracker/index.php?func=detail&aid=14462&group_id=35&atid=220 > > > cheers > alex > > _______________________________________________ > wxruby-development mailing list > wxruby-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-development >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-development/attachments/20071017/55a00620/attachment.html
Hi Sean Sean wrote:> I looked at wxWidgets, and they also have a wxGLCanvas: > > http://www.wxwidgets.org/wiki/index.php/WxGLCanvasI think the patch on our rubyforge site does this , adding wx''s GL Canvas to wxRuby. If you have time to try out the patch and write a sample for it, that would be great. We can add it to 1.9.3 Thanks alex
Sorry for my ignorance... How do I incorporate the glcanvas patch? I have the latest anonymous SVN checkout (Revision 1340) and I have the glcanvas.diff, but I am not sure what to do now.... Thanks, Sean Lindsay On 10/17/07, Alex Fenton <alex at pressure.to> wrote:> > Hi Sean > > Sean wrote: > > I looked at wxWidgets, and they also have a wxGLCanvas: > > > > http://www.wxwidgets.org/wiki/index.php/WxGLCanvas > I think the patch on our rubyforge site does this , adding wx''s GL > Canvas to wxRuby. > > If you have time to try out the patch and write a sample for it, that > would be great. We can add it to 1.9.3 > > Thanks > alex > > _______________________________________________ > wxruby-development mailing list > wxruby-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-development >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-development/attachments/20071017/a1275408/attachment.html
Sean wrote:> How do I incorporate the glcanvas patch? I have the latest anonymous > SVN checkout (Revision 1340) and I have the glcanvas.diff, but I am > not sure what to do now....You probably want to start by compiling the current SVN sources. Scroll down a bit for info on this page: http://wxruby.rubyforge.org/wiki/wiki.pl?Installation To apply the patch to alter the current sources, save the .diff file in the base directory of wxruby2. Then on the command line do something like patch -p0 < glcanvas.diff The .diff file describes a set of changes to the files in the wxruby2 sources. For example, the first change is to amend rake/rakewx.rb line dealing with wx-config to include the ''gl'' lib. Once the patch has successfully applied, run ''rake'' and it will rebuild the changed files. To run a sample using the newly built library, you might want to do something like: ruby -Ilib samples/minimal/minimal.rb All this will vary a bit depending on what OS you''re using. Get in touch if you''re stuck. cheers alex
Hi Alex, I seem to be having trouble just compiling the SVN... I looked through the mailing lists but couldn''t find anything relevant. Here''s the problem: I am running Ubuntu, and I go to my directory that contains the SVN... In this case: ~/development/wxRuby/wxruby2-trunk I run ''rake --trace'' and get the following: (Rake version: 0.7.1) (in /home/seanh/development/wxRuby/wxruby2-trunk) rake aborted! can''t convert nil into String ./rake/rakewx.rb:101:in `exists?'' ./rake/rakewx.rb:101:in `use_wx_config'' ./rake/rakelinux.rb:9 /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' /home/seanh/development/wxRuby/wxruby2-trunk/rakefile:48 /usr/lib/ruby/1.8/rake.rb:1828:in `load'' /usr/lib/ruby/1.8/rake.rb:1828:in `load_rakefile'' /usr/lib/ruby/1.8/rake.rb:1900:in `run'' /usr/bin/rake:4 It seems to be having trouble with finding the right libraries using wx-config, if I am understanding the rakefile correctly. If I run ''wx-config --libs std,stc'' I get: -pthread -lwx_gtk2u_stc-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8-lwx_gtk2u_qa- 2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-2.8-lwx_baseu_xml- 2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8 Any ideas where things might be going wrong? I do have wxWidgets 2.8.1installed (though I used the .deb file, not compiled from source) and SWIG v1.3.31 installed. Thanks, Sean Lindsay On 10/17/07, Alex Fenton <alex at pressure.to> wrote:> > Sean wrote: > > How do I incorporate the glcanvas patch? I have the latest anonymous > > SVN checkout (Revision 1340) and I have the glcanvas.diff, but I am > > not sure what to do now.... > You probably want to start by compiling the current SVN sources. Scroll > down a bit for info on this page: > > http://wxruby.rubyforge.org/wiki/wiki.pl?Installation > > To apply the patch to alter the current sources, save the .diff file in > the base directory of wxruby2. Then on the command line do something like > > patch -p0 < glcanvas.diff > > The .diff file describes a set of changes to the files in the wxruby2 > sources. For example, the first change is to amend rake/rakewx.rb line > dealing with wx-config to include the ''gl'' lib. Once the patch has > successfully applied, run ''rake'' and it will rebuild the changed files. > > To run a sample using the newly built library, you might want to do > something like: > > ruby -Ilib samples/minimal/minimal.rb > > All this will vary a bit depending on what OS you''re using. Get in touch > if you''re stuck. > > cheers > alex > > > > _______________________________________________ > wxruby-development mailing list > wxruby-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-development >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-development/attachments/20071017/20b757f3/attachment.html
Hey Sean, Actually, this one I can answer, cause I''ve ran through the same problem myself, and Alex brightly passed along the information to me. The way wxRuby is compiled, is unfortunatly, a specific way, nothing that a Vanilla install from a Repository through Debian, or Ubuntu can support, as many of the things wxRuby looks for, isn''t there where it expects it to be. You''ll need to compile wxWidgets from source, and use the following guide in which to do it: http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets Follow these instructions on building the wxWidgets from source, and it''ll guide you all the way through, and the rake file will not fail you. Trust me on that one. ;-) Mario Steele Sean wrote:> Hi Alex, > > I seem to be having trouble just compiling the SVN... I looked > through the mailing lists but couldn''t find anything relevant. Here''s > the problem: > > I am running Ubuntu, and I go to my directory that contains the > SVN... In this case: ~/development/wxRuby/wxruby2-trunk > > I run ''rake --trace'' and get the following: (Rake version: 0.7.1) > > (in /home/seanh/development/wxRuby/wxruby2-trunk) > rake aborted! > can''t convert nil into String > ./rake/rakewx.rb:101:in `exists?'' > ./rake/rakewx.rb:101:in `use_wx_config'' > ./rake/rakelinux.rb:9 > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' > /home/seanh/development/wxRuby/wxruby2-trunk/rakefile:48 > /usr/lib/ruby/1.8/rake.rb:1828:in `load'' > /usr/lib/ruby/1.8/rake.rb:1828:in `load_rakefile'' > /usr/lib/ruby/1.8/rake.rb:1900:in `run'' > /usr/bin/rake:4 > > It seems to be having trouble with finding the right libraries using > wx-config, if I am understanding the rakefile correctly. If I run > ''wx-config --libs std,stc'' I get: > > -pthread -lwx_gtk2u_stc-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 > -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 > -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8 > > Any ideas where things might be going wrong? I do have wxWidgets > 2.8.1 installed (though I used the .deb file, not compiled from > source) and SWIG v1.3.31 installed. > > Thanks, > Sean Lindsay
Hi Mario, Thanks for the input. I will give it a try in the morning. And thanks for the addition to the new tutorial page. It looks awesome and I am looking forward to working through it soon! Regards, Sean Lindsay On 10/17/07, Mario Steele <mario at ruby-im.net> wrote:> > Hey Sean, > > Actually, this one I can answer, cause I''ve ran through the same problem > myself, and Alex brightly passed along the information to me. The way > wxRuby is compiled, is unfortunatly, a specific way, nothing that a > Vanilla install from a Repository through Debian, or Ubuntu can support, > as many of the things wxRuby looks for, isn''t there where it expects it > to be. You''ll need to compile wxWidgets from source, and use the > following guide in which to do it: > > http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets > > Follow these instructions on building the wxWidgets from source, and > it''ll guide you all the way through, and the rake file will not fail > you. Trust me on that one. ;-) > > Mario Steele > > Sean wrote: > > Hi Alex, > > > > I seem to be having trouble just compiling the SVN... I looked > > through the mailing lists but couldn''t find anything relevant. Here''s > > the problem: > > > > I am running Ubuntu, and I go to my directory that contains the > > SVN... In this case: ~/development/wxRuby/wxruby2-trunk > > > > I run ''rake --trace'' and get the following: (Rake version: 0.7.1) > > > > (in /home/seanh/development/wxRuby/wxruby2-trunk) > > rake aborted! > > can''t convert nil into String > > ./rake/rakewx.rb:101:in `exists?'' > > ./rake/rakewx.rb:101:in `use_wx_config'' > > ./rake/rakelinux.rb:9 > > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > > /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' > > /home/seanh/development/wxRuby/wxruby2-trunk/rakefile:48 > > /usr/lib/ruby/1.8/rake.rb:1828:in `load'' > > /usr/lib/ruby/1.8/rake.rb:1828:in `load_rakefile'' > > /usr/lib/ruby/1.8/rake.rb:1900:in `run'' > > /usr/bin/rake:4 > > > > It seems to be having trouble with finding the right libraries using > > wx-config, if I am understanding the rakefile correctly. If I run > > ''wx-config --libs std,stc'' I get: > > > > -pthread -lwx_gtk2u_stc-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_xrc-2.8 > > -lwx_gtk2u_qa-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8 > > -lwx_gtk2u_core-2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_baseu-2.8 > > > > Any ideas where things might be going wrong? I do have wxWidgets > > 2.8.1 installed (though I used the .deb file, not compiled from > > source) and SWIG v1.3.31 installed. > > > > Thanks, > > Sean Lindsay > _______________________________________________ > wxruby-development mailing list > wxruby-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-development >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-development/attachments/20071018/f4138b10/attachment.html
Mario Steele wrote:> You''ll need to compile wxWidgets from source, and use the > following guide in which to do it: > > http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets >Sean - if you''re going to experiment with GLCanvas, you might well need to add this to the ./configure command: --with-opengl alex
Hi All, I have a question that I hope someone can answer. I am testing out this anonymous glCanvas patch. I have successfully patched the rakefile, and I know that the rakefile was working before the patch. Not anymore..... Rake reports the following: ** Execute obj/GLCanvas.o g++ -c -I/usr/local/lib/wx/include/gtk2-unicode-release-static-2.8-I/usr/local/include/wx- 2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -Wall -g -fno-strict-aliasing -O2 -fPIC -Wno-unused-function -I /var/lib/gems/1.8/gems/RedCloth-3.0.4/bin -I /var/lib/gems/1.8/gems/RedCloth-3.0.4/lib -I /usr/local/lib/site_ruby/1.8 -I /usr/local/lib/site_ruby/1.8/i486-linux -I /usr/local/lib/site_ruby/1.8/i386-linux -I /usr/local/lib/site_ruby -I /usr/lib/ruby/1.8 -I /usr/lib/ruby/1.8/i486-linux -I /usr/lib/ruby/1.8/i386-linux -I . -I /home/seanh/development/wxRuby/wxruby2-trunk/doc/lib -o obj/GLCanvas.o src/GLCanvas.cpp src/GLCanvas.cpp: In function ''VALUE _wrap_new_wxGLCanvas__SWIG_0(int, VALUE*, VALUE)'': src/GLCanvas.cpp:3173: error: ''T_DATA'' was not declared in this scope src/GLCanvas.cpp:3194: error: ''T_DATA'' was not declared in this scope src/GLCanvas.cpp: In function ''VALUE _wrap_new_wxGLCanvas__SWIG_1(int, VALUE*, VALUE)'': src/GLCanvas.cpp:3333: error: ''T_DATA'' was not declared in this scope src/GLCanvas.cpp:3354: error: ''T_DATA'' was not declared in this scope src/GLCanvas.cpp: In function ''VALUE _wrap_new_wxGLCanvas__SWIG_2(int, VALUE*, VALUE)'': etc....... Because it is having trouble with T_DATA, and I am guessing T_DATA is a constant, I am assuming that the header file is missing. Does anyone know what header file might be missing? I don''t think it is any of the header files related to openGL, because it seems to be finding those OK. I suspect it is related to something I am missing on my linux system. Thanks in advance, Regards, Sean On 10/18/07, Alex Fenton <alex at pressure.to> wrote:> > Mario Steele wrote: > > You''ll need to compile wxWidgets from source, and use the > > following guide in which to do it: > > > > http://wxruby.rubyforge.org/wiki/wiki.pl?HowToBuildWxWidgets > > > Sean - if you''re going to experiment with GLCanvas, you might well need > to add this to the ./configure command: > > --with-opengl > > alex > > _______________________________________________ > wxruby-development mailing list > wxruby-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-development >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-development/attachments/20071019/571f4f48/attachment.html
Hi Sean Sean wrote:> src/GLCanvas.cpp: In function ''VALUE _wrap_new_wxGLCanvas__SWIG_0(int, > VALUE*, VALUE)'': > src/GLCanvas.cpp:3173: error: ''T_DATA'' was not declared in this scope > src/GLCanvas.cpp:3194: error: ''T_DATA'' was not declared in this scopeT_DATA should come from ruby.h. On my system it''s in /usr/local/lib/ruby/1.8/i686-linux/; if you installed ruby from a distro package you might need to install ruby-dev. But it''s strange that it should only be a problem with this file. With the GL patch applied, can you still compile other files (eg try rm obj/App.o and then see if rake chokes compiling App.cpp)? cheers alex
Hi, That GLCanvas patch has bugs about T_DATA and GC. Fixed patch is attached, please try this. And I wrote a simple sample, cube.rb. This sample displays a cube and rotates it with arrow keys. It requires ruby-opengl.(http://ruby-opengl.rubyforge.org/index.html) Thanks. Ryuichi Sakamoto -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: glcanvas.diff Url: http://rubyforge.org/pipermail/wxruby-development/attachments/20071022/06336327/attachment.pl -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: cube.rb Url: http://rubyforge.org/pipermail/wxruby-development/attachments/20071022/06336327/attachment-0001.pl
kumaryu wrote:> That GLCanvas patch has bugs about T_DATA and GC. > Fixed patch is attached, please try this. > > And I wrote a simple sample, cube.rb.Many thanks for this patch and sample. We will look to apply it for 1.9.3. Is what is included in the wxWidgets distribution enough to make GLCanvas work, if the library is configured --with-opengl? Or are third party libraries required? cheers alex
> Is what is included in the wxWidgets distribution enough to make > GLCanvas work, if the library is configured --with-opengl? Or are third > party libraries required?I am working on integrating this patch right now. WxWidgets will need to be built with --with-opengl and the ruby-opengl gem will need to be installed. So far I have it running on the Mac and need to test on Windows and Linux. Sean
Sean Long wrote:>> Is what is included in the wxWidgets distribution enough to make >> GLCanvas work, if the library is configured --with-opengl? Or are third >> party libraries required? >> > > I am working on integrating this patch right now. WxWidgets will need > to be built with --with-opengl and the ruby-opengl gem will need to be > installed. So far I have it running on the Mac and need to test on > Windows and Linux. >Cool, thanks. What''s your view about it becoming part of the standard distributions? If we build --with-opengl for the gems, but ruby-opengl isn''t installed, will it still work? I''m going to try wrapping the Graphics* classes which should provide a better canvas (with anti-aliasing etc) alex
> Cool, thanks. What''s your view about it becoming part of the standard > distributions?I am leaning toward including it as part of the standard. My builds os OS X for Intel have been built with --with-opengl for awhile (I wanted to tackle OpenGL awhile ago but never got around to it).> If we build --with-opengl for the gems, but ruby-opengl > isn''t installed, will it still work?At least with the cube.rb sample the program will crash when trying to load the gl and glu libraries that are included with ruby-opengl> I''m going to try wrapping the Graphics* classes which should provide a > better canvas (with anti-aliasing etc)Sounds good to me I have successfully integrated the OpenGL patch and works on Mac OS X and Windows have not tried Linux yet. I will wait on commiting the changes until we figure out if it is going to be standard or not. Sean
Sean Long wrote:>> If we build --with-opengl for the gems, but ruby-opengl >> isn''t installed, will it still work? >> > > At least with the cube.rb sample the program will crash when trying to > load the gl and glu libraries that are included with ruby-opengl >If the rest of the library works fine without ruby-opengl being installed (ie, it''s only needed to use Wx::GLCanvas, not just to load wxruby), then I''d be glad to see it included. I don''t mind building Wx --with-opengl for the Linux gem if I don''t have to install anything else. We could add a test in the Rakefile similar to that used for STC to skip compiling the GL classes if Wx hasn''t been built that way. Then other people building their own wxRuby can still do so without any of the optional Wx libs.> I have successfully integrated the OpenGL patch and works on Mac OS X > and Windows have not tried Linux yet. I will wait on commiting the > changes until we figure out if it is going to be standard or not. >Please go ahead and commit, I wouldn''t mind giving it a spin on Linux. cheers alex
Hi Sean, I can do the Linux testing. I actually did start on it, but was waiting to find out whether the ruby-opengl gem was actually required, and if so, whether we wanted to still pursue it. It sounds like we do based on your comment, so I am happy to run the Linux tests. Regards, Sean Lindsay On 10/29/07, Sean Long <sean.m.long at gmail.com> wrote:> > > Is what is included in the wxWidgets distribution enough to make > > GLCanvas work, if the library is configured --with-opengl? Or are third > > party libraries required? > > I am working on integrating this patch right now. WxWidgets will need > to be built with --with-opengl and the ruby-opengl gem will need to be > installed. So far I have it running on the Mac and need to test on > Windows and Linux. > > Sean > _______________________________________________ > wxruby-development mailing list > wxruby-development at rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-development >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/wxruby-development/attachments/20071029/94c91439/attachment.html
> I don''t mind building Wx --with-opengl for the Linux gem if I don''t have > to install anything else. We could add a test in the Rakefile similar to > that used for STC to skip compiling the GL classes if Wx hasn''t been > built that way. Then other people building their own wxRuby can still do > so without any of the optional Wx libs.I changed the rakefile to work like it does with the STC library so it will only be included if available. Please bang on it a bit and let me know of any weaknesses. Sean
Sean Long wrote:> Please bang on it a bit and let me know of any weaknesses. >Sean (Long) : Thanks for doing the integration and commit, and also to Ryuichi for the original patch Sean (Lindsay) : If you could give some it testing on Linux that would be great, as I''m half-way through working on other stuff (drag''n''drop & clipboard) and will take me another few days at least before that''s settled down cheers alex