-
Notifications
You must be signed in to change notification settings - Fork 820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UE4 plugin fails to compile with default UE4 4.24 project #1318
Comments
I have a fix for this for both master and the 1.13 branch. The problem is that in UE 4.24, Unreal Build Tool introduced the concept of default build settings. Build settings determine how include directories are searched. By default in UE 4.24, projects use build settings v2, which requires include path prefixes. Here's an example V1 (legacy) target.cs file: // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.Collections.Generic;
public class AgonesTestEditorTarget : TargetRules
{
public AgonesTestEditorTarget( TargetInfo Target) : base(Target)
{
Type = TargetType.Editor;
DefaultBuildSettings = BuildSettingsVersion.V1;
ExtraModuleNames.AddRange( new string[] { "AgonesTest" } );
}
} Here's an example V2 (new) target.cs: // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.Collections.Generic;
public class AgonesTestEditorTarget : TargetRules
{
public AgonesTestEditorTarget( TargetInfo Target) : base(Target)
{
Type = TargetType.Editor;
DefaultBuildSettings = BuildSettingsVersion.V2;
ExtraModuleNames.AddRange( new string[] { "AgonesTest" } );
}
} |
/assign @dzlier-gcp |
I had the same problem when compiling spout on unreal Version: 4.24.3-11590370. Finding the files where stated V2 and changing to V1 made the project build. Thanks! |
see this, https://bbs.comblockengine.com/forum.php?mod=viewthread&tid=8889&extra= ,it may help you , similar question of yours. 已经解决,参考UE4 demo 的代码,修改空白的UE4 工程, 最终编译通过, 主要进行的修改是 删除了一行代码,但是我还不知道是什么原因Source/KBELearnPro.Target.csSource/KBELearnProEditor.Target.cs这两个文件里面,都删除了DefaultBuildSettings = BuildSettingsVersion.V2;复制代码这一行代码, 最终编译通过 |
What happened:
UE4 plugin compilation failed.
What you expected to happen:
UE4 plugin compilation should succeed.
How to reproduce it (as minimally and precisely as possible):
Results in compilation failure:
Anything else we need to know?:
I have a fix for this already. I'm preparing a PR now.
Environment:
kubectl version
): n/aThe text was updated successfully, but these errors were encountered: