Hello, I am a newbie to wx and wxruby, I just built wxruby2 on my gentoo box. At first it did not work. So I post a little message,it might help others. At first a cryptic message was shown SWIG Version 1.3.21 Copyright (c) 1995-1998 University of Utah and the Regents of the University of California Copyright (c) 1998-2003 University of Chicago Compiled with i686-pc-linux-gnu-g++ [i686-pc-linux-gnu] Please see http://www.swig.org for reporting bugs and further information Doing slower check for SWIG 1.3.29 rake aborted! Don''t know how to build task ''src/App.cpp'' (See full trace by running task with --trace) - It turns out the by default swig on gentoo is not compiled with ruby support and the default version is older then the recommended one so I installed a new swig version with ruby support #edited /etc/portage/package.keyword #and added dev-lang/swig #edit /etc/portage/package.use #added dev-lang/swig ruby The second point where it failed was here src/App.cpp:1622:21: wx/init.h: No such file or directory src/App.cpp: In member function `bool wxRubyApp::Initialize(int&, wxChar**)'': src/App.cpp:1742: error: no matching function for call to `wxRubyApp::Initialize (int&, wxChar**&)'' /usr/include/wx/gtk/app.h:57: note: candidates are: static bool wxApp::Initializ e() rake aborted! Command failed with status (1): [c++ -c -I/usr/lib/wx/include/gtk2-2.4 -DG...] (See full trace by running task with --trace) my gentoo has two versions of wx installed (2.4.2 and 2.6.2) (2.4 is the default), so the wx-config points to the 2.4 configuration while the wx-config-2.6 to the new version. I changed wx-config for wx-config-2.6 in rake/rakewx.rb at line 41 perhaps the developers can add a check to see if wx-config-2.6 is in the path? anyway now it all works and I can start playing around Thanks Kees Jongenburger
On Wed, 2006-08-23 at 22:01 +0200, Kees Jongenburger wrote:> I am a newbie to wx and wxruby, I just built wxruby2 on my gentoo box. > At first it did not work. So I post a little message,it might help others.Hello, welcome, and thanks for contributing!> At first a cryptic message was shown > > SWIG Version 1.3.21Yes, we have a bug in our tracker noting that older versions of SWIG are not properly detected. This could be fixed by someone who knows nothing about C++, SWIG, or even wxRuby. It would be great if someone could volunteer to take care of it.> my gentoo has two versions of wx installed > (2.4.2 and 2.6.2) (2.4 is the default), so the wx-config points to the > 2.4 configuration while the wx-config-2.6 to the new version. > I changed wx-config for wx-config-2.6 in rake/rakewx.rb at line 41 > perhaps the developers can add a check to see if wx-config-2.6 is in the path?Interesting. I just added a bug to the tracker requesting a wx version check in the rakefile. For Linux, it''s very easy. I seem to recall that MSWin doesn''t have wx-config available, so I''m not sure how the version would be detectable on that platform.> anyway now it all works and I can start playing aroundExcellent. Please report your findings, good or bad. Kevin
On 8/23/06, Kevin Smith <wxruby at qualitycode.com> wrote:> On Wed, 2006-08-23 at 22:01 +0200, Kees Jongenburger wrote: > > I am a newbie to wx and wxruby, I just built wxruby2 on my gentoo box. > > At first it did not work. So I post a little message,it might help others. > > Hello, welcome, and thanks for contributing!Thanks, I am playing with the maemo platform. This was the first run on the sdk. You might not enjoy it as much as I did but here is it http://www.keesj.dds.nl/n770/ruby/wxruby/textctrl_23_08_2006.mpeg I just can''t wait untill I can develop my gui''s in ruby on this little toy greetings
Kevin Smith
2006-Aug-24 13:45 UTC
[Wxruby-users] wxRuby and maemo (was: building wxruby2 from cvs (gentoo))
On Thu, 2006-08-24 at 07:41 +0200, Kees Jongenburger wrote:> I am playing with the maemo platform. This was the first run on the sdk. > You might not enjoy it as much as I did but here is it > http://www.keesj.dds.nl/n770/ruby/wxruby/textctrl_23_08_2006.mpeg > > I just can''t wait untill I can develop my gui''s in ruby on this little toyI had not heard of maemo. I assume you mean this: http://www.maemo.org/about.html So you hope to be able to write apps in wxRuby that will run on this mobile Nokia tablet device? Interesting. Kevin
Kees Jongenburger
2006-Aug-24 20:22 UTC
[Wxruby-users] wxRuby and maemo (was: building wxruby2 from cvs (gentoo))
On 8/24/06, Kevin Smith <wxruby at qualitycode.com> wrote:> On Thu, 2006-08-24 at 07:41 +0200, Kees Jongenburger wrote: > > I just can''t wait untill I can develop my gui''s in ruby on this little toy > > I had not heard of maemo. I assume you mean this: > > http://www.maemo.org/about.htmlYes, it is the platform that runs on the Nokia 770 http://europe.nokia.com/770> > So you hope to be able to write apps in wxRuby that will run on this > mobile Nokia tablet device? Interesting.Yes, I even hope to write apps "on" that same Nokia(using a real keyboard of course) Today I actually managed to get wxruby running on the real device. I did not want to install rake/gem on the device since it might become to much So I tried creating a debian package for wxruby (failed because i don''t know how I am supposed to install a ruby package without rake). I ended up just copying wx.rb and wxruby2.so to the device and it worked. I must note that before I was able to do this I had to run strip on the wxruby2.so (it was 41MB !!!) and back to a few MB after the strip. The startup time of the textctrl app was really slow about 10 seconds or so.One running the performace seamed ok. I don''t know what the slowest component it It might be interresting to start ruby , load the libs and try to run multiple apps in the interpreter. it that possible? That would greatly reduce startup time. The bigest problem right now is that wx ins''t ported to the maemo platform. It runs the gtk code , but I there are issues :) The other problem Is that I have 2 week holidays starting tomorrow :) Thanks for the interest
Apparently Analagous Threads
- [1022] trunk/wxruby2/swig/classes/App.i: Memory mgmt: use Wx::App to mark still-alive Windows, set up Wx::THE_APP const
- [934] branches/wxruby2/wxwidgets_282: Rename OnAssert to OnAssertFailure, reflecting wx 2.8 API
- RE: wxRuby
- Linux Installation Problem
- wxruby/version/linux