Setup Ogre

Problems building or running the engine, queries about how to use features etc.
Lee123
Gnoblar
Posts: 7
Joined: Wed Jan 05, 2005 5:13 pm

Setup Ogre

Post by Lee123 »

Hey guys, I know this question gets brought up just under a zillion times, but i'm very new to C++ (Ogre being the reason for me learning it) and i'm have a weee little bit of trouble setting it up. I'll go through what i've got, so hopefully you can tell me what i'm missing :D

Microsoft Direct X 9.0 SDK installed in:
C:\Program Files\Microsoft DirectX 9.0 SDK (December 2004)

stlport_vc6_stldebug46.dll & stlport_vc646.dll sucessfully compiled in:
C:\Program Files\STLport\lib

3rd Party thingies installed resulting in:
C:\Program Files\ogrenew\Dependencies

Microsoft Visual Studio 6 Installed

In Directories (Visual C++ 6.0)---------------------------------------------
---------------------------------------------------------------------------------
Include Files:
C:\Program Files\STLport\stlport
C:\Program Files\Microsoft DirectX 9.0 SDK (December 2004)\Include
C:\Program Files\ogrenew\OgreMain\include
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
..............

Library Files:
C:\Program Files\STLport\lib
C:\Program Files\Microsoft DirectX 9.0 SDK (December 2004)\Lib\x86
C:\Program Files\ogrenew\OgreMain\lib\Debug
..............
---------------------------------------------------------------------------------

However when i open Ogre.dsw, and go Build/Batch Build, it's constantly bleeping me with errors during the process (ontop of loads of warnings). Is this to be expected or have I done something wrong somewhere along the lines?

Thanks in Advance
Lee
User avatar
bal
Greenskin
Posts: 100
Joined: Thu Dec 09, 2004 7:29 pm
Location: Geluwe, Belgium

Post by bal »

Could you post the exact error messages perhaps :) ?
Lee123
Gnoblar
Posts: 7
Joined: Wed Jan 05, 2005 5:13 pm

Post by Lee123 »

There's are errors in the build window, and it only shows a certin ammount of lines, i'll post here the first 3 error messages

I just tried opening C:\Program Files\ogrenew\Samples\Common\bin\Release\Demo_Water.exe, at it gives me this error:

"This application has failed to start because stlport_vc646.dll was not found, yada yada yar"

Sounds like i may have put a wrong include folder or something in VC perhaps?

Wont be 2 min, making that log
Lee123
Gnoblar
Posts: 7
Joined: Wed Jan 05, 2005 5:13 pm

Post by Lee123 »

**First Errors Here**

--------------------Configuration: RenderSystem_Direct3D7 - Win32 Release--------------------
Compiling...
d3dutil.cpp
OgreD3D7Callbacks.cpp
..\include\OgreD3D7Prerequisites.h(41) : fatal error C1083: Cannot open include file: 'd3dx.h': No such file or directory
OgreD3D7Device.cpp
..\include\OgreD3D7Prerequisites.h(41) : fatal error C1083: Cannot open include file: 'd3dx.h': No such file or directory
**
And the same for:
OgreD3D7DeviceList.cpp,OgreD3D7RenderSystem.cpp, OgreD3D7RenderWindow.cpp, OgreD3D7Texture.cpp, OgreD3D7TextureManager.cpp, OgreDDDriver.cpp, OgreDDDriverList.cpp, OgreDDVideoMode.cpp, OgreDDVideoModeList.cpp, OgreD3D7EngineDll.cpp
**

Error executing cl.exe.

Demo_BSP.exe - 12 error(s), 10 warning(s)

**Much Further down the Log**

c:\program files\stlport\stlport\stl\type_traits.h(361) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
OgreWin32PlatformDll.cpp
OgreWin32Timer.cpp
Error executing cl.exe.

Demo_BSP.exe - 1 error(s), 24 warning(s)

**And Here**

------------------Configuration: Plugin_BSPSceneManager - Win32 Debug--------------------
Compiling...
OgreBspLevel.cpp
OgreBspNode.cpp
OgreBspResourceManager.cpp
OgreBspSceneManager.cpp
c:\program files\stlport\stlport\stl\debug\_iterator.h(156) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
OgreBspSceneManagerDll.cpp
OgreBspSceneNode.cpp
OgreQuake3Level.cpp
OgreQuake3Shader.cpp
OgreQuake3ShaderManager.cpp
Error executing cl.exe.

Demo_BezierPatch.exe - 1 error(s), 0 warning(s)
--------------------Configuration: RenderSystem_Direct3D9 - Win32 Release--------------------
Compiling...
OgreD3D9Driver.cpp

**This one's colourfull**

OgreD3D9Mappings.cpp
OgreD3D9RenderSystem.cpp
OgreD3D9RenderWindow.cpp
OgreD3D9Texture.cpp
OgreD3D9TextureManager.cpp
OgreD3D9VertexDeclaration.cpp
OgreD3D9VideoMode.cpp
OgreD3D9VideoModeList.cpp
OgreD3D9EngineDll.cpp
Linking...
Creating library ..\bin\Release/RenderSystem_Direct3D9.lib and object ..\bin\Release/RenderSystem_Direct3D9.exp
d3dx9.lib(jchuff.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(jcdctmgr.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(trees.obj) : error LNK2001: unresolved external symbol ___security_cookie
dxerr9.lib(dxerr9.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(pngrutil.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(jdcoefct.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(jdhuff.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(jmemansi.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cshaderprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(ssefasttable.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(d3dxmathx3d.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(pngwutil.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cpudetect.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(jdmarker.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(jerror.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(pngerror.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cpslegacyprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cpsprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cvsprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cfxlprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cbaseprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cprogram.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cparse.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(c30program.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(ccompiler.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cimage.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(ccodec.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cfile.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(d3dx9shader.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cpreprocessor.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(ctokenize.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(cassembler.obj) : error LNK2001: unresolved external symbol ___security_cookie
d3dx9.lib(jchuff.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(jcdctmgr.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(trees.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
dxerr9.lib(dxerr9.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(pngrutil.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(jdcoefct.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(jdhuff.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(jmemansi.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(cshaderprogram.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(ssefasttable.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(d3dxmathx3d.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(pngwutil.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(cpudetect.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(jdmarker.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(jerror.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(pngerror.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(cpslegacyprogram.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(cpsprogram.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(cvsprogram.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(cfxlprogram.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(cbaseprogram.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(cprogram.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(cparse.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(c30program.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(ccompiler.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(cimage.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(ccodec.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(cfile.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(d3dx9shader.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(cpreprocessor.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(ctokenize.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(cassembler.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
d3dx9.lib(cshaderprogram.obj) : error LNK2001: unresolved external symbol __ftol2
d3dx9.lib(jcdctmgr.obj) : error LNK2001: unresolved external symbol __ftol2
d3dx9.lib(jidctflt.obj) : error LNK2001: unresolved external symbol __ftol2
d3dx9.lib(cparse.obj) : error LNK2001: unresolved external symbol __ftol2
d3dx9.lib(pngwrite.obj) : error LNK2001: unresolved external symbol __ftol2
d3dx9.lib(pngrtran.obj) : error LNK2001: unresolved external symbol __ftol2
d3dx9.lib(psgpmesh.obj) : error LNK2001: unresolved external symbol __ftol2
d3dx9.lib(fxlvm.obj) : error LNK2001: unresolved external symbol __ftol2
d3dx9.lib(d3dxmath.obj) : error LNK2001: unresolved external symbol __ftol2
d3dx9.lib(cbaseprogram.obj) : error LNK2001: unresolved external symbol __ftol2
d3dx9.lib(cprogram.obj) : error LNK2001: unresolved external symbol __ftol2
d3dx9.lib(ccompiler.obj) : error LNK2001: unresolved external symbol __ftol2
d3dx9.lib(cbuffer.obj) : error LNK2001: unresolved external symbol __ftol2
d3dx9.lib(cimage.obj) : error LNK2001: unresolved external symbol __ftol2
d3dx9.lib(cblt.obj) : error LNK2001: unresolved external symbol __ftol2
..\bin\Release/RenderSystem_Direct3D9.dll : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.

Demo_BspCollision.exe - 80 error(s), 0 warning(s)
--------------------Configuration: Plugin_FileSystem - Win32 Debug--------------------
Compiling...
FileSystem.cpp
FileSystemFactory.cpp
Linking...
Creating library ..\bin\Debug/Plugin_FileSystem.lib and object ..\bin\Debug/Plugin_FileSystem.exp
..\bin\Debug\Plugin_FileSystem.dll
1 file(s) copied.
--------------------Configuration: Plugin_GuiElements - Win32 Debug--------------------
Compiling...
OgreBorderButtonGuiElement.cpp

**I hope this isn't as bad as it looks**
User avatar
bal
Greenskin
Posts: 100
Joined: Thu Dec 09, 2004 7:29 pm
Location: Geluwe, Belgium

Post by bal »

Configure the DX SDK include and library directories for the "RenderSystem_Direct3D9" and "RenderSystem_Direct3D7" projects, that should reduce a lot of errors :).
Lee123
Gnoblar
Posts: 7
Joined: Wed Jan 05, 2005 5:13 pm

Post by Lee123 »

Sorry to be a dummie, how would I go about doing that?
User avatar
Banania
Gremlin
Posts: 150
Joined: Wed Oct 20, 2004 2:35 pm
Location: Paris, France

Post by Banania »

the "__security_cookie" crap when compiling DX9 comes from the fact that, with VC6, you need the directX extras package which contains the vc6 compatible version of D3Dx9.lib

This has been discussed before, you should find a link on this forum by using the search feature.

As for the stlport dll, you need to copy it where your executables are. VC6 won't find .dll for you, only .lib
Banania
Lee123
Gnoblar
Posts: 7
Joined: Wed Jan 05, 2005 5:13 pm

Post by Lee123 »

Hey Guys, only have these errors now, any ideas?

.\include\OgreD3D7Prerequisites.h(41) : fatal error C1083: Cannot open include file: 'd3dx.h': No such file or directory

c:\program files\stlport\stlport\stl\type_traits.h(361) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit <<<< Get this loads of times

dxerr9.lib(dxerr9.obj) : error LNK2001: unresolved external symbol ___security_cookie
dxerr9.lib(dxerr9.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
..\bin\Release/RenderSystem_Direct3D9.dll : fatal error LNK1120: 2 unresolved externals
User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 8

Post by haffax »

This forum has a search function, you know.

Utilizing it:
C1076
security cookie
team-pantheon programmer
creators of Rastullahs Lockenpracht
Lee123
Gnoblar
Posts: 7
Joined: Wed Jan 05, 2005 5:13 pm

Post by Lee123 »

thank you tanis.

The errors in my previous post were what I got after i tried installing the extras package (as discussed in the link).

The extras package, downloaded, extracted, but didnt self-install, i tried putting the lib in both the sub-lib directories, and that's the errors I got, any ideas?

In the C1076 post, sinbad mentions:

"or simply add /Zm500 to the compiler command line options in your project settings in debug mode"

Where would i do that on VC6?
Lee123
Gnoblar
Posts: 7
Joined: Wed Jan 05, 2005 5:13 pm

Post by Lee123 »

Update:
/Zm error resolved