Download

Error trying to Debug the UE4 Editor


1>------ Build started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------
1>Creating makefile for ShaderCompileWorker (BuildConfiguration.xml is newer)
1>Performing 24 actions (9 in parallel)
1>Module.DesktopPlatform.cpp
1>Module.Core.7_of_8.cpp
1>Module.Core.8_of_8.cpp
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h(972): error C4768: __declspec attributes before linkage specification are ignored
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\shlobj.h(972): error C4768: __declspec attributes before linkage specification are ignored
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\shlobj.h(972): error C4768: __declspec attributes before linkage specification are ignored
1>ERROR : UBT error : Failed to produce item: C:\Users\Hawka\Downloads\UnrealEngine-4.14\UnrealEngine-4.14\Engine\Binaries\Win64\ShaderCompileWorker-Core.dll
1>Total build time: 4.86 seconds
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat ShaderCompileWorker Win64 Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
1>Done building project "ShaderCompileWorker.vcxproj" -- FAILED.
2>------ Build started: Project: UE4, Configuration: Development_Editor x64 ------
2>Creating makefile for UE4Editor (no existing makefile)
2>Performing full C++ include scan (no include cache file)
2>Building UnrealHeaderTool...
2>Creating makefile for UnrealHeaderTool (BuildConfiguration.xml is newer)
2>Performing 7 actions (9 in parallel)
2>Module.Core.7_of_8.cpp
2>Module.Core.8_of_8.cpp
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\shlobj.h(972): error C4768: __declspec attributes before linkage specification are ignored
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\shlobj.h(972): error C4768: __declspec attributes before linkage specification are ignored
2>ERROR : UBT error : Failed to produce item: C:\Users\Hawka\Downloads\UnrealEngine-4.14\UnrealEngine-4.14\Engine\Binaries\Win64\UnrealHeaderTool-Core.dll
2>Total build time: 4.14 seconds
2>EXEC : error : UnrealHeaderTool failed for target 'UE4Editor' (platform: Win64, module info: C:\Users\Hawka\Downloads\UnrealEngine-4.14\UnrealEngine-4.14\Engine\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor.uhtmanifest, exit code: OtherCompilationError (5)).
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
2>Done building project "UE4.vcxproj" -- FAILED.
========== Build: 0 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========

Trying to build the UE4 Editor. Can anyone figure this one out?

have you changed something in ShaderCompileWorker

I haven’t changed anything. This is a fresh install of Windows Studio and a pull from GitHub.

have you installed the c# unreal extension for vs

I believe I have everything installed for it. I can’t see any other C# packages in the installer. I am using VS 2017 on UE4 4.14, that might be the issue?

I am uninstalling everything and I am going to reinstall, see if that helps.

So I uninstalled and reinstalled everything. Now I get a slightly different error.


========== Build: 2 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

Edit:
Decided to uninstall everything VS and the code and update from 4.14 to 4.18. Everything is compiling now, no errors. It’s at about 80% now but it should hit 100%. I’ve never seen it go this far. Guess I just had to update the code base.

Edit:
Well, didn’t quiet make it to 100%. Latest problem. The project built 100%, the error log below is when I try to run Debug.


1>------ Build started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------
1>Target is up to date
1>Copying C:\Users\Hawka\Downloads\UnrealEngine-4.18\Engine\Binaries\Win64\ShaderCompileWorker.exe to C:\Users\Hawka\Downloads\UnrealEngine-4.18\Engine\Binaries\Win64\XGEControlWorker.exe
1>        1 file(s) copied.
1>Deploying ShaderCompileWorker Win64 Development...
1>Total build time: 0.30 seconds (NoActionsToExecute executor: 0.00 seconds)
2>------ Build started: Project: UE4, Configuration: Development_Editor x64 ------
2>Building UnrealHeaderTool...
2>EXEC : error : System.NullReferenceException: Object reference not set to an instance of an object.
2>          at UnrealBuildTool.ExternalExecution.ExecuteHeaderToolIfNecessary(BuildConfiguration BuildConfiguration, UEBuildTarget Target, CppCompileEnvironment GlobalCompileEnvironment, List`1 UObjectModules, FileReference ModuleInfoFileName, ECompilationResult& UHTResult, EHotReload HotReload) in C:\Users\Hawka\Downloads\UnrealEngine-4.18\Engine\Source\Programs\UnrealBuildTool\System\ExternalExecution.cs:line 1087
2>          at UnrealBuildTool.UnrealBuildTool.RunUBT(BuildConfiguration BuildConfiguration, String] Arguments, FileReference ProjectFile) in C:\Users\Hawka\Downloads\UnrealEngine-4.18\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.cs:line 1605
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
2>Done building project "UE4.vcxproj" -- FAILED.
========== Build: 1 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

Edit:
I don’t know what I did but it all appears to be working now.