Building Cegui 0.8.2 with static dependencies

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

RVM
Just popping in
Just popping in
Posts: 1
Joined: Sat Jun 18, 2011 13:19

Building Cegui 0.8.2 with static dependencies

Postby RVM » Fri Oct 18, 2013 12:08

Hello,

I tried to compile Cegui with the static dependencies but after hour of "bricolage" I stack on some error. Building with shared depen. is fine (except Dx11).
I verified on depen. and Cegui Project and all was ok:
  • Character Set
  • Runtime Support
  • Runtime Library

CeguiBase-0 linker Input : freetype_d.lib,pcre_d.lib,minizip_d.lib

From the dependencies it-self :
MiniZipRessourceProvider :

Error 1 error LNK2019: unresolved external symbol __imp__unzOpen referenced in function "protected: void __thiscall CEGUI::MinizipResourceProvider::openArchive(void)" (?openArchive@MinizipResourceProvider@CEGUI@@IAEXXZ) D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\MinizipResourceProvider.obj CEGUIBase-0
Error 2 error LNK2019: unresolved external symbol __imp__unzClose referenced in function "protected: void __thiscall CEGUI::MinizipResourceProvider::closeArchive(void)" (?closeArchive@MinizipResourceProvider@CEGUI@@IAEXXZ) D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\MinizipResourceProvider.obj CEGUIBase-0
Error 3 error LNK2019: unresolved external symbol __imp__unzGoToFirstFile referenced in function "public: virtual unsigned int __thiscall CEGUI::MinizipResourceProvider::getResourceGroupFileNames(class std::vector<class CEGUI::String,class std::allocator<class CEGUI::String> > &,class CEGUI::String const &,class CEGUI::String const &)" (?getResourceGroupFileNames@MinizipResourceProvider@CEGUI@@UAEIAAV?$vector@VString@CEGUI@@V?$allocator@VString@CEGUI@@@std@@@std@@ABVString@2@1@Z) D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\MinizipResourceProvider.obj CEGUIBase-0
Error 4 error LNK2019: unresolved external symbol __imp__unzGoToNextFile referenced in function "public: virtual unsigned int __thiscall CEGUI::MinizipResourceProvider::getResourceGroupFileNames(class std::vector<class CEGUI::String,class std::allocator<class CEGUI::String> > &,class CEGUI::String const &,class CEGUI::String const &)" (?getResourceGroupFileNames@MinizipResourceProvider@CEGUI@@UAEIAAV?$vector@VString@CEGUI@@V?$allocator@VString@CEGUI@@@std@@@std@@ABVString@2@1@Z) D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\MinizipResourceProvider.obj CEGUIBase-0
Error 5 error LNK2019: unresolved external symbol __imp__unzLocateFile referenced in function "public: virtual void __thiscall CEGUI::MinizipResourceProvider::loadRawDataContainer(class CEGUI::String const &,class CEGUI::RawDataContainer &,class CEGUI::String const &)" (?loadRawDataContainer@MinizipResourceProvider@CEGUI@@UAEXABVString@2@AAVRawDataContainer@2@0@Z) D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\MinizipResourceProvider.obj CEGUIBase-0
Error 6 error LNK2019: unresolved external symbol __imp__unzGetCurrentFileInfo referenced in function "public: virtual void __thiscall CEGUI::MinizipResourceProvider::loadRawDataContainer(class CEGUI::String const &,class CEGUI::RawDataContainer &,class CEGUI::String const &)" (?loadRawDataContainer@MinizipResourceProvider@CEGUI@@UAEXABVString@2@AAVRawDataContainer@2@0@Z) D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\MinizipResourceProvider.obj CEGUIBase-0
Error 7 error LNK2019: unresolved external symbol __imp__unzOpenCurrentFile referenced in function "public: virtual void __thiscall CEGUI::MinizipResourceProvider::loadRawDataContainer(class CEGUI::String const &,class CEGUI::RawDataContainer &,class CEGUI::String const &)" (?loadRawDataContainer@MinizipResourceProvider@CEGUI@@UAEXABVString@2@AAVRawDataContainer@2@0@Z) D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\MinizipResourceProvider.obj CEGUIBase-0
Error 8 error LNK2019: unresolved external symbol __imp__unzCloseCurrentFile referenced in function "public: virtual void __thiscall CEGUI::MinizipResourceProvider::loadRawDataContainer(class CEGUI::String const &,class CEGUI::RawDataContainer &,class CEGUI::String const &)" (?loadRawDataContainer@MinizipResourceProvider@CEGUI@@UAEXABVString@2@AAVRawDataContainer@2@0@Z) D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\MinizipResourceProvider.obj CEGUIBase-0
Error 9 error LNK2019: unresolved external symbol __imp__unzReadCurrentFile referenced in function "public: virtual void __thiscall CEGUI::MinizipResourceProvider::loadRawDataContainer(class CEGUI::String const &,class CEGUI::RawDataContainer &,class CEGUI::String const &)" (?loadRawDataContainer@MinizipResourceProvider@CEGUI@@UAEXABVString@2@AAVRawDataContainer@2@0@Z) D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\MinizipResourceProvider.obj CEGUIBase-0

libTiff, libpng, :
Error 244 error LNK2019: unresolved external symbol _inflateReset referenced in function _png_reset_zstream D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\Corona\libpng_d.lib(png.obj) CEGUICoronaImageCodec
Error 245 error LNK2001: unresolved external symbol _inflateReset D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\Corona\libpng_d.lib(pngrutil.obj) CEGUICoronaImageCodec
Error 246 error LNK2019: unresolved external symbol _crc32 referenced in function _png_reset_crc D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\Corona\libpng_d.lib(png.obj) CEGUICoronaImageCodec
Error 247 error LNK2019: unresolved external symbol _inflate referenced in function _png_read_row D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\Corona\libpng_d.lib(pngread.obj) CEGUICoronaImageCodec
Error 248 error LNK2001: unresolved external symbol _inflate D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\Corona\libpng_d.lib(pngrutil.obj) CEGUICoronaImageCodec
Error 249 error LNK2019: unresolved external symbol _inflateEnd referenced in function _png_read_destroy D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\Corona\libpng_d.lib(pngread.obj) CEGUICoronaImageCodec
Error 250 error LNK2019: unresolved external symbol _inflateInit_ referenced in function _png_create_read_struct_2 D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\Corona\libpng_d.lib(pngread.obj) CEGUICoronaImageCodec
Error 251 error LNK2019: unresolved external symbol _deflate referenced in function _png_write_flush D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\Corona\libpng_d.lib(pngwrite.obj) CEGUICoronaImageCodec
Error 252 error LNK2001: unresolved external symbol _deflate D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\Corona\libpng_d.lib(pngwutil.obj) CEGUICoronaImageCodec
Error 253 error LNK2019: unresolved external symbol _deflateEnd referenced in function _png_write_destroy D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\Corona\libpng_d.lib(pngwrite.obj) CEGUICoronaImageCodec
Error 254 error LNK2019: unresolved external symbol _deflateReset referenced in function _png_write_finish_row D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\Corona\libpng_d.lib(pngwutil.obj) CEGUICoronaImageCodec
Error 255 error LNK2019: unresolved external symbol _deflateInit2_ referenced in function _png_write_IHDR D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\Corona\libpng_d.lib(pngwutil.obj) CEGUICoronaImageCodec
Error 256 error LNK1120: 9 unresolved externals D:\SDK\CPP\cegui_v0-8-2\bin\bin\CEGUICoronaImageCodec_d.dll CEGUICoronaImageCodec
Error 261 error LNK2019: unresolved external symbol _inflate referenced in function _png_read_row D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libpng_d.lib(pngread.obj) CEGUIDevILImageCodec
Error 262 error LNK2001: unresolved external symbol _inflate D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libpng_d.lib(pngrutil.obj) CEGUIDevILImageCodec
Error 263 error LNK2001: unresolved external symbol _inflate D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libtiff_d.lib(tif_zip.obj) CEGUIDevILImageCodec
Error 264 error LNK2001: unresolved external symbol _inflate D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libmng_d.lib(libmng_zlib.obj) CEGUIDevILImageCodec
Error 265 error LNK2019: unresolved external symbol _inflateEnd referenced in function _png_read_destroy D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libpng_d.lib(pngread.obj) CEGUIDevILImageCodec
Error 266 error LNK2001: unresolved external symbol _inflateEnd D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libtiff_d.lib(tif_zip.obj) CEGUIDevILImageCodec
Error 267 error LNK2001: unresolved external symbol _inflateEnd D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libmng_d.lib(libmng_zlib.obj) CEGUIDevILImageCodec
Error 268 error LNK2019: unresolved external symbol _inflateInit_ referenced in function _png_create_read_struct_2 D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libpng_d.lib(pngread.obj) CEGUIDevILImageCodec
Error 269 error LNK2001: unresolved external symbol _inflateInit_ D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libtiff_d.lib(tif_zip.obj) CEGUIDevILImageCodec
Error 270 error LNK2001: unresolved external symbol _inflateInit_ D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libmng_d.lib(libmng_zlib.obj) CEGUIDevILImageCodec
Error 271 error LNK2019: unresolved external symbol _inflateReset referenced in function _png_reset_zstream D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libpng_d.lib(png.obj) CEGUIDevILImageCodec
Error 272 error LNK2001: unresolved external symbol _inflateReset D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libpng_d.lib(pngrutil.obj) CEGUIDevILImageCodec
Error 273 error LNK2001: unresolved external symbol _inflateReset D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libtiff_d.lib(tif_zip.obj) CEGUIDevILImageCodec
Error 274 error LNK2019: unresolved external symbol _crc32 referenced in function _png_reset_crc D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libpng_d.lib(png.obj) CEGUIDevILImageCodec
Error 275 error LNK2019: unresolved external symbol _deflate referenced in function _png_write_flush D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libpng_d.lib(pngwrite.obj) CEGUIDevILImageCodec
Error 276 error LNK2001: unresolved external symbol _deflate D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libpng_d.lib(pngwutil.obj) CEGUIDevILImageCodec
Error 277 error LNK2001: unresolved external symbol _deflate D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libtiff_d.lib(tif_zip.obj) CEGUIDevILImageCodec
Error 278 error LNK2001: unresolved external symbol _deflate D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libmng_d.lib(libmng_zlib.obj) CEGUIDevILImageCodec
Error 279 error LNK2019: unresolved external symbol _deflateEnd referenced in function _png_write_destroy D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libpng_d.lib(pngwrite.obj) CEGUIDevILImageCodec
Error 280 error LNK2001: unresolved external symbol _deflateEnd D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libtiff_d.lib(tif_zip.obj) CEGUIDevILImageCodec
Error 281 error LNK2001: unresolved external symbol _deflateEnd D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libmng_d.lib(libmng_zlib.obj) CEGUIDevILImageCodec
Error 282 error LNK2019: unresolved external symbol _deflateReset referenced in function _png_write_finish_row D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libpng_d.lib(pngwutil.obj) CEGUIDevILImageCodec
Error 283 error LNK2001: unresolved external symbol _deflateReset D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libtiff_d.lib(tif_zip.obj) CEGUIDevILImageCodec
Error 284 error LNK2019: unresolved external symbol _deflateInit2_ referenced in function _png_write_IHDR D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libpng_d.lib(pngwutil.obj) CEGUIDevILImageCodec
Error 285 error LNK2001: unresolved external symbol _deflateInit2_ D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libmng_d.lib(libmng_zlib.obj) CEGUIDevILImageCodec
Error 286 error LNK2019: unresolved external symbol _deflateParams referenced in function _ZIPVSetField D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libtiff_d.lib(tif_zip.obj) CEGUIDevILImageCodec
Error 287 error LNK2019: unresolved external symbol _inflateSync referenced in function _ZIPDecode D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libtiff_d.lib(tif_zip.obj) CEGUIDevILImageCodec
Error 288 error LNK2019: unresolved external symbol _deflateInit_ referenced in function _ZIPSetupEncode D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\ImageCodecModules\DevIL\libtiff_d.lib(tif_zip.obj) CEGUIDevILImageCodec


And from other :

Dx11 :
Error 161 error LNK2019: unresolved external symbol _D3DX11CreateEffectFromMemory@20 referenced in function "protected: __thiscall CEGUI::Direct3D11Renderer::Direct3D11Renderer(struct ID3D11Device *,struct ID3D11DeviceContext *)" (??0Direct3D11Renderer@CEGUI@@IAE@PAUID3D11Device@@PAUID3D11DeviceContext@@@Z) D:\SDK\CPP\cegui_v0-8-2\bin\cegui\src\RendererModules\Direct3D11\Renderer.obj CEGUIDirect3D11Renderer-0
Error 162 error LNK1120: 1 unresolved externals D:\SDK\CPP\cegui_v0-8-2\bin\bin\CEGUIDirect3D11Renderer-0_d.dll CEGUIDirect3D11Renderer-0
163 IntelliSense: "CEGUI::Direct3D11Texture::Direct3D11Texture(IDevice11 &device, const CEGUI::String &name)" (declared at line 112 of "D:/SDK/CPP/cegui_v0-8-2/cegui/include/CEGUI/RendererModules/Direct3D11/Texture.h") is inaccessible d:\SDK\CPP\cegui_v0-8-2\cegui\src\RendererModules\Direct3D11\Renderer.cpp 172 51 CEGUIDirect3D11Renderer-0
164 IntelliSense: "CEGUI::Direct3D11Texture::Direct3D11Texture(IDevice11 &device, const CEGUI::String &name, const CEGUI::String &filename, const CEGUI::String &resourceGroup)" (declared at line 114 of "D:/SDK/CPP/cegui_v0-8-2/cegui/include/CEGUI/RendererModules/Direct3D11/Texture.h") is inaccessible d:\SDK\CPP\cegui_v0-8-2\cegui\src\RendererModules\Direct3D11\Renderer.cpp 187 51 CEGUIDirect3D11Renderer-0
165 IntelliSense: "CEGUI::Direct3D11Texture::Direct3D11Texture(IDevice11 &device, const CEGUI::String &name, const CEGUI::Sizef &sz)" (declared at line 117 of "D:/SDK/CPP/cegui_v0-8-2/cegui/include/CEGUI/RendererModules/Direct3D11/Texture.h") is inaccessible d:\SDK\CPP\cegui_v0-8-2\cegui\src\RendererModules\Direct3D11\Renderer.cpp 202 51 CEGUIDirect3D11Renderer-0
166 IntelliSense: "CEGUI::Direct3D11Texture::~Direct3D11Texture()" (declared at line 121 of "D:/SDK/CPP/cegui_v0-8-2/cegui/include/CEGUI/RendererModules/Direct3D11/Texture.h") is inaccessible d:\SDK\CPP\cegui_v0-8-2\cegui\src\RendererModules\Direct3D11\Renderer.cpp 240 16 CEGUIDirect3D11Renderer-0


System Conf :
Windows 7 Pro
Microsoft Visual Studio Ultimate 2012
Version 11.0.60610.01 Update 3
Microsoft .NET Framework
Version 4.5.50709

SDK Version :
Ogre3D : 1.8.1
Cegui : 0.8.2 from repo
Cegui Dep : from repo with comit tag 36981928eee9
Boost : 1.54.0
Windows SDK : 7.0A | 7.1A | v8.0 | v8.0A
Direct X SDK : June 2010

CMakeCache.txt : => http://pastebin.com/gnNm67yY

Thanks for any advice / help,
RVM

Return to “Help”

Who is online

Users browsing this forum: No registered users and 1 guest