Recently, I want to add OpenMP for my UE5.0 project. I have added OpenMP support with adding “AdditionalCompilerArguments += “/openmp”;” in my project .target.cs file.
And I can build successfully. But I cann’t package this UE5 project with OpenMP support.
Here is the errors when I package my project:
UATHelper: Packaging (Windows): ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows): Running: E:\Epic-Games\UE_5.0\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.exe VrHeadSet Win64 Development -Project=E:\VrHeadSet\VrHeadSet.uproject E:\VrHeadSet\VrHeadSet.uproject -NoUBTMakefiles -remoteini=“E:\VrHeadSet” -skipdeploy -Manifest=E:\VrHeadSet\Intermediate\Build\Manifest.xml -NoHotReload -log=“C:\Users\tianma\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Epic-Games+UE_5.0\UBT-VrHeadSet-Win64-Development.txt”
UATHelper: Packaging (Windows): Log file: C:\Users\tianma\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Epic-Games+UE_5.0\UBT-VrHeadSet-Win64-Development.txt
UATHelper: Packaging (Windows): ERROR: VrHeadSet modifies the value of AdditionalCompilerArguments. This is not allowed, as VrHeadSet has build products in common with UnrealGame.
UATHelper: Packaging (Windows): Remove the modified setting, change VrHeadSet to use a unique build environment by setting ‘BuildEnvironment = TargetBuildEnvironment.Unique;’ in the VrHeadSetTarget constructor, or set bOverrideBuildEnvironment = true to force this setting on.
PackagingResults: Error: VrHeadSet modifies the value of AdditionalCompilerArguments. This is not allowed, as VrHeadSet has build products in common with UnrealGame.
UATHelper: Packaging (Windows): Took 1.0585952s to run UnrealBuildTool.exe, ExitCode=6
UATHelper: Packaging (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\tianma\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+Epic-Games+UE_5.0\UBT-VrHeadSet-Win64-Development.txt)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 3s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows): BUILD FAILED
Could some one give me some suggestions for solve the package errors for my project?
Thank you very much!