0

我已按照 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”退出,代码为 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 头文件。

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

谢谢。

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

4

1 回答 1

0

我找到了答案。

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

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

在我删除这一行之后,程序编译没有问题并创建了 apk。

于 2014-05-27T08:09:19.033 回答