Download

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?

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";

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

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

Did fix the problem.