x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Engine compile error 4.21 (GitHub source-release)

Hello everyone. I downloaded engine from source twice to be sure but I get same error while compiling. I didn't get these errors before with 4.20 or 4.19.

Source is not modified. Just a fork of release branch. I don't know if I need to do anything than using Setup.bat and GenerateProjectFiles.bat for 4.21-release version.

It's not urgent for me right now but I want to test my DedicatedServer with Steam to see what I accomplished so far. I tried using launcher version 4.21 as -server but I couldn't see my server on Steam Server list. (Ports are open)

alt text

EDIT: Added output of VisualStudio

 1>------ Build started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------
 1>Creating makefile for ShaderCompileWorker (BuildConfiguration.xml is newer)
 1>Performing 24 actions (4 in parallel)
 1>Module.Core.7_of_8.cpp
 1>Module.Core.8_of_8.cpp
 1>Module.DesktopPlatform.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:\UnrealEngine\Engine\Binaries\Win64\ShaderCompileWorker-Core.dll
 1>Total build time: 13,42 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 (4 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:\UnrealEngine\Engine\Binaries\Win64\UnrealHeaderTool-Core.dll
 2>Total build time: 5,95 seconds
 2>EXEC : error : UnrealHeaderTool failed for target 'UE4Editor' (platform: Win64, module info: C:\UnrealEngine\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 ==========


UPDATE: I think something wrong with Windows 8.1 SDK

Visual Studio Community 2017 v15.8.6

Product Version: Not Selected
Tags:
error.png (29.4 kB)
more ▼

asked Jan 25 '19 at 08:34 AM in Bug Reports

avatar image

M.FatihSaglam
128 4 7 9

avatar image Chyros Jan 25 '19 at 08:44 AM

As epic suggested, don't rely on the messages from Errors pane. Instead, read the actual errors on the Output pane.

I experienced the waitMutex error before. I was able to fix it by restarting all the Visual Studio instances.

avatar image M.FatihSaglam Jan 27 '19 at 10:59 AM

I added the output.

avatar image HarryHighDef Jan 25 '19 at 09:40 AM

Try running visual studio as an admin and check that your have permission over the folder the engine is in.

avatar image M.FatihSaglam Jan 25 '19 at 11:15 AM

I am using VS as an admin as default already. I was using 4.20 and 4.19 in same folder. "C:\UnrealEngine"

I never had these errors.

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Okay this is interesting but,

I switched to Visual Studio Enterprise 2017 and selected every C++ related extensions while installation.

I did same steps for installing Community 2017 before but idk why problem occured with this version.

A clean installation may solve problem for Community 2017 as well but I didn't reinstall it to test.

more ▼

answered Jan 27 '19 at 03:17 PM

avatar image

M.FatihSaglam
128 4 7 9

(comments are locked)
10|2000 characters needed characters left

I didn't have this issue until upgrading to UE4.21. In my case, upgrading visual studio from 15.8.6 to 15.9.6 solved the issue.

more ▼

answered Feb 02 '19 at 12:30 PM

avatar image

Jorhoto
22 1 4

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question