试图使用Havok Project Anarachy创建一个项目,不会构建

时间:2014-01-06 14:10:02

标签: c++ visual-studio-2010 visual-studio-2012 havok

我在vForge中使用vGameSolutionCreator来创建一个名为“Test1”的项目,当我在Visual Studio 2012(或Visual Studio 2010)中打开它并构建它时,我收到错误

Error   1   error LNK1104: cannot open file 'libgfx.lib'    C:\Users\dev1\Documents\AnarchyProjects\Test1\Source\Test1Plugin\LINK   Test1Plugin100 (Visual Studio 2010)

有谁知道我缺少什么和/或解决这个问题?

1 个答案:

答案 0 :(得分:1)

出现问题是由于模板中的默认缩放形式引用。 来自http://forum.projectanarchy.com/showthread.php?807-New-Release-2013-2-5

    The resulting project templates includes a reference to link against the Scaleform libraries. If you don't have or you don't need Scaleform in your project you will need to delete this references from the project. Because the project makes use of property sheets this libraries are linked automatically so if you don't need them you will have to: 

Right click in the ProjectTemplate→Properties.
Go to the Linker→General section.
Edit the Additional Dependencies field.
Uncheck the check-box labeled 'Inherit from parent or project defaults'.
Copy the contents of the 'Inherited values:' box (the one with light grey colour as background).
Paste the contents in the upper box under the already defined values.
Once pasted you must delete all the Scaleform entries:
-lgfx_air
-lgfx_as2
-lgfx_as3
-lgfx
-lgfxexpat
-lgfxplatform
-lgfxrender_gl
-lgfxsound_fmod
-lexpat
-ljpeg
-lpcre
-lpng
You will have to do this for each build configuration. This is Debug, Dev and Release.