Hi Soyna,

The compile errors look likely due to a mis-match between which version of
WxWindows the osgviewerWX supports and the version you have installed.  I
am not a WxWindows user myself, and the osgviewerWX example was a
contribution from the community so I don't have any expertise with
WxWindows - members of the community like yourself have to provide support
fringe functionality like this.

The only direct things I can check svn logs from the osgviewerWX.cpp on
svn/trunk or OSG-3.2.1 to see if there have been any updates since 3.0.

In general it's much easier for myself and other members of the community
to support users when they use up to date versions of the OSG, as it's much
easier for us to test the problems directly and also easier to roll our
fixes.

Robert.


On 11 August 2014 07:01, Sonya Blade <[email protected]> wrote:

> Dear All,
>
> I have the OSG 3.0 version build for Win64 with MinGW and I set C::B to
> run the OSG examples search directories, linker and run
> time libraries. I also have wxWidgets 2.8.12 version installed? Trying to
> compile the osgviewerWX example, compiler produces following errors
> what can be the reason of that ?
>
> I'll appreciate your help,
>
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.h:14:1:
> error: expected class-name before '{' token
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.h: In
> member function 'virtual bool GraphicsWindowWX::isRealizedImplementation()
> const':
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.h:70:70:
> error: 'class OSGCanvas' has no member named 'IsShownOnScreen'
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:
> In member function 'virtual bool wxOsgApp::OnInit()':
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:49:25:
> error: 'WX_GL_DOUBLEBUFFER' was not declared in this scope
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:50:21:
> error: 'WX_GL_RGBA' was not declared in this scope
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:51:21:
> error: 'WX_GL_DEPTH_SIZE' was not declared in this scope
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:53:21:
> error: 'WX_GL_STENCIL_SIZE' was not declared in this scope
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:
> At global scope:
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:117:1:
> error: 'wxGLCanvas' has not been declared
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:118:5:
> error: invalid static_cast from type 'void (OSGCanvas::*)(wxSizeEvent&)' to
> type 'wxSizeEventFunction {aka void (wxEvtHandler::*)(wxSizeEvent&)}'
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:119:5:
> error: invalid static_cast from type 'void (OSGCanvas::*)(wxPaintEvent&)'
> to type 'wxPaintEventFunction {aka void (wxEvtHandler::*)(wxPaintEvent&)}'
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:120:5:
> error: invalid static_cast from type 'void (OSGCanvas::*)(wxEraseEvent&)'
> to type 'wxEraseEventFunction {aka void (wxEvtHandler::*)(wxEraseEvent&)}'
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:122:5:
> error: invalid static_cast from type 'void (OSGCanvas::*)(wxKeyEvent&)' to
> type 'wxCharEventFunction {aka void (wxEvtHandler::*)(wxKeyEvent&)}'
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:123:5:
> error: invalid static_cast from type 'void (OSGCanvas::*)(wxKeyEvent&)' to
> type 'wxCharEventFunction {aka void (wxEvtHandler::*)(wxKeyEvent&)}'
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:125:5:
> error: invalid static_cast from type 'void (OSGCanvas::*)(wxMouseEvent&)'
> to type 'wxMouseEventFunction {aka void (wxEvtHandler::*)(wxMouseEvent&)}'
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:126:5:
> error: invalid static_cast from type 'void (OSGCanvas::*)(wxMouseEvent&)'
> to type 'wxMouseEventFunction {aka void (wxEvtHandler::*)(wxMouseEvent&)}'
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:127:5:
> error: invalid static_cast from type 'void (OSGCanvas::*)(wxMouseEvent&)'
> to type 'wxMouseEventFunction {aka void (wxEvtHandler::*)(wxMouseEvent&)}'
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:128:5:
> error: invalid static_cast from type 'void (OSGCanvas::*)(wxMouseEvent&)'
> to type 'wxMouseEventFunction {aka void (wxEvtHandler::*)(wxMouseEvent&)}'
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:129:5:
> error: invalid static_cast from type 'void (OSGCanvas::*)(wxMouseEvent&)'
> to type 'wxMouseEventFunction {aka void (wxEvtHandler::*)(wxMouseEvent&)}'
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:130:5:
> error: invalid static_cast from type 'void (OSGCanvas::*)(wxMouseEvent&)'
> to type 'wxMouseEventFunction {aka void (wxEvtHandler::*)(wxMouseEvent&)}'
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:131:5:
> error: invalid static_cast from type 'void (OSGCanvas::*)(wxMouseEvent&)'
> to type 'wxMouseEventFunction {aka void (wxEvtHandler::*)(wxMouseEvent&)}'
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:132:5:
> error: invalid static_cast from type 'void (OSGCanvas::*)(wxMouseEvent&)'
> to type 'wxMouseEventFunction {aka void (wxEvtHandler::*)(wxMouseEvent&)}'
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:133:5:
> error: invalid static_cast from type 'void (OSGCanvas::*)(wxMouseEvent&)'
> to type 'wxMouseEventFunction {aka void (wxEvtHandler::*)(wxMouseEvent&)}'
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:
> In constructor 'OSGCanvas::OSGCanvas(wxWindow*, wxWindowID, const wxPoint&,
> const wxSize&, long int, const wxString&, int*)':
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:138:7:
> error: class 'OSGCanvas' does not have any field named 'wxGLCanvas'
> D:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:
> In member function 'void OSGCanvas::OnPaint(wxPaintEvent&)':
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to