Unable to instantiate module 'FreeType2': Linux dedicated server is made to depend on FreeType2

I’m having problem with “FreeType2”, when crosscompiling from windows to linux

Getting error:
Unable to instantiate module ‘FreeType2’: Linux dedicated server is made to depend on FreeType2. We want to avoid this, please correct module dependencies.

(referenced via Target → ProjectName.Build.cs → AnimGraph.Build.cs → BlueprintGraph.Build.cs → KismetCompiler.Build.cs → UnrealEd.Build.cs)

Also having this in ProjectName.Build.cs

if (Target.Type ==
TargetRules.TargetType.Editor)
{
PrivateDependencyModuleNames.AddRange(new
string { “UnrealEd” });
}

My problem was, when i built Source engine, i didn’t run GenerateProjectFiles.bat with -2017 flag.