Hello,
I am having problems compiling CEGUI at windows. My enviroment is Windows 7, Visual Studio 2012. I am trying to compile with the x64 compiler.
Any help will be apreciated!
I am extracting the cegui dependencies zip file at “C:\Users\Nicolas\Documents\Documentacion\cegui-deps-0.8.x-src”
Opening with cmake the dependencies folder with cmake.
Dependencies selected options:
CEGUI_BUILD_EXPAT
CEGUI_BUILD_FREETYPE2
CEGUI_BUILD_GLEW
CEGUI_BUILD_GLFW
CEGUI_BUILD_GLM
CEGUI_BUILD_LUA
CEGUI_BUILD_MINIZIP
CEGUI_BUILD_PCRE
CEGUI_BUILD_SILLY
CEGUI_BUILD_TINYXML
CEGUI_BUILD_TOLUAPP
CEGUI_BUILD_ZLIB
Then I open the solution “CEGUI-DEPS.sln”, select the Release (x64) configuration
Build Solution (no errors are in the build).
Extract cegui-0.8.2 zip file
Copy the dependecies folder to the cegui extracted folder.
The I copy the dependecies folder.
Open cegui folder with cmake.
Options:
CEGUI_OPTION_DEFAULT_XMLPARSER TinyXMLParser
CEGUI_STATIC_XMLPARSER_MODULE CEGUITinyXMLParser
CEGUI_BUILD_IMAGECODEC_SILLY
CEGUI_BUILD_IMAGECODEC_STB
CEGUI_BUILD_IMAGECODEC_TGA
CEGUI_BUILD_RENDERER_NULL
CEGUI_BUILD_RENDERER_OPENGL3
CEGUI_BUILD_RENDERER_OPENGLES
CEGUI_BUILD_SHARED_LIBS_WITH_STATIC_DEPENDENCIES
CEGUI_BUILD_SUFIX _d
CEGUI_BUILD_XMLPARSER_TINYXML
CEGUI_HAS_DEFAULT_LOGGER
CEGUI_HAS_FREETYPE
CEGUI_HAS_MINIZIP_RESOURCE_PROVIDER
CEGUI_CUSTOM_ALLOCATORS_INCLUDE CEGUI/MemoryStdAllocator.h
CEGUI_OPTION_DEFAULT_IMAGECODEC STBImageCodec
CEGUI_STATIC_IMAGECODEC_MODULE CEGUISTBImageCodec
CEGUI_STRING_CLASS 1
CMAKE_BUILD_TYPE Release
Then I open the generated solution “cegui.sln” with Visual Studio , select the Release (x64) configuration
Build Solution.
Here come some errors.
First at the project CEGUI-BASE:
1>------ Build started: Project: ZERO_CHECK, Configuration: Release x64 ------
2>------ Build started: Project: CEGUIBase-0, Configuration: Release x64 ------
2> FontManager.cpp
2>C:/Users/Nicolas/Documents/Documentacion/cegui-0.8.2/cegui/include\CEGUI/FreeTypeFont.h(37): fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory
2> Font_xmlHandler.cpp
2>C:/Users/Nicolas/Documents/Documentacion/cegui-0.8.2/cegui/include\CEGUI/FreeTypeFont.h(37): fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory
2> FreeTypeFont.cpp
2>C:/Users/Nicolas/Documents/Documentacion/cegui-0.8.2/cegui/include\CEGUI/FreeTypeFont.h(37): fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory
2> MinizipResourceProvider.cpp
2>C:\Users\Nicolas\Documents\Documentacion\cegui-0.8.2\cegui\src\MinizipResourceProvider.cpp(37): fatal error C1083: Cannot open include file: 'minizip/unzip.h': No such file or directory
2> Generating Code...
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
To fix the previous compilation error I manually add as include directory to the project:
C:/Users/Nicolas/Documents/Documentacion/cegui-0.8.2/dependencies/include
But after that I have the following error:
2> Creating library C:/Users/Nicolas/Documents/Documentacion/cegui-0.8.2_build/lib/CEGUIBase-0.lib and object C:/Users/Nicolas/Documents/Documentacion/cegui-0.8.2_build/lib/CEGUIBase-0.exp
2>FreeTypeFont.obj : error LNK2019: unresolved external symbol FT_Init_FreeType referenced in function "public: __cdecl CEGUI::FreeTypeFont::FreeTypeFont(class CEGUI::String const &,float,bool,class CEGUI::String const &,class CEGUI::String const &,enum CEGUI::AutoScaledMode,class CEGUI::Size<float> const &,float)" (??0FreeTypeFont@CEGUI@@QEAA@AEBVString@1@M_N00W4AutoScaledMode@1@AEBV?$Size@M@1@M@Z)
2>FreeTypeFont.obj : error LNK2019: unresolved external symbol FT_Done_FreeType referenced in function "public: virtual __cdecl CEGUI::FreeTypeFont::~FreeTypeFont(void)" (??1FreeTypeFont@CEGUI@@UEAA@XZ)
2>FreeTypeFont.obj : error LNK2019: unresolved external symbol FT_New_Memory_Face referenced in function "protected: virtual void __cdecl CEGUI::FreeTypeFont::updateFont(void)" (?updateFont@FreeTypeFont@CEGUI@@MEAAXXZ)
2>FreeTypeFont.obj : error LNK2019: unresolved external symbol FT_Done_Face referenced in function "protected: void __cdecl CEGUI::FreeTypeFont::free(void)" (?free@FreeTypeFont@CEGUI@@IEAAXXZ)
2>FreeTypeFont.obj : error LNK2019: unresolved external symbol FT_Set_Char_Size referenced in function "protected: virtual void __cdecl CEGUI::FreeTypeFont::updateFont(void)" (?updateFont@FreeTypeFont@CEGUI@@MEAAXXZ)
2>FreeTypeFont.obj : error LNK2019: unresolved external symbol FT_Load_Char referenced in function "protected: unsigned int __cdecl CEGUI::FreeTypeFont::getTextureSize(class std::_Tree_const_iterator<class std::_Tree_val<struct std::_Tree_simple_types<struct std::pair<unsigned int const ,class CEGUI::FontGlyph> > > >,class std::_Tree_const_iterator<class std::_Tree_val<struct std::_Tree_simple_types<struct std::pair<unsigned int const ,class CEGUI::FontGlyph> > > >)const " (?getTextureSize@FreeTypeFont@CEGUI@@IEBAIV?$_Tree_const_iterator@V?$_Tree_val@U?$_Tree_simple_types@U?$pair@$$CBIVFontGlyph@CEGUI@@@std@@@std@@@std@@@std@@0@Z)
2>FreeTypeFont.obj : error LNK2019: unresolved external symbol FT_Get_First_Char referenced in function "protected: void __cdecl CEGUI::FreeTypeFont::initialiseGlyphMap(void)" (?initialiseGlyphMap@FreeTypeFont@CEGUI@@IEAAXXZ)
2>FreeTypeFont.obj : error LNK2019: unresolved external symbol FT_Get_Next_Char referenced in function "protected: void __cdecl CEGUI::FreeTypeFont::initialiseGlyphMap(void)" (?initialiseGlyphMap@FreeTypeFont@CEGUI@@IEAAXXZ)
2>MinizipResourceProvider.obj : error LNK2019: unresolved external symbol __imp_unzOpen referenced in function "protected: void __cdecl CEGUI::MinizipResourceProvider::openArchive(void)" (?openArchive@MinizipResourceProvider@CEGUI@@IEAAXXZ)
2>MinizipResourceProvider.obj : error LNK2019: unresolved external symbol __imp_unzClose referenced in function "protected: void __cdecl CEGUI::MinizipResourceProvider::closeArchive(void)" (?closeArchive@MinizipResourceProvider@CEGUI@@IEAAXXZ)
2>MinizipResourceProvider.obj : error LNK2019: unresolved external symbol __imp_unzGoToFirstFile referenced in function "public: virtual unsigned __int64 __cdecl 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@@UEAA_KAEAV?$vector@VString@CEGUI@@V?$allocator@VString@CEGUI@@@std@@@std@@AEBVString@2@1@Z)
2>MinizipResourceProvider.obj : error LNK2019: unresolved external symbol __imp_unzGoToNextFile referenced in function "public: virtual unsigned __int64 __cdecl 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@@UEAA_KAEAV?$vector@VString@CEGUI@@V?$allocator@VString@CEGUI@@@std@@@std@@AEBVString@2@1@Z)
2>MinizipResourceProvider.obj : error LNK2019: unresolved external symbol __imp_unzLocateFile referenced in function "public: virtual void __cdecl CEGUI::MinizipResourceProvider::loadRawDataContainer(class CEGUI::String const &,class CEGUI::RawDataContainer &,class CEGUI::String const &)" (?loadRawDataContainer@MinizipResourceProvider@CEGUI@@UEAAXAEBVString@2@AEAVRawDataContainer@2@0@Z)
2>MinizipResourceProvider.obj : error LNK2019: unresolved external symbol __imp_unzGetCurrentFileInfo referenced in function "public: virtual unsigned __int64 __cdecl 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@@UEAA_KAEAV?$vector@VString@CEGUI@@V?$allocator@VString@CEGUI@@@std@@@std@@AEBVString@2@1@Z)
2>MinizipResourceProvider.obj : error LNK2019: unresolved external symbol __imp_unzOpenCurrentFile referenced in function "public: virtual void __cdecl CEGUI::MinizipResourceProvider::loadRawDataContainer(class CEGUI::String const &,class CEGUI::RawDataContainer &,class CEGUI::String const &)" (?loadRawDataContainer@MinizipResourceProvider@CEGUI@@UEAAXAEBVString@2@AEAVRawDataContainer@2@0@Z)
2>MinizipResourceProvider.obj : error LNK2019: unresolved external symbol __imp_unzCloseCurrentFile referenced in function "public: virtual void __cdecl CEGUI::MinizipResourceProvider::loadRawDataContainer(class CEGUI::String const &,class CEGUI::RawDataContainer &,class CEGUI::String const &)" (?loadRawDataContainer@MinizipResourceProvider@CEGUI@@UEAAXAEBVString@2@AEAVRawDataContainer@2@0@Z)
2>MinizipResourceProvider.obj : error LNK2019: unresolved external symbol __imp_unzReadCurrentFile referenced in function "public: virtual void __cdecl CEGUI::MinizipResourceProvider::loadRawDataContainer(class CEGUI::String const &,class CEGUI::RawDataContainer &,class CEGUI::String const &)" (?loadRawDataContainer@MinizipResourceProvider@CEGUI@@UEAAXAEBVString@2@AEAVRawDataContainer@2@0@Z)
2>C:\Users\Nicolas\Documents\Documentacion\Skiffia\cegui-0.8.2_build\bin\CEGUIBase-0.dll : fatal error LNK1120: 17 unresolved externals
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I think that this error is caused because the cmake genertate visual studio projects don't reference the dependecies correctly.
Thanks in advance,
Nicolas
Bulding errors Visual Studio 2012 x64
Moderators: CEGUI MVP, CEGUI Team
Re: Bulding errors Visual Studio 2012 x64
Does a 32bit build work? I am not sure we tested a x64 build but I don't see why it wouldn't work.
I have never seen these issues but as I do not use Windows or MSVC that doesn't necessarily mean they aren't there.
I have never seen these issues but as I do not use Windows or MSVC that doesn't necessarily mean they aren't there.
Re: Bulding errors Visual Studio 2012 x64
Hi.
Are you tring to link 32-bits libraries against a 64-bit application?
If so you're doing a huge mistake...
Are you tring to link 32-bits libraries against a 64-bit application?
If so you're doing a huge mistake...
Who is online
Users browsing this forum: No registered users and 16 guests