[wxruby-users] A bug in wxRuby. Segmentation fault in random situations.
Alex Fenton
alex at pressure.to
Sat Mar 1 07:37:37 EST 2008
Hi Jacek
Jacek Nowak wrote:
> I am trying to compile the latest source from svn.
> When I run "rake" everything seems to compile well but after 2 or 3
> minutes I get the following error:
>
> GLCanvas.cpp
> .\src/GLCanvas.h(19) : error C2504: 'wxGLCanvas' : base class undefined
>
I've always skipped GLCanvas on my Windows build, so I don't know
exactly what's up. I'm guessing some missing library i.e. opengl. Sean
makes the release windows build so may have some ideas.
If you don't need GLCanvas, probably easiest just to avoid it.
Method 1) This should force wxRuby to skip this class, but you'll need
to remember this argument every time, or set an environment variable.
Delete src/GLCanvas.cpp then build wxRuby with:
rake WXRUBY_EXCLUDED=GLCanvas
Method 2) Rebuild wxWidgets without the USE_OPENGL argument to nmake.
Then wxRuby should notice that class isn't supported and skip it.
> (btw - in the wiki :
> http://wxruby.rubyforge.org/wiki/wiki.pl?InstallingFromSource it is
> written that I should use swig-1.3.31 but when I tried to compile with
> this version rake gave me an error that I should use 1.3.34)
>
>
Yeah, we upgraded to the latest SWIG releases in the dev cycle as they
have ruby fixes pertinent to wxRuby. The code was already checking, but
I've updated the wiki to reflect this. Thanks
alex
More information about the wxruby-users
mailing list