I presuem osgTcl hasn't been kept up to date with the latest OSG, I know that Marco has been very very busy with work so has probably not been able to keep track of changes.
First up osgGA::GUIEventAdapter is now a concrete class, rather than a base class. If you wish to generate osgGA events than its now best to go via osgGA::EventQueue which has convinience methods for generating events, and do so in a thread safe way. In the CVS version of the OSG you'll find osgGA::SimpleViewer and a number of osgsimplerviewer* examples for various windowing toolkits. These might well be the ideal base for future versions of osgTcl.
As for ref_ptr::take(), this has been removed to rationionalise the API, use ref_ptr::release() instead, it works in exactly the same way, and is actually around before the 1.0 era too, release() deprecated take().
Robert.
On 10/12/06, bertrand greslier <[EMAIL PROTECTED]> wrote:
Hi everybody,
I have just use OSG1.2 and lost some hours
to find osgGA::GUIEventAdapter interface has changed and
is now a class with data and non virtual methods !!!
It is not a reproch but just a warning for everybody has this problem...
But I have a true problem with compilation of osgTcl on this 1.2 version
I have these errors with i586-mingw32msvc-gcc-3.4.4
g++ -Wall -c Interpreter.cpp
In file included from /home/bertrand/localwin32/include/osgIntrospection/variant_cast:19,
from Interpreter.cpp:14:
/home/bertrand/localwin32/include/osgIntrospection/ReaderWriter:66: error: invalid use of `::'
/home/bertrand/localwin32/include/osgIntrospection/ReaderWriter:66: error: `wostream' declared as a `virtual' field
/home/bertrand/localwin32/include/osgIntrospection/ReaderWriter:66: error: expected `;' before '&' token
/home/bertrand/localwin32/include/osgIntrospection/ReaderWriter:69: error: expected `;' before "virtual"
/home/bertrand/localwin32/include/osgIntrospection/ReaderWriter:69: error: invalid use of `::'
/home/bertrand/localwin32/include/osgIntrospection/ReaderWriter:69: error: `wistream' declared as a `virtual' field
/home/bertrand/localwin32/include/osgIntrospection/ReaderWriter:69: error: expected `;' before '&' token
/home/bertrand/localwin32/include/osgIntrospection/ReaderWriter:72: error: expected `;' before "virtual"
/home/bertrand/localwin32/include/osgIntrospection/ReaderWriter:121: error: invalid use of `::'
/home/bertrand/localwin32/include/osgIntrospection/ReaderWriter:121: error: `wostream' declared as a `virtual' field
/home/bertrand/localwin32/include/osgIntrospection/ReaderWriter:121: error: expected `;' before '&' token
/home/bertrand/localwin32/include/osgIntrospection/ReaderWriter:126: error: expected `;' before "virtual"
/home/bertrand/localwin32/include/osgIntrospection/ReaderWriter:126: error: invalid use of `::'
/home/bertrand/localwin32/include/osgIntrospection/ReaderWriter:126: error: `wistream' declared as a `virtual' field
/home/bertrand/localwin32/include/osgIntrospection/ReaderWriter:126: error: expected `;' before '&' token
/home/bertrand/localwin32/include/osgIntrospection/ReaderWriter:132: error: expected `;' before "virtual"
Interpreter.cpp: In function `int cmd_loadwrapper(State*, Tcl_Interp*, int, Tcl_Obj* const*)':
Interpreter.cpp:230: warning: unused variable 'wrongargs'
Interpreter.cpp: In function `int cmd_readNodeFile(State*, Tcl_Interp*, int, Tcl_Obj* const*)':
Interpreter.cpp:288: error: 'class osg::ref_ptr<osg::Node>' has no member named 'take'
make: *** [Interpreter.o] Erreur 1
I don't understand this error.
I haven't errors with OSGv1.0 and G++4.0 on linux.
I haven't test if i586-mingw32msvc-gcc-3.4.4 and OSGv1.0 is ok.
thanks in advance for your help.
Bertrand Greslier.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
