[Help]Having problems installing PLSM2[SOLVED]

manxnakur

27-11-2007 15:14:47

Hi all,

i've followed these instruction to install the PLSM2 SDK (i'm using VS2005 to complie the code. I've got the binary demo to work):

You will need :

* Ogre SDK for VC7.1 is available from ogre website. (I got the source about a month ago)
* Get Paging landscape 2 source from here. (I've got the latest PLSM2 from there)
* Extract it so that paginglandscape is in the same directory as OgreSDK. (I've placed it in my C: dir. OgreSDK is also in the C: dir.)
* build the plsm2 Solution. (the _SDK.sln) (so i use the plsm2_vc8_SDK)

but when i try and build the project then it doesn't work. I get these errors (a sample of errors that i get):

Error 3 error BK1506 : cannot open file '..\obj\debug\OgrePagingLandScapeSceneManagerDll.sbr': No such file or directory BSCMAKE
Error 63 error C2039: 'setDebugText' : is not a member of 'Ogre::RenderWindow' c:\samples\common\include\PagingLandScape2FrameListener.h 187
Error 31 error C2061: syntax error : identifier 'EventProcessor' c:\samples\common\include\PagingLandScape2FrameListener.h 51
Error 19 error C2061: syntax error : identifier 'KeyEvent' c:\samples\common\include\PagingLandScape2FrameListener.h 423
Error 4 error C2061: syntax error : identifier 'MouseEvent' c:\samples\common\include\PagingLandScape2Overlay.h 67
Error 98 error C2065: 'KC_COMMA' : undeclared identifier c:\samples\common\include\PagingLandScape2FrameListener.h 276
Error 35 error C2227: left of '->addMouseListener' must point to class/struct/union/generic type c:\samples\common\include\PagingLandScape2FrameListener.h 57
Error 91 error C2227: left of '->isKeyDown' must point to class/struct/union/generic type c:\samples\common\include\PagingLandScape2FrameListener.h 262
Error 29 error C2614: 'PagingLandScapeFrameListener' : illegal member initialization: 'mEventProcessor' is not a base or member c:\samples\common\include\PagingLandScape2FrameListener.h 36

I started to go through the errors and fix them but there's too many of them and i don't have time to fix all the errors. I think it's something i'm doing wrong, can any one PLEASE help?


Thanks!
Ankur

manxnakur

01-12-2007 13:57:46

Hi,

Ok, so i've got Tool_MapSplitter to compile with no errors but i still can't get Plugin_PagingLandScapeSceneManager2 to compile. I get these erros when i try and compile Plugin_PagingLandScapeSceneManager2:

BSCMAKE: error BK1506 : cannot open file '..\obj\debug\OgrePagingLandScapeSceneManagerDll.sbr': No such file or directory
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\vector(146) : error C3859: virtual memory range for PCH exceeded; please recompile with a command line option of '-Zm118' or greater
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\vector(146) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit

Anyone have any ideas why this is happening?

manxnakur

02-12-2007 18:09:07

Ok, i've got PLSM2 to compile (at last :P). For all those who are unable to compile PLSM2 try this (i'm using Windows Vista 64-bit and compiling with Visual Studio 2005):

1) Download the stable version of Ogre ( Ogre 1.4 - Eihort ) from CVS:
- go here for a guide on how to download the latest stable Ogre version from CVS.

2) Download the latest Paging scene manager source from the CVS.
- go here for a guide on how to download the latest stable PLSM2 version from CVS.

3) The ogrenew and ogreaddons folders were downloaded to my C:\ directory.

4) Navigate to C:\ogreaddons\paginglandscape and open plsm2_vc8_CVS solution file.

5) In the Solution explorer right click Plugin_PagingLandScapeSceneManager2 and got to Properties. Make sure the configuration is set to Debug.

6) Go to C/C++ tab, which is under Configuration Properties tab, and in the Additional Include Directories add this (you'll need to change this depending on where your ogrenew folder is): ..\..\..\..\..\ogrenew\plugins\OctreeSceneManager\include

7) Now go to and open the linker tab, directly below C/C++ tab, and highlight Input.

8 ) In the Additional Dependencies area add Plugin_OctreeSceneManager_d.lib

9) This next step i had to do but i'm not sure if anyone else needs to do it. Try it without doing it first. Go back to C/C++ tab and open it. Highlight Command Line. In the Additional options add -Zm118

10) Click on Apply.

11) Now we need to do this for the Release Confiuration. Set the Configuration to Release.

12) Do the same as above but in Linker->Input add Plugin_OctreeSceneManager.lib and in C/C++->Command Line add -Zm110

Now to setup the Tool_MapSplitter:

A) Right click Tool_MapSplitter and go to Properties. Make sure the Configuration is set to Debug.

B) Go to C/C++->General and add ..\..\..\..\..\ogrenew\plugins\OctreeSceneManager\include to the Additional Include Directories.

C) I had to change the location for the paginglandscape2\include\ aswell. If you need to then do that too. I changed mine to ..\..\..\plugins\paginglandscape2\include\

D) Click on Apply and then OK.

E) Go to Build->Batch Build and select the Debug and Release builds for Plugin_PagingLandScapeSceneManager2 and Tool_MapSplitter. Now click on Build, it should all work.

NOTE: I've built PLSM2 but i haven't actualy used it in my project; hopefuly it'll all go well.


Ankur