Hi Cedric,
I guess it's because there are two examples in the same directory. I
could split it if necessary.
I'll try that locally and see if it makes things better.
A few other problems:
_______________________________________________
In include/osgAnimation/Export:
#if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__) ||
defined( __BCPLUSPLUS__) || defined( __MWERKS__)
# if defined( OSG_LIBRARY_STATIC )
# define OSGANIMATION_EXPORT
# elif defined( OSGANIMATION_LIBRARY )
# define OSGANIMATION_EXPORT __declspec(dllexport)
# else
# define OSGANIMATION_EXPORT __declspec(dllimport)
#endif
#else
#define OSGANIMATION_EXPORT
#endif
Did you mean to use OSG_LIBRARY_STATIC, but OSGANIMATION_LIBRARY?
Perhaps both should be OSG_*, or both should be OSGANIMATION_*? And the
src/osgAnimation/CMakeLists.txt defines -DOSG_LIBRARY but not
-DOSGANIMATION_LIBRARY. So I get "inconsistent DLL linkage" warnings,
and it will later not link when it comes to linking executables.
Using OSG_LIBRARY in the defined() tests works, but perhaps you want to
name it differently for OSGANIMATION. Just make sure it's defined in the
CMakeLists.txt and that it's consistent.
_______________________________________________
In src/osgAnimation/Timeline.cpp:
void RunTimeline::RunTimeline::operator()(Timeline* timeline)
should be:
void RunTimeline::operator()(Timeline* timeline)
_______________________________________________
In src/osgAnimation/AnimationManager.cpp:
On Windows, sys/time.h does not exist. You should probably use
osg::Timer for this, it already uses gettimeofday on Linux and
QueryPerformanceCounter on Windows, so it will work cross-platform.
_______________________________________________
That's it for now, I'll wait till these are fixed before continuing. Thanks,
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org