Missing Files: Am I loosing my mind?

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
SuperGeek
Just popping in
Just popping in
Posts: 16
Joined: Wed Oct 19, 2005 18:56

Missing Files: Am I loosing my mind?

Postby SuperGeek » Wed Oct 19, 2005 19:13

Well I have started learning to use CEGUI, and as so many others, I have run into a snag with the linker. I am getting lots of 'inconsistent dll linkage' errors. I have added the appropriate folders for library and header files to the search paths. After tracing back through all the directories, I have found the problem: The CEGUIBase_d.lib files is missing! From what I can tell, is it not supposed to be in the cegui_mk2\lib directory? Am I loosing my mind, or do I have to get it elsewhere?

User avatar
martignasse
Just can't stay away
Just can't stay away
Posts: 227
Joined: Thu Apr 14, 2005 08:10
Location: Lyon, FRANCE

Re: Missing Files: Am I loosing my mind?

Postby martignasse » Wed Oct 19, 2005 19:33

hi,

You'r post isn't very clear...

If you havent the CEGUIBase_d.lib, can you just build it from the CEGUI project ? :shock:

More info like the OS, the compiler you use and the linker log is necessary.

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: Missing Files: Am I loosing my mind?

Postby lindquist » Wed Oct 19, 2005 19:34

CEGUIBase_d.lib is the result of a debug build.
In release mode it's just CEGUIBase.lib, so you could be building different targets for the projects!

User avatar
SuperGeek
Just popping in
Just popping in
Posts: 16
Joined: Wed Oct 19, 2005 18:56

Re: Missing Files: Am I loosing my mind?

Postby SuperGeek » Wed Oct 19, 2005 20:27

My post is not clear because I'm a noob at VC++. I am using .Net 2003 for my programming needs atm, and I just started using it, so I'm still learning my way around a bit. I have the CEGUIBase_d.lib now. The problem was the references in the CEGUI project. But I am still getting alot of 'inconsistent dll linkage' and 'definition of dllimport static data member not allowed' errors. Sorry if I don't make much sense btw. Here is the log:

Macro defintion of max detected - undefining
Macro defintion of min detected - undefining
C++ Crazy Eddie Test.cpp(15) : warning C4273: 'CEGUI::VERTEX_PER_QUAD' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(15) : error C2491: 'CEGUI::DirectX9Renderer::VERTEX_PER_QUAD' : definition of dllimport static data member not allowed
C++ Crazy Eddie Test.cpp(16) : warning C4273: 'CEGUI::VERTEX_PER_TRIANGLE' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(16) : error C2491: 'CEGUI::DirectX9Renderer::VERTEX_PER_TRIANGLE' : definition of dllimport static data member not allowed
C++ Crazy Eddie Test.cpp(17) : warning C4273: 'CEGUI::VERTEXBUFFER_CAPACITY' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(17) : error C2491: 'CEGUI::DirectX9Renderer::VERTEXBUFFER_CAPACITY' : definition of dllimport static data member not allowed
C++ Crazy Eddie Test.cpp(18) : warning C4273: 'CEGUI::VERTEX_FVF' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(18) : error C2491: 'CEGUI::DirectX9Renderer::VERTEX_FVF' : definition of dllimport static data member not allowed
C++ Crazy Eddie Test.cpp(22) : warning C4273: 'CEGUI::DirectX9Renderer::DirectX9Renderer' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(31) : warning C4273: 'CEGUI::DirectX9Renderer::constructor_impl' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(70) : warning C4273: 'CEGUI::DirectX9Renderer::~DirectX9Renderer' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(82) : warning C4273: 'CEGUI::DirectX9Renderer::addQuad' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(113) : warning C4273: 'CEGUI::DirectX9Renderer::doRender' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(270) : warning C4273: 'CEGUI::DirectX9Renderer::clearRenderList' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(276) : warning C4273: 'CEGUI::DirectX9Renderer::createTexture' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(284) : warning C4273: 'CEGUI::DirectX9Renderer::createTexture' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(293) : warning C4273: 'CEGUI::DirectX9Renderer::createTexture' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(302) : warning C4273: 'CEGUI::DirectX9Renderer::destroyTexture' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(313) : warning C4273: 'CEGUI::DirectX9Renderer::destroyAllTextures' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(322) : warning C4273: 'CEGUI::DirectX9Renderer::initPerFrameStates' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(367) : warning C4273: 'CEGUI::DirectX9Renderer::renderVBuffer' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(386) : warning C4273: 'CEGUI::DirectX9Renderer::sortQuads' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(394) : warning C4273: 'CEGUI::DirectX9Renderer::renderQuadDirect' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(511) : warning C4273: 'CEGUI::DirectX9Renderer::preD3DReset' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(537) : warning C4273: 'CEGUI::DirectX9Renderer::postD3DReset' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(565) : warning C4273: 'CEGUI::DirectX9Renderer::getViewportSize' : inconsistent dll linkage
C++ Crazy Eddie Test.cpp(585) : warning C4273: 'CEGUI::DirectX9Renderer::setDisplaySize' : inconsistent dll linkage

User avatar
SuperGeek
Just popping in
Just popping in
Posts: 16
Joined: Wed Oct 19, 2005 18:56

Re: Missing Files: Am I loosing my mind?

Postby SuperGeek » Wed Oct 19, 2005 22:14

Ok, solved that problem. Just me being stupid again;) Now I just need to figure out why the demo for D3D9 won't run...

User avatar
SuperGeek
Just popping in
Just popping in
Posts: 16
Joined: Wed Oct 19, 2005 18:56

Re: Missing Files: Am I loosing my mind?

Postby SuperGeek » Wed Oct 19, 2005 23:56

Ok, I'm probably just being stupid again, but the D3D9 CEGUI demo won't run for me. When it is run, I get the base window fine, its the GUI that isn't working. Instead, I am given the error:

'First-chance exception at 0x7d4e228c in C++ Crazy Eddie Test.exe: Microsoft C++ exception: CEGUI::InvalidRequestException @ 0x0012e9f8.'

The offending code (in fstream actually):

_Myt *open(const char *_Filename,
ios_base::openmode _Mode,
int _Prot = (int)ios_base::_Openprot)
{ // open a C stream with specified mode
_Filet *_File;
if (_Myfile != 0 || (_File = _Fiopen(_Filename, _Mode, _Prot)) == 0) // <<<OFFENDING LINE>>>
return (0); // open failed

_Init(_File, _Openfl);
_Initcvt((_Cvt *)&_USE(_Mysb::getloc(), _Cvt));
return (this); // open succeeded
}

I am running this on a AMDx64 system, using WinXP and .Net 2003.

Any ideas?

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: Missing Files: Am I loosing my mind?

Postby lindquist » Thu Oct 20, 2005 03:32

Post the relevant portion of your CEGUI.log as well

User avatar
SuperGeek
Just popping in
Just popping in
Posts: 16
Joined: Wed Oct 19, 2005 18:56

Re: Missing Files: Am I loosing my mind?

Postby SuperGeek » Thu Oct 20, 2005 06:11

I listed it in my previous post. Perhaps this is more clear:

First-chance exception at 0x7d4e228c in C++ Crazy Eddie Test.exe: Microsoft C++ exception: CEGUI::InvalidRequestException @ 0x0012e9f8.
The program '[128] C++ Crazy Eddie Test.exe: Native' has exited with code 0 (0x0).

And like I say, the error occurs in the file 'Microsoft Visual Studio .NET 2003\Vc7\crt\src\fstream' rather than in a file within my project. Not sure what call routes to fstream.

User avatar
SuperGeek
Just popping in
Just popping in
Posts: 16
Joined: Wed Oct 19, 2005 18:56

Re: Missing Files: Am I loosing my mind?

Postby SuperGeek » Thu Oct 20, 2005 16:15

Ahhh! So I was being stupid. You are right, the log shows the file that was missing that through the exception. It worked fine before...wonder what's changed? The GUIscheme.xsd file is right where I left it, but the parser can't seem to find it. I'll play around with it till I figure it out. Thanks for the help!


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 13 guests