Patches for new SharedPtr in Ghadamon

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Transporter
Minaton
Posts: 933
Joined: Mon Mar 05, 2012 11:37 am
Location: Germany
x 110

Re: Patches for new SharedPtr in Ghadamon

Post by Transporter »

nevarim wrote:
Transporter wrote:
PagedGeometry
Changed as part of Ogitor.
what's meaning that developing of this plugin is stopped and the only way to follow is implementing ogitor?
Yes. I submit patches for various libs to Ogitor.
User avatar
icaro56
Greenskin
Posts: 105
Joined: Sun Feb 15, 2009 2:03 am
Location: Belo Horizonte, MG, BRA
x 1

Re: Patches for new SharedPtr in Ghadamon

Post by icaro56 »

I get the patch to SkyX (Ogre 1.9) and i found a error in function perpendicular from OgreVector3

Code: Select all

        inline Vector3 perpendicular(void) const
        {
             // comment
            //static const Real fSquareZero = (Real)(1e-06 * 1e-06);
             // removed static
            const Real fSquareZero = (Real)(1e-06 * 1e-06);

            Vector3 perp = this->crossProduct( Vector3::UNIT_X );

            // Check length
            if( perp.squaredLength() < fSquareZero )
            {
                /* This vector is the Y axis multiplied by a scalar, so we have
                   to use another axis.
                */
                perp = this->crossProduct( Vector3::UNIT_Y );
            }
			perp.normalise();

            return perp;
        }


I removed the first line where was static. Because don't compile with the static in front "const"

error message:

Error 50 error LNK2001: unresolved external symbol "__declspec(dllimport) double const `public: class Ogre::Vector3 __cdecl Ogre::Vector3::perpendicular(void)const '::`2'::fSquareZero" (__imp_?fSquareZero@?1??perpendicular@Vector3@Ogre@@QEBA?AV23@XZ@4NB) D:\workspace_final\dependences\ogre\plugins\skyx\MoonManager.obj
Ícaro Motta
Transporter
Minaton
Posts: 933
Joined: Mon Mar 05, 2012 11:37 am
Location: Germany
x 110

Re: Patches for new SharedPtr in Ghadamon

Post by Transporter »

You don't need this patches anymore. Explicit casting is not longer required for the final version of Ghadamon.
User avatar
icaro56
Greenskin
Posts: 105
Joined: Sun Feb 15, 2009 2:03 am
Location: Belo Horizonte, MG, BRA
x 1

Re: Patches for new SharedPtr in Ghadamon

Post by icaro56 »

I downloaded this version https://bitbucket.org/sinbad/ogre/src?at=v1-9

and this patch was necessary.


Why?
Ícaro Motta
Post Reply