【问题标题】:Havok Vision Game Engine: Compiling Autodesk Scaleform For Android in Visual StudioHavok Vision 游戏引擎:在 Visual Studio 中为 Android 编译 Autodesk Scaleform
【发布时间】:2014-07-14 13:26:25
【问题描述】:

我已按照 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 网站上问过这个问题,但很长时间没有答案)

【问题讨论】:

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


    【解决方案1】:

    我找到了答案。

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

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

    删除这一行后,程序编译没有问题,apk 就创建好了。

    【讨论】:

      猜你喜欢
      • 2013-01-29
      • 2022-01-12
      • 1970-01-01
      • 1970-01-01
      • 2010-11-12
      • 1970-01-01
      • 1970-01-01
      • 2022-01-25
      • 1970-01-01
      相关资源
      最近更新 更多