Hi David,

  Add  #include <osg/Geode> to Glyph file.

  At least it worked for me.


  Best Regards,
  Javier Taibo.


On Sun, Sep 26, 2010 at 8:41 AM, David Wilson <[email protected]> wrote:

> Hi,
>
> I checked out the trunk of OSG so I could get into the new Qt stuff.
>
> I'm compiling using the version of MinGW included with Qt 4.7 - I think
> it's 4.4.0, and I get this error:
>
>
> > ... Building CXX object
> src/osgText/CMakeFiles/osgText.dir/DefaultFont.obj
> >
> > In file included from C:\OpenSceneGraph\src\osgText\/DefaultFont.h:19,
> >                  from C:\OpenSceneGraph\src\osgText\DefaultFont.cpp:18:
> > C:\OpenSceneGraph\include/osg/ref_ptr: In destructor
> 'osg::ref_ptr<T>::~ref_ptr() [with T = osg::Geode]':
> > C:\OpenSceneGraph\include/osgText/Glyph:101:   instantiated from here
> > C:\OpenSceneGraph\include/osg/ref_ptr:35: error: invalid use of
> incomplete type 'struct osg::Geode'
> > C:\OpenSceneGraph\include/osg/Image:412: error: forward declaration of
> 'struct osg::Geode'
> > mingw32-make[2]: *** [src/osgText/CMakeFiles/osgText.dir/DefaultFont.obj]
> Error 1
> > mingw32-make[1]: *** [src/osgText/CMakeFiles/osgText.dir/all] Error 2
> > mingw32-make: *** [all] Error 2
>
>
> Hoping someone can give me an unofficial workaround for this.
>
> Thank you!
>
> Cheers,
> David Wilson
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=32074#32074
>
>
>
>
>
> _______________________________________________
> 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