System::create throws CEGUI::GenericException

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

Qqq
Just popping in
Just popping in
Posts: 6
Joined: Tue Jun 01, 2010 10:49

System::create throws CEGUI::GenericException

Postby Qqq » Tue Jun 01, 2010 11:05

Hello cegui community,

I am trying to wrap cegui for the Acknex Engine( http://www.3dgamestudio.com).
I am experienced with the plugin sdk of the engine.

foloowing this : http://www.cegui.org.uk/api_reference/r ... orial.html
i tired to get the cegui to render.

here is my function:

Code: Select all

DLLFUNC int cegui_init(){
   CEGUI::Direct3D9Renderer& ceguid3d9renderer = CEGUI::Direct3D9Renderer::create((LPDIRECT3DDEVICE9)ev->pd3ddev);
   
   try{
      CEGUI::System::create( ceguid3d9renderer );
   }
   catch(CEGUI::GenericException except){
      return 0;
   }
   return 1;
}


this function get's called from the engine, ev->pd3ddev is the LPDIRECT3DDEVICE9 that the engine is using. It is guaranteed by the engine is that this function is called somewhere between BeginScene and EndScene(thus the pd3ddev is valid.). CEGUI::Direct3D9Renderer::create seems to be working fine but CEGUI::System::create is not, since the debugger says the GenericException is thrown and the function returns 0.

CEGUI is dynamically linked, project compiles with 0 errors and 0 warnings, using vc++ express 2008.

What might be my problem? any help is appreciated.

Thanks.

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Re: System::create throws CEGUI::GenericException

Postby scriptkid » Tue Jun 01, 2010 12:02

Hi and welcome,

Which cegui version is that? Your log (cegui.log) should show more info about the exception.

HTH.
Check out my released snake game using Cegui!

Qqq
Just popping in
Just popping in
Posts: 6
Joined: Tue Jun 01, 2010 10:49

Re: System::create throws CEGUI::GenericException

Postby Qqq » Tue Jun 01, 2010 12:37

it's 0.7.1

i do not seem to have a cegui.log

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Re: System::create throws CEGUI::GenericException

Postby scriptkid » Tue Jun 01, 2010 13:03

Okay, well there should be one ;) Or, if the exceptions happens even before performing any logging, then it's most likely a linker issue. Such as mixing of debug and release libraries.

Can you get cegui to run out of the box, for example the samples?
Check out my released snake game using Cegui!

Qqq
Just popping in
Just popping in
Posts: 6
Joined: Tue Jun 01, 2010 10:49

Re: System::create throws CEGUI::GenericException

Postby Qqq » Tue Jun 01, 2010 13:04

since i do not have the directx sdk, i can't. I am only using release libraries(again for the same reason, since the debug version of the renderer requires debug versions of directx dlls.)

I am downloading the directx sdk rightnow, i'll see if i can run the examples.

Qqq
Just popping in
Just popping in
Posts: 6
Joined: Tue Jun 01, 2010 10:49

Re: System::create throws CEGUI::GenericException

Postby Qqq » Tue Jun 01, 2010 14:47

samples run out of the box, just opened the solution and built it. all samples working fine.

edit:

tried to static link the cegui, and got these on the build log:
defined _DEBUG and CEGUI_STATIC linked static_d libraries.

Code: Select all


1>------ Build started: Project: lite-cegui, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>Macro definition of max detected - undefining
1>Macro definition of min detected - undefining
1>Linking...
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: class std::locale::facet * __thiscall std::locale::facet::_Decref(void)" (?_Decref@facet@locale@std@@QAEPAV123@XZ) already defined in CEGUIBase_static_d.lib(CEGUIDefaultLogger.obj)
1>libcpmtd.lib(ios.obj) : error LNK2005: "private: static void __cdecl std::ios_base::_Ios_base_dtor(class std::ios_base *)" (?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z) already defined in msvcprtd.lib(MSVCP90D.dll)
1>libcpmtd.lib(ios.obj) : error LNK2005: "public: static void __cdecl std::ios_base::_Addstd(class std::ios_base *)" (?_Addstd@ios_base@std@@SAXPAV12@@Z) already defined in msvcprtd.lib(MSVCP90D.dll)
1>libcpmtd.lib(locale0.obj) : error LNK2005: "void __cdecl _AtModuleExit(void (__cdecl*)(void))" (?_AtModuleExit@@YAXP6AXXZ@Z) already defined in msvcprtd.lib(locale0_implib.obj)
1>libcpmtd.lib(locale0.obj) : error LNK2005: __Fac_tidy already defined in msvcprtd.lib(locale0_implib.obj)
1>libcpmtd.lib(locale0.obj) : error LNK2005: "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" (?facet_Register@facet@locale@std@@CAXPAV123@@Z) already defined in msvcprtd.lib(locale0_implib.obj)
1>libcpmtd.lib(locale0.obj) : error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)" (?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ) already defined in msvcprtd.lib(MSVCP90D.dll)
1>libcpmtd.lib(locale0.obj) : error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(void)" (?_Init@locale@std@@CAPAV_Locimp@12@XZ) already defined in msvcprtd.lib(MSVCP90D.dll)
1>libcpmtd.lib(locale0.obj) : error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z) already defined in msvcprtd.lib(MSVCP90D.dll)
1>libcpmtd.lib(locale0.obj) : error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)" (?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z) already defined in msvcprtd.lib(MSVCP90D.dll)
1>libcpmtd.lib(xlock.obj) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already defined in msvcprtd.lib(MSVCP90D.dll)
1>libcpmtd.lib(xlock.obj) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in msvcprtd.lib(MSVCP90D.dll)
1>   Creating library C:\Users\Quadraxas\Documents\Visual Studio 2008\Projects\lite-cegui\Debug\lite-cegui.lib and object C:\Users\Quadraxas\Documents\Visual Studio 2008\Projects\lite-cegui\Debug\lite-cegui.exp
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9GeometryBuffer.obj) : error LNK2019: unresolved external symbol _D3DXMatrixTransformation@28 referenced in function "protected: void __thiscall CEGUI::Direct3D9GeometryBuffer::updateMatrix(void)const " (?updateMatrix@Direct3D9GeometryBuffer@CEGUI@@IBEXXZ)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9GeometryBuffer.obj) : error LNK2019: unresolved external symbol _D3DXQuaternionRotationYawPitchRoll@16 referenced in function "protected: void __thiscall CEGUI::Direct3D9GeometryBuffer::updateMatrix(void)const " (?updateMatrix@Direct3D9GeometryBuffer@CEGUI@@IBEXXZ)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9Texture.obj) : error LNK2019: unresolved external symbol _D3DXCreateTexture@32 referenced in function "protected: __thiscall CEGUI::Direct3D9Texture::Direct3D9Texture(class CEGUI::Direct3D9Renderer &,class CEGUI::Size const &)" (??0Direct3D9Texture@CEGUI@@IAE@AAVDirect3D9Renderer@1@ABVSize@1@@Z)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9RenderTarget.obj) : error LNK2019: unresolved external symbol _D3DXPlaneIntersectLine@16 referenced in function "public: virtual void __thiscall CEGUI::Direct3D9RenderTarget::unprojectPoint(class CEGUI::GeometryBuffer const &,class CEGUI::Vector2 const &,class CEGUI::Vector2 &)const " (?unprojectPoint@Direct3D9RenderTarget@CEGUI@@UBEXABVGeometryBuffer@2@ABVVector2@2@AAV42@@Z)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9RenderTarget.obj) : error LNK2019: unresolved external symbol _D3DXVec3Unproject@24 referenced in function "public: virtual void __thiscall CEGUI::Direct3D9RenderTarget::unprojectPoint(class CEGUI::GeometryBuffer const &,class CEGUI::Vector2 const &,class CEGUI::Vector2 &)const " (?unprojectPoint@Direct3D9RenderTarget@CEGUI@@UBEXABVGeometryBuffer@2@ABVVector2@2@AAV42@@Z)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9RenderTarget.obj) : error LNK2019: unresolved external symbol _D3DXPlaneFromPoints@16 referenced in function "public: virtual void __thiscall CEGUI::Direct3D9RenderTarget::unprojectPoint(class CEGUI::GeometryBuffer const &,class CEGUI::Vector2 const &,class CEGUI::Vector2 &)const " (?unprojectPoint@Direct3D9RenderTarget@CEGUI@@UBEXABVGeometryBuffer@2@ABVVector2@2@AAV42@@Z)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9RenderTarget.obj) : error LNK2019: unresolved external symbol _D3DXVec3Project@24 referenced in function "public: virtual void __thiscall CEGUI::Direct3D9RenderTarget::unprojectPoint(class CEGUI::GeometryBuffer const &,class CEGUI::Vector2 const &,class CEGUI::Vector2 &)const " (?unprojectPoint@Direct3D9RenderTarget@CEGUI@@UBEXABVGeometryBuffer@2@ABVVector2@2@AAV42@@Z)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9RenderTarget.obj) : error LNK2019: unresolved external symbol _D3DXMatrixMultiply@12 referenced in function "protected: void __thiscall CEGUI::Direct3D9RenderTarget::updateMatrix(void)const " (?updateMatrix@Direct3D9RenderTarget@CEGUI@@IBEXXZ)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9RenderTarget.obj) : error LNK2019: unresolved external symbol _D3DXMatrixLookAtRH@16 referenced in function "protected: void __thiscall CEGUI::Direct3D9RenderTarget::updateMatrix(void)const " (?updateMatrix@Direct3D9RenderTarget@CEGUI@@IBEXXZ)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9RenderTarget.obj) : error LNK2019: unresolved external symbol _D3DXMatrixPerspectiveFovRH@20 referenced in function "protected: void __thiscall CEGUI::Direct3D9RenderTarget::updateMatrix(void)const " (?updateMatrix@Direct3D9RenderTarget@CEGUI@@IBEXXZ)
1>CEGUIBase_static_d.lib(CEGUISystem.obj) : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "public: static double __cdecl CEGUI::SimpleTimer::currentTime(void)" (?currentTime@SimpleTimer@CEGUI@@SANXZ)
1>CEGUIBase_static_d.lib(CEGUISystem.obj) : error LNK2019: unresolved external symbol _createParser referenced in function "private: void __thiscall CEGUI::System::setupXMLParser(void)" (?setupXMLParser@System@CEGUI@@AAEXXZ)
1>CEGUIBase_static_d.lib(CEGUISystem.obj) : error LNK2019: unresolved external symbol _destroyParser referenced in function "private: void __thiscall CEGUI::System::cleanupXMLParser(void)" (?cleanupXMLParser@System@CEGUI@@AAEXXZ)
1>CEGUIBase_static_d.lib(CEGUISystem.obj) : error LNK2019: unresolved external symbol _createImageCodec referenced in function "private: void __thiscall CEGUI::System::setupImageCodec(class CEGUI::String const &)" (?setupImageCodec@System@CEGUI@@AAEXABVString@2@@Z)
1>CEGUIBase_static_d.lib(CEGUISystem.obj) : error LNK2019: unresolved external symbol _destroyImageCodec referenced in function "private: void __thiscall CEGUI::System::cleanupImageCodec(void)" (?cleanupImageCodec@System@CEGUI@@AAEXXZ)
1>CEGUIBase_static_d.lib(CEGUIScheme.obj) : error LNK2019: unresolved external symbol _getWindowRendererModule referenced in function "private: void __thiscall CEGUI::Scheme::loadWindowRendererFactories(void)" (?loadWindowRendererFactories@Scheme@CEGUI@@AAEXXZ)
1>CEGUIBase_static_d.lib(CEGUIFreeTypeFont.obj) : error LNK2019: unresolved external symbol _FT_Init_FreeType referenced in function "public: __thiscall CEGUI::FreeTypeFont::FreeTypeFont(class CEGUI::String const &,float,bool,class CEGUI::String const &,class CEGUI::String const &,bool,float,float)" (??0FreeTypeFont@CEGUI@@QAE@ABVString@1@M_N001MM@Z)
1>CEGUIBase_static_d.lib(CEGUIFreeTypeFont.obj) : error LNK2019: unresolved external symbol _FT_Done_FreeType referenced in function "public: virtual __thiscall CEGUI::FreeTypeFont::~FreeTypeFont(void)" (??1FreeTypeFont@CEGUI@@UAE@XZ)
1>CEGUIBase_static_d.lib(CEGUIFreeTypeFont.obj) : error LNK2019: unresolved external symbol _FT_Load_Char referenced in function "protected: unsigned int __thiscall CEGUI::FreeTypeFont::getTextureSize(class std::_Tree<class std::_Tmap_traits<unsigned int,class CEGUI::FontGlyph,struct std::less<unsigned int>,class std::allocator<struct std::pair<unsigned int const ,class CEGUI::FontGlyph> >,0> >::const_iterator,class std::_Tree<class std::_Tmap_traits<unsigned int,class CEGUI::FontGlyph,struct std::less<unsigned int>,class std::allocator<struct std::pair<unsigned int const ,class CEGUI::FontGlyph> >,0> >::const_iterator)const " (?getTextureSize@FreeTypeFont@CEGUI@@IBEIVconst_iterator@?$_Tree@V?$_Tmap_traits@IVFontGlyph@CEGUI@@U?$less@I@std@@V?$allocator@U?$pair@$$CBIVFontGlyph@CEGUI@@@std@@@4@$0A@@std@@@std@@0@Z)
1>CEGUIBase_static_d.lib(CEGUIFreeTypeFont.obj) : error LNK2019: unresolved external symbol _FT_Done_Face referenced in function "protected: void __thiscall CEGUI::FreeTypeFont::free(void)" (?free@FreeTypeFont@CEGUI@@IAEXXZ)
1>CEGUIBase_static_d.lib(CEGUIFreeTypeFont.obj) : error LNK2019: unresolved external symbol _FT_Get_Next_Char referenced in function "protected: virtual void __thiscall CEGUI::FreeTypeFont::updateFont(void)" (?updateFont@FreeTypeFont@CEGUI@@MAEXXZ)
1>CEGUIBase_static_d.lib(CEGUIFreeTypeFont.obj) : error LNK2019: unresolved external symbol _FT_Get_First_Char referenced in function "protected: virtual void __thiscall CEGUI::FreeTypeFont::updateFont(void)" (?updateFont@FreeTypeFont@CEGUI@@MAEXXZ)
1>CEGUIBase_static_d.lib(CEGUIFreeTypeFont.obj) : error LNK2019: unresolved external symbol _FT_Set_Char_Size referenced in function "protected: virtual void __thiscall CEGUI::FreeTypeFont::updateFont(void)" (?updateFont@FreeTypeFont@CEGUI@@MAEXXZ)
1>CEGUIBase_static_d.lib(CEGUIFreeTypeFont.obj) : error LNK2019: unresolved external symbol _FT_New_Memory_Face referenced in function "protected: virtual void __thiscall CEGUI::FreeTypeFont::updateFont(void)" (?updateFont@FreeTypeFont@CEGUI@@MAEXXZ)
1>CEGUIBase_static_d.lib(CEGUIPCRERegexMatcher.obj) : error LNK2019: unresolved external symbol _pcre_compile referenced in function "public: virtual void __thiscall CEGUI::PCRERegexMatcher::setRegexString(class CEGUI::String const &)" (?setRegexString@PCRERegexMatcher@CEGUI@@UAEXABVString@2@@Z)
1>CEGUIBase_static_d.lib(CEGUIPCRERegexMatcher.obj) : error LNK2019: unresolved external symbol _pcre_exec referenced in function "public: virtual bool __thiscall CEGUI::PCRERegexMatcher::matchRegex(class CEGUI::String const &)const " (?matchRegex@PCRERegexMatcher@CEGUI@@UBE_NABVString@2@@Z)
1>CEGUIBase_static_d.lib(CEGUIPCRERegexMatcher.obj) : error LNK2001: unresolved external symbol _pcre_free
1>C:\Users\Quadraxas\Documents\Visual Studio 2008\Projects\lite-cegui\Debug\lite-cegui.dll : fatal error LNK1120: 27 unresolved externals
1>Build log was saved at "file://c:\Users\Quadraxas\Documents\Visual Studio 2008\Projects\lite-cegui\lite-cegui\Debug\BuildLog.htm"
1>lite-cegui - 40 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


maybe gives you some hints about the things i am missing?

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Re: System::create throws CEGUI::GenericException

Postby scriptkid » Tue Jun 01, 2010 17:30

Hi, it looks like your project settings aren't okay. In C/C++ -> Code Generation, your Runtime library should not link to a DLL, but static also (/MTd or /MDd).
Check out my released snake game using Cegui!

Qqq
Just popping in
Just popping in
Posts: 6
Joined: Tue Jun 01, 2010 10:49

Re: System::create throws CEGUI::GenericException

Postby Qqq » Tue Jun 01, 2010 17:47

Thanks alot for the help, i am getting a diffrent linking error this time(added some of the dependencies to the linker, ):

linked libraries:
CEGUIDirect3D9Renderer_static_d.lib
CEGUIBase_static_d.lib
libpng_d.lib
jpeg_d.lib
zlib_d.lib
freetype_D.lib

Code: Select all


11>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9GeometryBuffer.obj) : error LNK2019: unresolved external symbol _D3DXMatrixTransformation@28 referenced in function "protected: void __thiscall CEGUI::Direct3D9GeometryBuffer::updateMatrix(void)const " (?updateMatrix@Direct3D9GeometryBuffer@CEGUI@@IBEXXZ)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9GeometryBuffer.obj) : error LNK2019: unresolved external symbol _D3DXQuaternionRotationYawPitchRoll@16 referenced in function "protected: void __thiscall CEGUI::Direct3D9GeometryBuffer::updateMatrix(void)const " (?updateMatrix@Direct3D9GeometryBuffer@CEGUI@@IBEXXZ)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9Texture.obj) : error LNK2019: unresolved external symbol _D3DXCreateTexture@32 referenced in function "protected: __thiscall CEGUI::Direct3D9Texture::Direct3D9Texture(class CEGUI::Direct3D9Renderer &,class CEGUI::Size const &)" (??0Direct3D9Texture@CEGUI@@IAE@AAVDirect3D9Renderer@1@ABVSize@1@@Z)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9RenderTarget.obj) : error LNK2019: unresolved external symbol _D3DXPlaneIntersectLine@16 referenced in function "public: virtual void __thiscall CEGUI::Direct3D9RenderTarget::unprojectPoint(class CEGUI::GeometryBuffer const &,class CEGUI::Vector2 const &,class CEGUI::Vector2 &)const " (?unprojectPoint@Direct3D9RenderTarget@CEGUI@@UBEXABVGeometryBuffer@2@ABVVector2@2@AAV42@@Z)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9RenderTarget.obj) : error LNK2019: unresolved external symbol _D3DXVec3Unproject@24 referenced in function "public: virtual void __thiscall CEGUI::Direct3D9RenderTarget::unprojectPoint(class CEGUI::GeometryBuffer const &,class CEGUI::Vector2 const &,class CEGUI::Vector2 &)const " (?unprojectPoint@Direct3D9RenderTarget@CEGUI@@UBEXABVGeometryBuffer@2@ABVVector2@2@AAV42@@Z)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9RenderTarget.obj) : error LNK2019: unresolved external symbol _D3DXPlaneFromPoints@16 referenced in function "public: virtual void __thiscall CEGUI::Direct3D9RenderTarget::unprojectPoint(class CEGUI::GeometryBuffer const &,class CEGUI::Vector2 const &,class CEGUI::Vector2 &)const " (?unprojectPoint@Direct3D9RenderTarget@CEGUI@@UBEXABVGeometryBuffer@2@ABVVector2@2@AAV42@@Z)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9RenderTarget.obj) : error LNK2019: unresolved external symbol _D3DXVec3Project@24 referenced in function "public: virtual void __thiscall CEGUI::Direct3D9RenderTarget::unprojectPoint(class CEGUI::GeometryBuffer const &,class CEGUI::Vector2 const &,class CEGUI::Vector2 &)const " (?unprojectPoint@Direct3D9RenderTarget@CEGUI@@UBEXABVGeometryBuffer@2@ABVVector2@2@AAV42@@Z)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9RenderTarget.obj) : error LNK2019: unresolved external symbol _D3DXMatrixMultiply@12 referenced in function "protected: void __thiscall CEGUI::Direct3D9RenderTarget::updateMatrix(void)const " (?updateMatrix@Direct3D9RenderTarget@CEGUI@@IBEXXZ)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9RenderTarget.obj) : error LNK2019: unresolved external symbol _D3DXMatrixLookAtRH@16 referenced in function "protected: void __thiscall CEGUI::Direct3D9RenderTarget::updateMatrix(void)const " (?updateMatrix@Direct3D9RenderTarget@CEGUI@@IBEXXZ)
1>CEGUIDirect3D9Renderer_static_d.lib(CEGUIDirect3D9RenderTarget.obj) : error LNK2019: unresolved external symbol _D3DXMatrixPerspectiveFovRH@20 referenced in function "protected: void __thiscall CEGUI::Direct3D9RenderTarget::updateMatrix(void)const " (?updateMatrix@Direct3D9RenderTarget@CEGUI@@IBEXXZ)
1>CEGUIBase_static_d.lib(CEGUISystem.obj) : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "public: static double __cdecl CEGUI::SimpleTimer::currentTime(void)" (?currentTime@SimpleTimer@CEGUI@@SANXZ)
1>CEGUIBase_static_d.lib(CEGUISystem.obj) : error LNK2019: unresolved external symbol _createParser referenced in function "private: void __thiscall CEGUI::System::setupXMLParser(void)" (?setupXMLParser@System@CEGUI@@AAEXXZ)
1>CEGUIBase_static_d.lib(CEGUISystem.obj) : error LNK2019: unresolved external symbol _destroyParser referenced in function "private: void __thiscall CEGUI::System::cleanupXMLParser(void)" (?cleanupXMLParser@System@CEGUI@@AAEXXZ)
1>CEGUIBase_static_d.lib(CEGUISystem.obj) : error LNK2019: unresolved external symbol _createImageCodec referenced in function "private: void __thiscall CEGUI::System::setupImageCodec(class CEGUI::String const &)" (?setupImageCodec@System@CEGUI@@AAEXABVString@2@@Z)
1>CEGUIBase_static_d.lib(CEGUISystem.obj) : error LNK2019: unresolved external symbol _destroyImageCodec referenced in function "private: void __thiscall CEGUI::System::cleanupImageCodec(void)" (?cleanupImageCodec@System@CEGUI@@AAEXXZ)
1>CEGUIBase_static_d.lib(CEGUIScheme.obj) : error LNK2019: unresolved external symbol _getWindowRendererModule referenced in function "private: void __thiscall CEGUI::Scheme::loadWindowRendererFactories(void)" (?loadWindowRendererFactories@Scheme@CEGUI@@AAEXXZ)
1>CEGUIBase_static_d.lib(CEGUIPCRERegexMatcher.obj) : error LNK2019: unresolved external symbol _pcre_compile referenced in function "public: virtual void __thiscall CEGUI::PCRERegexMatcher::setRegexString(class CEGUI::String const &)" (?setRegexString@PCRERegexMatcher@CEGUI@@UAEXABVString@2@@Z)
1>CEGUIBase_static_d.lib(CEGUIPCRERegexMatcher.obj) : error LNK2019: unresolved external symbol _pcre_exec referenced in function "public: virtual bool __thiscall CEGUI::PCRERegexMatcher::matchRegex(class CEGUI::String const &)const " (?matchRegex@PCRERegexMatcher@CEGUI@@UBE_NABVString@2@@Z)
1>CEGUIBase_static_d.lib(CEGUIPCRERegexMatcher.obj) : error LNK2001: unresolved external symbol _pcre_free
1>C:\Users\Quadraxas\Documents\Visual Studio 2008\Projects\lite-cegui\Debug\lite-cegui.dll : fatal error LNK1120: 19 unresolved externals
1>Build log was saved at "file://c:\Users\Quadraxas\Documents\Visual Studio 2008\Projects\lite-cegui\lite-cegui\Debug\BuildLog.htm"
1>lite-cegui - 20 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: System::create throws CEGUI::GenericException

Postby CrazyEddie » Wed Jun 02, 2010 09:08

Firstly, ensure the dependency libs are the correct build config, for builds against the static runtime, use the dependencies/lib/static ones.

You're then missing libs for direct3d - d3d9.lib and d3dx9d.lib (I think), pcre_d.lib, one of the XML paraer libs and it's dependencies (exampleCEGUIExpatParser_static_d.lib and expat_d.lib) and one of the image codec libs and it's dependencies (CEGUISILLYImageCodec_static_d.lib, SILLY_d.lib, libpng_d.lib, jpeg_d.lib and zlib_d.lib).

For the very first issue you had in the OP, after catching the exception you should output the message it contains, since it tells you more about the problem. In this case it would have been that it could not load either an XML parser module dll or the image codec module dll - all you had to do was find out which one(s) they were and add them in your path / working directory.

CE.

Qqq
Just popping in
Just popping in
Posts: 6
Joined: Tue Jun 01, 2010 10:49

Re: System::create throws CEGUI::GenericException

Postby Qqq » Wed Jun 02, 2010 11:01

thanks alot for the help, both static & dynamic and both release and debug seems to be working in the engine now.

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Re: System::create throws CEGUI::GenericException

Postby scriptkid » Thu Jun 03, 2010 10:13

Okay, nice :)
Check out my released snake game using Cegui!


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 13 guests