Page 1 of 1

Missing include files?

Posted: Sun May 04, 2008 00:34
by MrDoom
Hey all, I am currently trying to get CEGUI built. I'm using Visual Studio 2005 Professional and have run the bat file in the premake directory to make a solution file.

When I go to build the solution however, I get the following errors:
1>c:\downloads\software\game engines\cegui-0.6.0\cegui-0.6.0\src\elements\ceguieditbox.cpp(34) : fatal error C1083: Cannot open include file: 'pcre.h': No such file or directory

...

1>c:\downloads\software\game engines\cegui-0.6.0\cegui-0.6.0\include\ceguifreetypefont.h(37) : fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory

...

1>c:\downloads\software\game engines\cegui-0.6.0\cegui-0.6.0\include\ceguifreetypefont.h(37) : fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory

...

1>c:\downloads\software\game engines\cegui-0.6.0\cegui-0.6.0\include\ceguifreetypefont.h(37) : fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory


Suggestions please. Thank you.

Posted: Sun May 04, 2008 10:38
by scriptkid
Hi and welcome :)

Seems that you are missing the dependencies:
http://sourceforge.net/project/showfile ... _id=128389

Pick the one for your VC version (in your case VC8) and unzip them into your cegui root directory.

Good luck!

Posted: Sun May 04, 2008 13:47
by MrDoom
Ok, I'll give that a go later when I'm back at my dev computer.

Do you know which Service Pack of VS 2005 those libs were built with? I have one computer with SP1 installed and another without any service packs installed; reason I ask is that VS can get grouchy with you if you try and link to a lib built with a different SP.

Posted: Sun May 04, 2008 18:59
by scriptkid
Hi,

i wouldn't know. I built the 2005 SDK with the Express Edition.

HTH.

Posted: Mon May 05, 2008 08:19
by CrazyEddie
Hi,

The dependencies were built using a compiler with SP1 applied.

Note to Scriptkid:
If you did not apply SP1 for VC++ 2005 express when building the SDK, then we may have an issue :lol:

CE.

Posted: Mon May 05, 2008 18:52
by MrDoom
Right, I had got this working on my Vista laptop (since I was working on the go), now I'm back at home and am trying to get this compiling on XP again.

It compiles fine, exactly the same as I did for Vista, the problem comes when I try and run my application. I get some errors when loading the CEGUI dll's.

Image

'I3D2.exe': Loaded 'C:\Documents and Settings\Jamie\My Documents\SVN\Terrain\I3D2\debug\CEGUIBase_d.dll', Symbols loaded.
LDR: LdrpWalkImportDescriptor() failed to probe c:\Documents and Settings\Jamie\My Documents\SVN\Terrain\I3D2\debug\CEGUIBase_d.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
The program '[2464] I3D2.exe: Native' has exited with code -1072365566 (0xc0150002).


Do you think this could be because this compiler is not patched to SP1? I always held back on the upgrade since the PCs at Uni don't have it and I wanted to ensure that my assignment code would be compatible between there and here; as it stands now, next year is my placement year so I don't have to worry about assignment code for a while meaning I can now run the update (it would also fix the memory leak issue in std::stringstream :D).

Think it might fix it?

EDIT
Yeah, it was the SP issue. Installing SP1 and rebuilding fixed all.