User Tag List

Results 1 to 2 of 2

Thread: build 4.15 android fail

  1. #1
    0
    Infiltrator
    Join Date
    Jun 2015
    Posts
    16

    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 at 11:58 PM.

  2. #2
    0
    Infiltrator
    Join Date
    Jun 2015
    Posts
    16
    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";

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •