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 runtime libraries. I also have
wxWidgets 2.8.12 version installed? Trying to compile the osgviewerWX example,
compiler produces following errorswhat 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 '{'
tokenD:\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
scopeD:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:50:21:
error: 'WX_GL_RGBA' was not declared in this
scopeD:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:51:21:
error: 'WX_GL_DEPTH_SIZE' was not declared in this
scopeD:\OSG_FOLDER\OpenSceneGraph-3.0.0\examples\osgviewerWX\osgviewerWX.cpp:53:21:
error: 'WX_GL_STENCIL_SIZE' was not declared in this
scopeD:\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
declaredD:\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