Announcement

Collapse
No announcement yet.

build 4.15 android fail

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • build 4.15 android fail

    hi, I have success build engine 4.15 on windows for development editor and client ,
    but build android development client fail, seems like template static member problem,

    D:\GitHub\UnrealEngine\Engine\Source\Runtime\Core\Public\Misc\CString.h(385,31): error : instantiation of variable 'TCStringSpcHelper<wchar_t>::TabArray' required here, but no definition is available [-Werror,-Wundefined-var-template]
    2> return TCStringSpcHelper<T>::TabArray + TCStringSpcHelper<T>::MAX_TABS - NumTabs;

    clang can't handle this, but vstudio 2015 can compile.

    I can fix this error by specialization TCStringSpcHelper<wchar_t>, but there's too manay errors like this, any body have success compiled unreal engine 4.15 for android?
    Last edited by feiwu; 04-20-2017, 11:58 PM.

  • #2
    finally, I fix this problem by add clang build flags:
    open unrealbuildtool project,
    add below code to AndroidToolChain.cs at line 386

    Result += " -Wno-undefined-var-template";

    Comment


    • #3
      This same error is also present in the daydream branch of unreal engine 4.

      Result += " -Wno-undefined-var-template";

      Did fix the problem.

      Comment

      Working...
      X