How do i compile ????

CodeMaker

24-01-2006 20:57:27

Hi, I've got a little troubles, if someone can help me I would be so grateful

I'm working with Code:Blocks, Ogre v1.0.6
and lastest version of ogreaddons downloaded from CVS

When I tried to compile the PagingLandscape plugin I get:

..\src\OgrePagingLandScapeData2DManager.cpp:701: error: no matching function for call to `Ogre::Math::pointInTri2D(const Ogre::Vector2&, Ogre::Vector2&, Ogre::Vector2&, Ogre::Vector2&)'
../../../OgreMain/include/OgreMath.h:374: note: candidates are: static bool Ogre::Math::pointInTri2D(Ogre::Real, Ogre::Real, Ogre::Real, Ogre::Real, Ogre::Real, Ogre::Real, Ogre::Real, Ogre::Real)

The line of code where it appears is:
if (!Math::pointInTri2D (pos, a2d, b2d, c2d))


this error appears several times, in too many different lines where is contained this code



And when I tried to compile the IPLSceneManager plugin I get:

../include/OgreIPLOptions.h:52: error: `SDDataChunk' was not declared in this scope
../include/OgreIPLOptions.h:52: error: template argument 1 is invalid
../include/OgreIPLOptions.h:52: error: template argument 2 is invalid
../include/OgreIPLOptions.h:52: error: ISO C++ forbids declaration of `refValueList' with no type

The line of code where it appears is:
bool getOptionValues( const String& strKey, std::list<SDDataChunk>& refValueList );

In Ogre forums they tell me that the plugin must to be compiled with Ogre version Dagon, but only exist the VC version, this version works with Code::Blocks too????

Please I need some help, I have no idea of what's happening.

Thanks for your attention!!!!

Kentamanos

25-01-2006 00:15:53

I'm not familiar with Code::Blocks, but I do know the CVS version of PLSM2 under ogreaddons only works on the latest CVS for ogre (the in-development Dagon).

jacmoe

25-01-2006 00:45:07

:!: You cannot compile this with Ogre 1.0.6 - you will have to use Ogre Dagon (CVS HEAD).
(Or get the Ogre Sdk compatible release from tuan kuranes home page, as explained [b]here[/b]).

tuan kuranes

25-01-2006 13:48:26

IPLSM or PLSM is no more maintened.

Only paging landscape 2 is currently supported and maintened.
(so you should try to compile only this one (plugin, demo and mapsplitter.))