Havok Vision游戏引擎:在Visual Studio中为Android编译Autodesk Scaleform

时间:2014-05-25 18:54:34

标签: android c++ visual-studio-2010 havok scaleform

我已按照Scaleform教程中的说明进行操作 http://www.projectanarchy.com/introduction-scaleform

在Windows上它一切正常,但现在我正在尝试在Visual Studio 2010中为Android编译它,我得到所有这些错误:

错误1错误MSB6006:" C:\ Android \ NDK \ android-ndk-r9d \ toolchains \ arm-linux-androideabi-4.6 \ prebuilt \ windows \ bin \ arm-linux-androideabi -g ++。exe& #34;退出代码1. C:\ Program Files(x86)\ MSBuild \ Microsoft.Cpp \ v4.0 \ Platforms \ hkAndroid \ Microsoft.Cpp.hkAndroid.Targets 66 6 CounterUIApplication

和这样的错误:

8   IntelliSense: cannot open source file "Vision/Runtime/EnginePlugins/ThirdParty/ScaleformEnginePlugin/VScaleformVariable.hpp"    c:\game engineering projects\scaleformtry\scaleformcounterui\counterui\source\counteruiapplication\main.cpp 18  1   CounterUIApplication

并且像这样:

31  IntelliSense: identifier "VISION_PLUGIN_ENSURE_LOADED" is undefined c:\game engineering projects\scaleformtry\scaleformcounterui\counterui\source\counteruiapplication\main.cpp 99  3   CounterUIApplication

似乎Visual Studio不会在Android解决方案中加载scaleform头文件。

我该如何解决? (注意:我已经检查了Vision引擎的vGameSolutionCreator中的Scaleform切换框)

感谢。

(我已经在Havok PA网站上问过这个问题,但很长一段时间都没有回答)

1 个答案:

答案 0 :(得分:0)

我找到了答案。

在我的电脑前坐了8个小时后,我发现问题是由我的源代码中的Windows特定行引起的(Android上不支持hkvLog :: FatalError):

if(m_spMovie==NULL)
{
 hkvLog::FatalError("Could not load movie: %s", m_sMovieName);
}

删除此行后,编译的程序没有问题,并且创建了apk。