Page 2 of 2

Re: Patches for new SharedPtr in Ghadamon

Posted: Fri Sep 20, 2013 10:14 pm
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.

Re: Patches for new SharedPtr in Ghadamon

Posted: Tue Dec 03, 2013 6:30 pm
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

Re: Patches for new SharedPtr in Ghadamon

Posted: Tue Dec 03, 2013 9:13 pm
by Transporter
You don't need this patches anymore. Explicit casting is not longer required for the final version of Ghadamon.

Re: Patches for new SharedPtr in Ghadamon

Posted: Tue Dec 03, 2013 9:50 pm
by icaro56
I downloaded this version https://bitbucket.org/sinbad/ogre/src?at=v1-9

and this patch was necessary.


Why?