4.9 Engine Source Code Can't Build

Hello everyone!

I can’t build the Unreal Engine 4.9 source code from Github. I keep getting compiler errors from Module.LocalizationDashboard.cpp or other localization related headers/cpps.

The build output looks like this:

1>D:\Program Files\UnrealEngine\Engine\Source\Editor\Localization\Public\LocalizationTargetTypes.h(25): error C2146: syntax error : missing ';' before identifier 'FString'
1>D:\Program Files\UnrealEngine\Engine\Source\Editor\Localization\Public\LocalizationTargetTypes.h(25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\UnrealEngine\Engine\Source\Editor\Localization\Public\LocalizationTargetTypes.h(36): error C2146: syntax error : missing ';' before identifier 'FString'
1>D:\Program Files\UnrealEngine\Engine\Source\Editor\Localization\Public\LocalizationTargetTypes.h(36): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\UnrealEngine\Engine\Source\Editor\Localization\Public\LocalizationTargetTypes.h(47): error C2146: syntax error : missing ';' before identifier 'FString'
1>D:\Program Files\UnrealEngine\Engine\Source\Editor\Localization\Public\LocalizationTargetTypes.h(47): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\UnrealEngine\Engine\Source\Editor\Localization\Public\LocalizationTargetTypes.h(58): error C2146: syntax error : missing ';' before identifier 'FString'
1>D:\Program Files\UnrealEngine\Engine\Source\Editor\Localization\Public\LocalizationTargetTypes.h(58): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\UnrealEngine\Engine\Source\Editor\Localization\Public\LocalizationTargetTypes.h(68): error C2143: syntax error : missing ';' before '<cv-qualifer>'
1>D:\Program Files\UnrealEngine\Engine\Source\Editor\Localization\Public\LocalizationTargetTypes.h(68): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\Program Files\UnrealEngine\Engine\Source\Editor\Localization\Public\LocalizationTargetTypes.h(68): error C2143: syntax error : missing ';' before '&'
1>D:\Program Files\UnrealEngine\Engine\Source\Editor\Localization\Public\LocalizationTargetTypes.h(68): error C2932: 'TArray<FGatherTextFileExtension,FDefaultAllocator>' : template-class-id redefined as a data member of 'FGatherTextFromTextFilesConfiguration'
1>D:\Program Files\UnrealEngine\Engine\Source\Editor\Localization\Public\LocalizationTargetTypes.h(68): error C4183: 'GetDefaultTextFileExtensions': missing return type; assumed to be a member function returning 'int'
1>D:\Program Files\UnrealEngine\Engine\Source\Editor\Localization\Public\LocalizationTargetTypes.h(73): error C2664: 'TArray<FGatherTextFileExtension,FDefaultAllocator>::TArray(TArray<FGatherTextFileExtension,FDefaultAllocator> &&)' : cannot convert argument 1 from 'int' to 'const TArray<FGatherTextFileExtension,FDefaultAllocator> &'
1>          Reason: cannot convert from 'int' to 'const TArray<FGatherTextFileExtension,FDefaultAllocator>'
1>          No constructor could take the source type, or constructor overload resolution was ambiguous

Is there something I’m missing here?

Thanks!

Try deleting your Engine/Intermediates folder, then generate projects, and build again.

That file was moved between 4.8 and 4.9 and UHT doesn’t seem to always clean up the generated code at the old location.

Thanks! It can now build.