ulf.schroeter Posted March 10, 2011 Share Posted March 10, 2011 Problem Build via utils/VCProj/unigine.bat fails due to missing includes and linker error Fix Adding missing subfolders to unigine.py include string # # include path # include_path = string.replace(''' .... game/obstacles; game/navigations; .... gui/flash; gui/flash/characters; gui/flash/objects; .... world/editors; world/worlds; ... fixes compile error, but there are still linker errors (when compiling with VS2008) Setting environment for using Microsoft Visual Studio 2008 x86 tools. Setting Unigine environment for Windows x86 platform. Microsoft (R) Visual C++ Project Builder - Command Line Version 9.00.21022 Copyright (C) Microsoft Corporation. All rights reserved. Rebuild started: Project: Unigine, Configuration: Debug|Win32 Deleting intermediate and output files for project 'Unigine', configuration 'Debug|Win32' Compiling... .... .... Linking... Creating library Unigine_x86d.lib and object Unigine_x86d.exp WorldTransformBone.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) WorldTrigger.obj : error LNK2019: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) referenced in function "public: virtual int __thiscall WorldTrigger::loadWorld(class Xml const *)" (?loadWorld@WorldTrigger@@UAEHPBVXml@@@Z) WorldSpatial.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) WorldOccluderTerrain.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) WorldPortal.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) WorldSector.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) WorldTransform.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) WorldClutter.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) WorldExpression.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) WorldOccluder.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) WorldOccluderMesh.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) World.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) WorldInterpreter.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) WorldManager.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) WorldCluster.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) Node.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) NodeDummy.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) NodeLayer.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) NodeReference.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) Editor.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) EditorLightMap.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) EditorLightProb.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) EditorMesh.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) Buffer.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) Socket.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) Stream.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) Thread.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) SoundRenderer.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) SoundReverb.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) SoundScene.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) SoundSource.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) SampleStream.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info@@6B@) ..... ..... unigine_debug.log.txt Link to comment
rohit.gonsalves_ Posted March 11, 2011 Share Posted March 11, 2011 Problem Build via utils/VCProj/unigine.bat fails due to missing includes and linker error fixes compile error, but there are still linker errors (when compiling with VS2008) Even on VS 2010 I have the same problem. The compiler error occurred as there are no includes in this vcproj. and linker error are occurring as the vcProj supplied doesn't include all the CPP files present in the engine sources hence compiler can't create object code. I will probably do the simple thing of updating the solution myself by checking SConsscript present. But if unigine guys do this then it will be very simple and fast. I hope that most of the users of unigine be using VS 2010 for windows development. If possible make the new VCproj for VS 2010. Link to comment
pit Posted March 11, 2011 Share Posted March 11, 2011 fixes compile error, but there are still linker errors (when compiling with VS2008) remove libcmt.lib from "ignore specific library" section (menu: project->properties->configuration properties->linker->input) Link to comment
ulf.schroeter Posted March 14, 2011 Author Share Posted March 14, 2011 remove libcmt.lib from "ignore specific library" section (menu: project->properties->configuration properties->linker->input) yep, this fixes issue. Fix for utils/VCProj/unigine.py therefore #ignore_libraries = string.replace(''' # libcmt.lib # ''','\n\t','') ignore_libraries = string.replace(''' ''','\n\t','') Link to comment
Recommended Posts