List Info

Thread: Re: A bug in wxRuby. Segmentation fault in random situations.




Re: A bug in wxRuby. Segmentation fault in random situations.
user name
2008-03-01 05:48:56
Hi Alex,

Thanks for all your help.
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
.src/GLCanvas.h(23) : error C2629: unexpected 'class
SwigDirector_wxGLCanvas ('
.src/GLCanvas.h(23) : error C2238: unexpected token(s)
preceding ';'
.src/GLCanvas.h(24) : error C2629: unexpected 'class
SwigDirector_wxGLCanvas ('
.src/GLCanvas.h(24) : error C2238: unexpected token(s)
preceding ';'
src/GLCanvas.cpp(2393) : error C2614:
'SwigDirector_wxGLCanvas' :
illegal member initialization: 'wxGLCanvas' is not a base or
member
src/GLCanvas.cpp(2399) : error C2061: syntax error :
identifier 'wxGLCanvas'
src/GLCanvas.cpp(2399) : error C2511:
'SwigDirector_wxGLCanvas::SwigDirector_wxGLCanvas' :
overloaded member
function 'void (unsigned long,class wxWindow *)' not found
in
'SwigDirector_wxGLCanvas'
        .src/GLCanvas.h(19) : see declaration of
'SwigDirector_wxGLCanvas'
src/GLCanvas.cpp(4019) : fatal error C1004: unexpected end
of file found

I downloaded the latest source from svn.
I am using:
wxWidgets 2.8.7
swigwin-1.3.34
rake-0.8.1
windows xp sp2
msvc++ 6.0

(btw - in the wiki :
http://wxruby.rubyforge.org/wiki/wiki.pl?Installing
FromSource 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)

-- 
Jacek Nowak
jacekwiktorgmail.com
_______________________________________________
wxruby-users mailing list
wxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users

Re: A bug in wxRuby. Segmentation fault in random situations.
country flaguser name
United Kingdom
2008-03-01 06:37:37
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?Installing
FromSource 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


_______________________________________________
wxruby-users mailing list
wxruby-usersrubyforge.org
ht
tp://rubyforge.org/mailman/listinfo/wxruby-users

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )