building errors - from cannot find ogre.h to actual errors

iceman79

31-01-2008 00:54:18

Hi,

This probablly is a simple fix but I'm having a hard time finding it.

I'm using ogre sdk with visual studio 2003 (7.1), which is in c:\OgreSDK

I downloaded the source folder from http://tuan.kuranes.free.fr/Ogre.html and unzipped it to C:\paginglandscape

Now when I open up the solution file plsm2.sln I get build errors that it cannot find Ogre.h and a bunch of other header files that I know are located in c:\OgreSDK\include, but am not sure if I need to change some settings (isn't plsm2 supposed to work out of the box ?)

Thanks !

iceman79

31-01-2008 16:29:33

Hmmm,

I just realized that I was using the ogre sdk 1.46, while tuan's plsm2 is for sdk 1.2.

Going to try plsm2 with 1.2.

Nope - that didn't work.

One other thing to point out: from tuan's site
http://tuan.kuranes.free.fr/Ogre.html

I am pointed there to donwload plsm2 for ogre 1.2sdk with visual studio 7.1

But the sdk_soln file is ONLY for visual studio 8.

I can only open up the plsm solution file, NOT the plsm2_vc8_SDK solution file (which is the one that the instructions state that we open up and build)

iceman79

31-01-2008 17:23:48

Okay,

So when using the original plsm2.soln file and going to

tools --> options --> projects --> vc++ directories.

Under show directories for (on the right), I selected 'Include files'.

Than I added a new directory: (clicked on folder icon)

and added C:\OgreSDK\include.

iceman79

31-01-2008 17:26:26

Now I get these errors:

------ Build started: Project: Plugin_PagingLandScapeSceneManager2, Configuration: Debug Win32 ------

Compiling...
OgrePagingLandScapeListenerManager.cpp
OgrePagingLandScapeOcclusionQuerySet.cpp
OgreOcclusionBoundingBox.cpp
OgreDebugRectangle2D.cpp
OgrePagingLandScapeOcclusionVFTraversal.cpp
OgrePagingLandScapeOcclusionTraversal.cpp
OgrePagingLandScapeOcclusionSWTraversal.cpp
OgrePagingLandScapeOcclusionDebugTraversal.cpp
OgrePagingLandScapeOcclusionCHCTraversal.cpp
OgrePagingLandScapeOcclusionCameraTraversal.cpp
OgrePagingLandScapeOcclusionElement.cpp
OgrePagingLandScapeOcclusion.cpp
OgrePagingLandScapeOctreeSphereSceneQuery.cpp
OgrePagingLandScapeOctreeRaySceneQuery.cpp
OgrePagingLandScapeOctreePlaneBoundedVolumeListSceneQuery.cpp
OgrePagingLandScapeOctreeIntersectionSceneQuery.cpp
OgrePagingLandScapeOctreeAxisAlignedBoxSceneQuery.cpp
OgrePagingLandScapeOctreeSceneManager.cpp
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeOctreeSceneManager.cpp(986) : error C2039: 'setDebugText' : is not a member of 'Ogre::RenderTarget'
c:\OgreSDK\include\OgreRenderTarget.h(60) : see declaration of 'Ogre::RenderTarget'
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeOctreeSceneManager.cpp(1006) : error C2039: 'setDebugText' : is not a member of 'Ogre::RenderTarget'
c:\OgreSDK\include\OgreRenderTarget.h(60) : see declaration of 'Ogre::RenderTarget'
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeOctreeSceneManager.cpp(1060) : error C2039: 'setDebugText' : is not a member of 'Ogre::RenderTarget'
c:\OgreSDK\include\OgreRenderTarget.h(60) : see declaration of 'Ogre::RenderTarget'
OgrePagingLandScapeOctreeNode.cpp
OgrePagingLandScapeOctreeCamera.cpp
Generating Code...
Compiling...
OgrePagingLandScapeOctree.cpp
OgrePagingLandScapeTileManager.cpp
OgrePagingLandScapeTile.cpp
OgrePagingLandScapeTexture_SplattingShaderEdit.cpp
OgrePagingLandScapeTexture_SplattingShader.cpp
OgrePagingLandScapeTexture_Splatting7Edit.cpp
OgrePagingLandScapeTexture_Splatting7.cpp
OgrePagingLandScapeTexture_Splatting6.cpp
OgrePagingLandScapeTexture_Splatting5.cpp
OgrePagingLandScapeTexture_Splatting4.cpp
OgrePagingLandScapeTexture_Splatting3.cpp
OgrePagingLandScapeTexture_Splatting2Edit.cpp
OgrePagingLandScapeTexture_Splatting2.cpp
OgrePagingLandScapeTexture_Splatting.cpp
OgrePagingLandScapeTextureManager.cpp
OgrePagingLandScapeTexture_InstantBaseTextureShadowed.cpp
OgrePagingLandScapeTexture_InstantBaseTextureEdit.cpp
OgrePagingLandScapeTexture_InstantBaseTexture.cpp
OgrePagingLandScapeTexture_Image.cpp
OgrePagingLandScapeTexture_BaseTexture2.cpp
Generating Code...
Compiling...
OgrePagingLandScapeTexture_BaseTexture.cpp
OgrePagingLandScapeTexture.cpp
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(130) : error C2039: 'RealConstantEntry' : is not a member of 'Ogre::GpuProgramParameters'
c:\OgreSDK\include\OgreGpuProgram.h(225) : see declaration of 'Ogre::GpuProgramParameters'
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(130) : error C2065: 'RealConstantEntry' : undeclared identifier
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(130) : error C2059: syntax error : 'const'
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(131) : error C2065: 'e' : undeclared identifier
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(133) : error C2227: left of '->val' must point to class/struct/union
type is ''unknown-type''
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(133) : error C3861: 'e': identifier not found, even with argument-dependent lookup
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(134) : error C2227: left of '->val' must point to class/struct/union
type is ''unknown-type''
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(134) : error C3861: 'e': identifier not found, even with argument-dependent lookup
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(135) : error C2227: left of '->val' must point to class/struct/union
type is ''unknown-type''
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(135) : error C3861: 'e': identifier not found, even with argument-dependent lookup
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(136) : error C2227: left of '->val' must point to class/struct/union
type is ''unknown-type''
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(136) : error C3861: 'e': identifier not found, even with argument-dependent lookup
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(137) : error C2227: left of '->isSet' must point to class/struct/union
type is ''unknown-type''
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(137) : error C3861: 'e': identifier not found, even with argument-dependent lookup
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(334) : error C2039: 'RealConstantEntry' : is not a member of 'Ogre::GpuProgramParameters'
c:\OgreSDK\include\OgreGpuProgram.h(225) : see declaration of 'Ogre::GpuProgramParameters'
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(334) : error C2059: syntax error : 'const'
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(334) : error C3861: 'RealConstantEntry': identifier not found, even with argument-dependent lookup
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(335) : error C3861: 'e': identifier not found, even with argument-dependent lookup
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(416) : error C2780: 'const _Ty &std::max(const _Ty &,const _Ty &,_Pr)' : expects 3 arguments - 2 provided
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(1250) : see declaration of 'std::max'
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(416) : error C2782: 'const _Ty &std::max(const _Ty &,const _Ty &)' : template parameter '_Ty' is ambiguous
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(1242) : see declaration of 'std::max'
could be 'unsigned short'
or 'size_t'
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(1093) : error C2039: 'RealConstantEntry' : is not a member of 'Ogre::GpuProgramParameters'
c:\OgreSDK\include\OgreGpuProgram.h(225) : see declaration of 'Ogre::GpuProgramParameters'
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(1093) : error C2059: syntax error : 'const'
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(1093) : error C3861: 'RealConstantEntry': identifier not found, even with argument-dependent lookup
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(1094) : error C3861: 'e': identifier not found, even with argument-dependent lookup
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(1095) : error C2227: left of '->val' must point to class/struct/union
type is ''unknown-type''
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(1095) : error C3861: 'e': identifier not found, even with argument-dependent lookup
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(1096) : error C2227: left of '->val' must point to class/struct/union
type is ''unknown-type''
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(1096) : error C3861: 'e': identifier not found, even with argument-dependent lookup
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(1097) : error C2227: left of '->val' must point to class/struct/union
type is ''unknown-type''
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(1097) : error C3861: 'e': identifier not found, even with argument-dependent lookup
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(1098) : error C2227: left of '->val' must point to class/struct/union
type is ''unknown-type''
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(1098) : error C3861: 'e': identifier not found, even with argument-dependent lookup
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(1099) : error C2227: left of '->isSet' must point to class/struct/union
type is ''unknown-type''
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeTexture.cpp(1099) : error C3861: 'e': identifier not found, even with argument-dependent lookup
OgrePagingLandScapeTextureCoordinatesManager.cpp
OgrePagingLandScapeRenderableManager.cpp
OgrePagingLandScapeRenderable.cpp
OgrePagingLandScapeIndexBuffer.cpp
OgrePagingLandScapePageRenderable.cpp
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapePageRenderable.cpp(262) : error C2660: 'Ogre::SceneNode::findLights' : function does not take 1 arguments
OgrePagingLandScapePageManager.cpp
OgrePagingLandScapePage.cpp
OgrePagingLandScapeData2D_Spline.cpp
OgrePagingLandScapeData2D_HeightFieldTC.cpp
OgrePagingLandScapeData2D_HeightFieldRawTC.cpp
OgrePagingLandScapeData2D_HeightFieldRaw.cpp
OgrePagingLandScapeData2D_HeightFieldNTC.cpp
OgrePagingLandScapeData2D_HeightFieldN.cpp
OgrePagingLandScapeData2D_HeightFieldBlendNeighbor.cpp
OgrePagingLandScapeData2D_HeightField.cpp
OgrePagingLandScapeData2DManager.cpp
OgrePagingLandScapeData2D.cpp
OgrePagingLandScapeSceneManagerDll.cpp
Generating Code...
Compiling...
OgrePagingLandScapeSceneManager.cpp
\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\src\OgrePagingLandScapeSceneManager.cpp(211) : error C2664: 'Ogre::SharedPtr<T>::SharedPtr(const Ogre::SharedPtr<T> &)' : cannot convert parameter 1 from 'int' to 'const Ogre::SharedPtr<T> &'
with
[
T=Ogre::DataStream
]
and
[
T=Ogre::DataStream
]
Reason: cannot convert from 'int' to 'const Ogre::SharedPtr<T>'
with
[
T=Ogre::DataStream
]
No constructor could take the source type, or constructor overload resolution was ambiguous
OgrePagingLandScapeRaySceneQuery.cpp
OgrePagingLandScapeOptions.cpp
OgrePagingLandScapeHorizon.cpp
OgrePagingLandScapeCamera.cpp
filetutils.cpp
Generating Code...

Build log was saved at "file://c:\OgreSDK_1_2_with_plsm2\PlugIns\PagingLandScape2\obj\Debug\BuildLog.htm"
Plugin_PagingLandScapeSceneManager2 - 39 error(s), 0 warning(s)


------ Build started: Project: Demo_PagingLandScape2, Configuration: Debug Win32 ------

Compiling...
PagingLandScape.cpp
..\..\Common\include\PagingLandScape2Application.h(12) : fatal error C1083: Cannot open include file: 'ExampleApplication.h': No such file or directory

Build log was saved at "file://c:\OgreSDK_1_2_with_plsm2\samples\PagingLandScape2\obj\Debug\BuildLog.htm"
Demo_PagingLandScape2 - 1 error(s), 0 warning(s)


------ Build started: Project: Tool_MapSplitter, Configuration: Debug Win32 ------

Compiling...
MapSplitter.cpp
MapMergeModulater.cpp
MapInfinitizer.cpp
MapEqualizer.cpp
MapBlurrer.cpp
MapBlender.cpp
OgrePagingLandScapeData2D_Spline.cpp
OgrePagingLandScapeData2D_HeightFieldTC.cpp
OgrePagingLandScapeData2D_HeightFieldRawTC.cpp
OgrePagingLandScapeData2D_HeightFieldRaw.cpp
OgrePagingLandScapeData2D_HeightField.cpp
OgrePagingLandScapeData2DManager.cpp
OgrePagingLandScapeData2D.cpp
MapVis.cpp
MapSplatter.cpp
MapLighter.cpp
MapHorizon3.cpp
MapHorizon2.cpp
MapHorizon.cpp
MapNormaler.cpp
Generating Code...
Compiling...
OgrePagingLandScapeOptions.cpp
MapUtil.cpp
MapTool.cpp
Generating Code...
Linking...
LINK : fatal error LNK1104: cannot open file 'OgreMain_d.lib'

Build log was saved at "file://c:\OgreSDK_1_2_with_plsm2\Tools\MapSplitter\obj\Debug\BuildLog.htm"
Tool_MapSplitter - 1 error(s), 0 warning(s)


---------------------- Done ----------------------

Build: 0 succeeded, 3 failed, 0 skipped

iceman79

04-02-2008 21:47:30

Okay well,

I've decided to use visual studio 2005 express now.

The sdk solution for plsm2 is for this version.

So far I've gotten everything to build (yay) and got mapsplitter to (at least appear to) run without errors.

The demo just gives a giant black screen.

For any one trying to get this far, remember that your plsm2 needs to be saved in a folder called 'paginglandscape,' and the datasrc download should go in (for example):

C:\paginglandscape\Samples\Media\paginglandscape2\datasrcs

Also, I had to set my working directory to:

C:\OgreSDK_VS_2005\bin\debug

(where I dowloaded my ogre sdk)

Do this by right clicking on the project (in VS ide) --> properties --> Debugging --> Working directory tab.

If I've done something wrong, please don't hesitate to point out.

peace !