Giter VIP home page Giter VIP logo

Comments (4)

Algorithman avatar Algorithman commented on August 27, 2024 1

Had the same issue. I resolved it by adding the .Net SDK path to the SDK folder (in my case C:/Program Files (x86)/Windows Kits/NETFXSDK/4.7.2/Include/um) to the PrivateIncludePaths and C:/Program Files (x86)/Windows Kits/NETFXSDK/4.7.2/lib/um/x64/mscoree.lib to the PublicAdditionalLibraries).

PrivateIncludePaths.Add("C:/Program Files (x86)/Windows Kits/NETFXSDK/4.7.2/Include/um"); PublicAdditionalLibraries.Add("C:/Program Files (x86)/Windows Kits/NETFXSDK/4.7.2/lib/um/x64/mscoree.lib");

(to USharp.Build.cs and USharpEditor.Build.cs)

from usharp.

pixeltris avatar pixeltris commented on August 27, 2024 1

Hopefully fixed in 8a86cc5

from usharp.

demonixis avatar demonixis commented on August 27, 2024 1

@pixeltris awesome it works now!

from usharp.

PrestonII avatar PrestonII commented on August 27, 2024

I've got a similar issues unfortunately but with 4.24. Couldn't try @Algorithman 's fix because I don't even see the USharp.Build.cs or USharpEditor.Build.cs files anywhere. Perhaps I'm missing something critical here?

I'll attach the log file in any case. Any ideas?

Automation.ParseCommandLine: Parsing command line: BuildPlugin -Plugin=C:\Users\psmith\AppData\Roaming\USharp\BuildTemp2\USharp.uplugin_temp -Package=C:\Users\psmith\AppData\Roaming\USharp\Build -Rocket -Platform=Win64 Automation.Process: Setting up command environment. InternalUtils.SafeFileExists: SafeFileExists C:\Program Files\Epic Games\UE_4.24\Engine\Binaries\DotNET\AutomationTool.exe=True InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_LOCAL_ROOT= InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_LOCAL_ROOT= InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_EngineSavedFolder= CommandUtils.SetEnvVar: SetEnvVar uebp_EngineSavedFolder=C:/Program Files/Epic Games/UE_4.24/Engine/Programs/AutomationTool/Saved InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_EngineSavedFolder=C:/Program Files/Epic Games/UE_4.24/Engine/Programs/AutomationTool/Saved InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_CSVFile= InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_LogFolder= InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_LOCAL_ROOT=C:/Program Files/Epic Games/UE_4.24 CommandUtils.SetEnvVar: SetEnvVar uebp_LogFolder=C:/Users/psmith/AppData/Roaming/Unreal Engine/AutomationTool/Logs/C+Program+Files+Epic+Games+UE_4.24 InternalUtils.SafeDeleteFile: SafeDeleteFile C:\Users\psmith\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.24\Log.txt InternalUtils.SafeDeleteFile: SafeDeleteFile C:\Users\psmith\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.24\UBT-UE4Editor-Win64-Development.txt InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_FinalLogFolder= CommandUtils.SetEnvVar: SetEnvVar uebp_FinalLogFolder=C:/Users/psmith/AppData/Roaming/Unreal Engine/AutomationTool/Logs/C+Program+Files+Epic+Games+UE_4.24 InternalUtils.SafeFileExists: SafeFileExists C:\WINDOWS\system32\robocopy.exe=True InternalUtils.SafeFileExists: SafeFileExists C:\WINDOWS\system32\mount.exe=False InternalUtils.SafeFileExists: SafeFileExists C:\WINDOWS\Sysnative\mount.exe=False InternalUtils.SafeFileExists: SafeFileExists C:\WINDOWS\system32\cmd.exe=True CommandUtils.SetEnvVar: SetEnvVar MallocNanoZone=0 InternalUtils.GetEnvironmentVariable: GetEnvironmentVariable uebp_UATChildInstance=0 WindowsPlatform.FindVSInstallDirs: Found Visual Studio installation: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional (Product=Microsoft.VisualStudio.Product.Professional, Version=16.4.29613.14, Sort=0) WindowsPlatform.FindVSInstallDirs: Found Visual Studio installation: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise (Product=Microsoft.VisualStudio.Product.Enterprise, Version=16.4.29609.76, Sort=1) WindowsPlatformFactory.RegisterBuildPlatforms: UnrealBuildTool.WindowsPlatformSDK using manually installed SDK CommandUtils.ThreadedCopyFiles: Copying 185 file(s) using max 64 thread(s) BuildPlugin.ExecuteBuild: Reading plugin from C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Plugins\USharp\USharp.uplugin_temp... BuildPlugin.CompilePlugin: Building plugin for host platforms: Win64 InternalUtils.SafeFileExists: SafeFileExists C:\Program Files\Epic Games\UE_4.24\Engine\Binaries\DotNET\UnrealBuildTool.exe=True CommandUtils.Run: Running: C:\Program Files\Epic Games\UE_4.24\Engine\Binaries\DotNET\UnrealBuildTool.exe UE4Editor Win64 Development -plugin=C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Plugins\USharp\USharp.uplugin_temp -iwyu -noubtmakefiles -manifest=C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Saved\Manifest-UE4Editor-Win64-Development.xml -nohotreload -log="C:\Users\psmith\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.24\UBT-UE4Editor-Win64-Development.txt" ProcessResult.StdOut: Parsing headers for UE4Editor ProcessResult.StdOut: Running UnrealHeaderTool UE4Editor "C:\Program Files\Epic Games\UE_4.24\Engine\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed ProcessResult.StdOut: Reflection code generated for UE4Editor in 13.2296363 seconds ProcessResult.StdOut: Writing manifest to C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Saved\Manifest-UE4Editor-Win64-Development.xml ProcessResult.StdOut: Building UE4Editor... ProcessResult.StdOut: Using Visual Studio 2019 14.24.28314 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.24.28314) and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10). ProcessResult.StdOut: Building 13 actions with 8 processes... ProcessResult.StdOut: [1/13] Default.rc2 ProcessResult.StdOut: [2/13] Default.rc2 ProcessResult.StdOut: [3/13] PCH.USharpEditor.cpp ProcessResult.StdOut: [4/13] PCH.USharp.cpp ProcessResult.StdOut: [5/13] Module.USharpEditor.cpp ProcessResult.StdOut: C:/Users/psmith/AppData/Roaming/USharp/Build/HostProject/Plugins/USharp/Source/USharpEditor/Private/SharpTemplateProjectDefs.cpp(14): error C2039: 'RegisterTemplateCategory': is not a member of 'FGameProjectGenerationModule' ProcessResult.StdOut: C:\Program Files\Epic Games\UE_4.24\Engine\Source\Editor\GameProjectGeneration\Public\GameProjectGenerationModule.h(18): note: see declaration of 'FGameProjectGenerationModule' ProcessResult.StdOut: [6/13] Module.USharpEditor.gen.cpp ProcessResult.StdOut: [7/13] Module.USharp.cpp ProcessResult.StdOut: C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Plugins\USharp\Source\USharp\Private\ExportedFunctions\Export_FObjectInitializer.h(38): error C2039: 'IslegalOverride': is not a member of 'FObjectInitializer' ProcessResult.StdOut: C:\Program Files\Epic Games\UE_4.24\Engine\Source\Runtime\CoreUObject\Public\UObject/UObjectThreadContext.h(14): note: see declaration of 'FObjectInitializer' ProcessResult.StdOut: C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Plugins\USharp\Source\USharp\Private\ExportedFunctions\Export_UField.h(84): error C2039: 'GetINTMetaData': is not a member of 'UField' ProcessResult.StdOut: C:\Program Files\Epic Games\UE_4.24\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(362): note: see declaration of 'UField' ProcessResult.StdOut: C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Plugins\USharp\Source\USharp\Private\ExportedFunctions\Export_UField.h(89): error C2039: 'GetINTMetaData': is not a member of 'UField' ProcessResult.StdOut: C:\Program Files\Epic Games\UE_4.24\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(362): note: see declaration of 'UField' ProcessResult.StdOut: C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Plugins\USharp\Source\USharp\Private\ExportedFunctions\Export_UField.h(94): error C2039: 'GetFLOATMetaData': is not a member of 'UField' ProcessResult.StdOut: C:\Program Files\Epic Games\UE_4.24\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(362): note: see declaration of 'UField' ProcessResult.StdOut: C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Plugins\USharp\Source\USharp\Private\ExportedFunctions\Export_UField.h(99): error C2039: 'GetFLOATMetaData': is not a member of 'UField' ProcessResult.StdOut: C:\Program Files\Epic Games\UE_4.24\Engine\Source\Runtime\CoreUObject\Public\Templates/Casts.h(362): note: see declaration of 'UField' ProcessResult.StdOut: C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Plugins\USharp\Source\USharp\Private\ExportedFunctions\Export_AActor.h(46): warning C4996: 'AActor::GetComponentsByClass': Use one of the GetComponents implementations as appropriate Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. ProcessResult.StdOut: C:\Program Files\Epic Games\UE_4.24\Engine\Source\Runtime\Engine\Classes\GameFramework/Actor.h(2881): note: see declaration of 'AActor::GetComponentsByClass' ProcessResult.StdOut: C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Plugins\USharp\Source\USharp\Private\ExportedFunctions\Export_FPlatformProperties.h(58): warning C4996: 'EBuildTargets::Type': EBuildTargets::Type is deprecated. Use EBuildTargetType instead. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. ProcessResult.StdOut: C:\Program Files\Epic Games\UE_4.24\Engine\Source\Runtime\Core\Public\GenericPlatform/GenericPlatformMisc.h(163): note: see declaration of 'EBuildTargets::Type' ProcessResult.StdOut: C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Plugins\USharp\Source\USharp\Private\ExportedFunctions\Export_FGlobals.h(188): warning C4996: 'GIsRequestingExit': Please use IsEngineExitRequested()/RequestEngineExit(const FString&) Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. ProcessResult.StdOut: C:\Program Files\Epic Games\UE_4.24\Engine\Source\Runtime\Core\Public\CoreGlobals.h(257): note: see declaration of 'GIsRequestingExit' ProcessResult.StdOut: C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Plugins\USharp\Source\USharp\Private\ExportedFunctions\Export_FGlobals.h(193): warning C4996: 'GIsRequestingExit': Please use IsEngineExitRequested()/RequestEngineExit(const FString&) Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. ProcessResult.StdOut: C:\Program Files\Epic Games\UE_4.24\Engine\Source\Runtime\Core\Public\CoreGlobals.h(257): note: see declaration of 'GIsRequestingExit' ProcessResult.StdOut: C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Plugins\USharp\Source\USharp\Private\ExportedFunctions\Export_ICppStructOps.h(71): error C2039: 'GetTypeHash': is not a member of 'UScriptStruct::ICppStructOps' ProcessResult.StdOut: C:\Program Files\Epic Games\UE_4.24\Engine\Source\Runtime\CoreUObject\Public\UObject/Class.h(888): note: see declaration of 'UScriptStruct::ICppStructOps' ProcessResult.StdOut: C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Plugins\USharp\Source\USharp\Private\ExportedFunctions\Export_FApp.h(8): error C2440: 'return': cannot convert from 'EBuildConfiguration' to 'int32' ProcessResult.StdOut: C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Plugins\USharp\Source\USharp\Private\ExportedFunctions\Export_FApp.h(8): note: This conversion requires an explicit cast (static_cast, C-style cast or function-style cast) ProcessResult.StdOut: C:\Users\psmith\AppData\Roaming\USharp\Build\HostProject\Plugins\USharp\Source\USharp\Private\ExportedFunctions\Export_FSubsystemCollection.h(3): error C2660: 'FSubsystemCollectionBase::Initialize': function does not take 0 arguments ProcessResult.StdOut: C:\Program Files\Epic Games\UE_4.24\Engine\Source\Runtime\Engine\Public\Subsystems/SubsystemCollection.h(16): note: see declaration of 'FSubsystemCollectionBase::Initialize' ProcessResult.StdOut: [8/13] Module.USharp.gen.cpp CommandUtils.Run: Took 65.4928832s to run UnrealBuildTool.exe, ExitCode=5 Program.Main: UnrealBuildTool failed. See log for more details. (C:\Users\psmith\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.24\UBT-UE4Editor-Win64-Development.txt) Program.Main: AutomationException: UnrealBuildTool failed. See log for more details. (C:\Users\psmith\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.24\UBT-UE4Editor-Win64-Development.txt) Program.Main: at AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\UBTUtils.cs:line 52 Program.Main: at BuildPlugin.CompilePluginWithUBT(FileReference HostProjectFile, FileReference HostProjectPluginFile, PluginDescriptor Plugin, String TargetName, TargetType TargetType, UnrealTargetPlatform Platform, UnrealTargetConfiguration Configuration, List1 ManifestFileNames, String InAdditionalArgs) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildPluginCommand.Automation.cs:line 211
Program.Main: at BuildPlugin.CompilePlugin(FileReference HostProjectFile, FileReference HostProjectPluginFile, PluginDescriptor Plugin, List1 HostPlatforms, List1 TargetPlatforms, String AdditionalArgs) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildPluginCommand.Automation.cs:line 150
Program.Main: at BuildPlugin.ExecuteBuild() in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Scripts\BuildPluginCommand.Automation.cs:line 107
Program.Main: at AutomationTool.BuildCommand.Execute() in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 263
Program.Main: at AutomationTool.Automation.Execute(List1 CommandsToExecute, Dictionary2 Commands) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 538
Program.Main: at AutomationTool.Automation.Process(String[] Arguments, StartupTraceListener StartupListener) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 508
Program.Main: at AutomationTool.Program.MainProc(String[] Arguments, StartupTraceListener StartupListener) in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 176
Program.Main: at AutomationTool.Program.<>c__DisplayClass1_0.

b__2() in D:\Build++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 88
Program.Main: at AutomationTool.InternalUtils.RunSingleInstance(Func1 Main) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 731 Program.Main: at AutomationTool.Program.Main(String[] Arguments) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\AutomationTool\Program.cs:line 88 Program.Main: AutomationTool exiting with ExitCode=5 (5)

Log.txt

from usharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.