From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Bruno Fanini
Sent: Friday, 20 October 2006
11:41 PM
To: osg users
Subject: Re: [osg-users] Another
wxWidgets example
Hi,
I have some trouble compiling wxOsgCanvasTest.
I'm using OSG 1.2 and wxWidgets 2.6.3 just recompiled both clean on WinXP PRO,
using my VC++ 2005 Express Edition.
I've properly set up OSG_INC_DIR, OSG_LIB_DIR, OSG_LIB_DIR, OPENTHREADS_LIB_DIR
environment variables and successfully converted solution file .sln to version
8
Below output i got:
1>------ Build
started: Project: wxOsgCanvasTest, Configuration: Release Win32 ------
1>Compiling...
1>wxOsgCanvas.cpp
1>C:\OpenSceneGraph- 1.2\OpenSceneGraph\include\osg/NodeVisitor(299) :
warning C4512: 'osg::NodeAcceptOp' : assignment operator could not be generated
1> C:\OpenSceneGraph-1.
2\OpenSceneGraph\include\osg/NodeVisitor(294) : see declaration of
'osg::NodeAcceptOp'
1>.\wxOsgCanvas.cpp(8) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(8) : error C2653: 'wxGLCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(8) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(8) : error C2065: 'sm_eventTableEntries' : undeclared
identifier
1>.\wxOsgCanvas.cpp(8) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(8) : error C2270: 'GetEventTable' : modifiers not
allowed on nonmember functions
1>.\wxOsgCanvas.cpp(8) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(8) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(8) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(8) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(8) : error C2270: 'GetEventHashTable' : modifiers not
allowed on nonmember functions
1>.\wxOsgCanvas.cpp(8) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(8) : error C2653: 'wxOsgCanvas' : is not a class or namespace
name
1>.\wxOsgCanvas.cpp(8) : error C2040: 'sm_eventTableEntries' : 'const
wxEventTableEntry []' differs in levels of indirection from ''unknown-type''
1>.\wxOsgCanvas.cpp(9) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(9) : error C2065: 'OnSize' : undeclared identifier
1>.\wxOsgCanvas.cpp(9 ) : error C2466: cannot allocate an array of constant size 0
1>.\wxOsgCanvas.cpp(9) : error C2440: 'initializing' : cannot convert from
'int' to 'const wxEventTableEntry'
1> No constructor could take
the source type, or constructor overload resolution was ambiguous
1>.\wxOsgCanvas.cpp(10) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(10) : error C2065: 'OnPaint' : undeclared identifier
1>.\wxOsgCanvas.cpp(1 1) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(11) : error C2065: 'OnEraseBackground' : undeclared
identifier
1>.\wxOsgCanvas.cpp(1 2) : error C2653: 'wxOsgCanvas' : is not a class or namespace
name
1>.\wxOsgCanvas.cpp(12) : error C2065: 'OnEnterWindow' : undeclared
identifier
1>.\wxOsgCanvas.cpp(13) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(13) : error C2065: 'OnIdle' : undeclared identifier
1>.\wxOsgCanvas.cpp(14) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(14) : error C2065: 'OnChar' : undeclared identifier
1>.\wxOsgCanvas.cpp(15) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(15) : error C2065: 'OnKeyDown' : undeclared identifier
1>.\wxOsgCanvas.cpp(1 6) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(16) : error C2065: 'OnKeyUp' : undeclared identifier
1>.\wxOsgCanvas.cpp(17) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(17) : error C2065: 'OnLeftDown' : undeclared identifier
1>.\wxOsgCanvas.cpp(18) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(18) : error C2065: 'OnMiddleDown' : undeclared
identifier
1>.\wxOsgCanvas.cpp(19) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(19) : error C2065: 'OnRightDown' : undeclared identifier
1>.\wxOsgCanvas.cpp(2 0) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(20) : error C2065: 'OnMotion' : undeclared identifier
1>.\wxOsgCanvas.cpp(21) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(21) : error C2065: 'OnLeftUp' : undeclared identifier
1>.\wxOsgCanvas.cpp(22) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(22) : error C2065: 'OnMiddleUp' : undeclared identifier
1>.\wxOsgCanvas.cpp(23) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(23) : error C2065: 'OnRightUp' : undeclared identifier
1>.\wxOsgCanvas.cpp(2 4) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(24) : error C2065: 'OnMouseWheel' : undeclared identifier
1>.\wxOsgCanvas.cpp(2 7) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(28) : error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int
1>.\wxOsgCanvas.cpp( 29)
: error C2065: 'wxGLCanvas' : undeclared identifier
1>.\wxOsgCanvas.cpp(29) : error C2059: syntax error : ')'
1>.\wxOsgCanvas.cpp(29) : error C2612: trailing 'constant' illegal in
base/member initializer list
1>.\wxOsgCanvas.cpp(29) : error C2143: syntax error : missing ';' before ')'
1>.\wxOsgCanvas.cpp(29) : error C2143: syntax error : missing ';' before ')'
1>.\wxOsgCanvas.cpp(34) : error C2143: syntax error : missing ';' before '{'
1>.\wxOsgCanvas.cpp(37) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(37) : error C2275: 'wxWindow' : illegal use of this type
as an _expression_
1> c:\wxWidgets-
2.6.3\include\wx/msw/window.h(48) : see declaration of 'wxWindow'
1>.\wxOsgCanvas.cpp(37) : error C2059: syntax error : 'const'
1>.\wxOsgCanvas.cpp(44) : error C2143: syntax error : missing ';' before '{'
1>.\wxOsgCanvas.cpp(47) : error C2653: 'wxOsgCanvas' : is not a class or
namespace name
1>.\wxOsgCanvas.cpp(47) : fatal error C1903: unable to recover from previous
error(s); stopping compilation
1>MainFrame.cpp
1>.\MainFrame.cpp(102) : error C2514: 'wxOsgCanvas' : class has no
constructors
1> c:\documents and
settings\bruno\my documents\work\wx-osg-examples\wxosgcanvas-
0.2\mainframe.h(33) : see declaration of 'wxOsgCanvas'
1>.\MainFrame.cpp(103) : error C2664: 'wxSizerItem *wxSizer::Add(wxWindow
*,int,int,int,wxObject *)' : cannot convert parameter 1 from 'wxOsgCanvas *' to
'wxWindow *'
1> Types pointed to are
unrelated; conversion requires reinterpret_cast, C-style cast or function-style
cast
1>.\MainFrame.cpp(119) : error C2027: use of undefined type 'wxOsgCanvas'
1> c:\documents and
settings\bruno\my documents\work\wx-osg-examples
\wxosgcanvas-0.2\mainframe.h(33) : see declaration of 'wxOsgCanvas'
1>.\MainFrame.cpp(119) : error C2227: left of '->init' must point to
class/struct/union/generic type
1>Generating Code...
1>Build log was saved at "file://c:\Documents
and Settings\Bruno\My Documents\Work\wx-osg-examples\wxOsgCanvas-0.2\ReleaseMSW\Bui
ldLog.htm"
1>wxOsgCanvasTest - 66 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Any ideas???
Regards,
Bruno
On 10/13/06, Gian Lorenzetto <[EMAIL PROTECTED]>
wrote:
>
> Everyone,
>
> I've added a simple example integrating OSG with wxWidgets on the wiki.
It's built against OSG 1.1, so you're mileage may vary with different versions
of OSG, but any changes to get it compiling should be small.
>
> The zip contains a VS7.1 solution file, as well as a DialogBlocks project
file. I used DialogBlocks to construct the (very, very) simple interface.
>
> Basically, it should demostrate the integration of a wxGLCanvas with a
SceneView and a manipulator.
>
> Depending on your environment it may "just work" or you might
have to work at it a bit. If you have any problems let me know so I can work on
making it easier for others.
>
> Cheers,
> Gian