True … this will fix it for osgUtil … but osgIntrospection still falls over it (see below). Thus I think the wrong TexMat was checked in …  a modified constructor does the trick

 

While we are at it … the producer won’t compile unless the files:

 

Util.cpp and

PipeTimer.cpp

 

Are added to the VS project …

 

Frank

 

TexMat.cpp

../../../include\osgIntrospection\InstanceCreator(124) : error C2664: 'osg::TexMat::TexMat(const osg::TexMat &,const osg

::CopyOp &)' : cannot convert parameter 1 from 'const osg::Matrix' to 'const osg::TexMat &'

        Reason: cannot convert from 'const osg::Matrix' to 'const osg::TexMat'

        No constructor could take the source type, or constructor overload resolution was ambiguous

        ../../../include\osgIntrospection\TypedConstructorInfo(55) : see reference to function template instantiation 'o

sgIntrospection::Value osgIntrospection::ObjectInstanceCreator<T>::create<P0>(osgIntrospection::Value &)' being compiled

 

        with

        [

            T=osgIntrospection::Reflector<osg::TexMat>::reflected_type,

            P0=const osg::Matrix &

        ]

        ../../../include\osgIntrospection\TypedConstructorInfo(51) : while compiling class-template member function 'osg

Introspection::Value osgIntrospection::TypedConstructorInfo1<C,IC,P0>::createInstance(osgIntrospection::ValueList &) con

st'

        with

        [

            C=osgIntrospection::Reflector<osg::TexMat>::reflected_type,

            IC=osgIntrospection::ObjectReflector<osg::TexMat>::instance_creator_type,

            P0=const osg::Matrix &

        ]

        \OSG\OpenSceneGraph\src\osgWrappers\osg\TexMat.cpp(30) : see reference to class template instantiation 'osgIntro

spection::TypedConstructorInfo1<C,IC,P0>' being compiled

        with

        [

            C=osgIntrospection::Reflector<osg::TexMat>::reflected_type,

            IC=osgIntrospection::ObjectReflector<osg::TexMat>::instance_creator_type,

            P0=const osg::Matrix &

        ]

 

From: Adrian Egli [mailto:[EMAIL PROTECTED]
Sent: Monday, August 28, 2006 1:16 PM
To: osg users
Subject: [osg-users] Re: CVS Checkout this event: error in compliation with VC7 (VS2003)

 

i guess this will fix the compile error:
                        osg::TexMat* textMat = new osg::TexMat();
                        textMat->setMatrix(matrix);
                        stateset->setTextureAttribute(unit, textMat);
..or there is something wrong in the CVS system, wrong file checked in... etc.

regards
adegli

2006/8/28, Adrian Egli <[EMAIL PROTECTED] >:

Compiling...
Optimizer.cpp
\DATEN\DEV\OpenSceneGraphCVS\OpenSceneGraph\src\osgUtil\Optimizer.cpp(3831) : error C2664: 'osg::TexMat::TexMat(const osg::TexMat &,const osg::CopyOp &)' : cannot convert parameter 1 from 'osg::Matrix' to 'const osg::TexMat &'
        Reason: cannot convert from 'osg::Matrix' to 'const osg::TexMat'
        No constructor could take the source type, or constructor overload resolution was ambiguous

Build log was saved at " file://c:\Daten\Dev\OpenSceneGraphCVS\OpenSceneGraph\VisualStudio\osgUtil\Win32\Debug\BuildLog.htm"
Core osgUtil - 1 error(s), 0 warning(s)

 

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to