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"

VS 2017 Community 1.5.3 - UE 4.15.1 Source Build Errors

Hello -

This week I uninstall and re-installed VS 2017 which put me on 1.5.3. Since then I have not been able to build UE source no matter what I try. All the modules fail to build with the following:

Severity Code Description Project File Line Suppression State Error C4768 __declspec attributes before linkage specification are ignored UnrealFrontend C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h 972
Error C4768 __declspec attributes before linkage specification are ignored UnrealFrontend C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h 972
Error Failed to produce item: G:\UnrealEngine\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool-Core.lib UnrealFrontend G:\UnrealEngine\Engine\Intermediate\ProjectFiles\ERROR 1
Error UnrealHeaderTool failed for target 'UnrealFrontend' (platform: Win64, module info: G:\UnrealEngine\Engine\Intermediate\Build\Win64\UnrealFrontend\Development\UnrealFrontend.uhtmanifest, exit code: OtherCompilationError (5)). UnrealFrontend G:\UnrealEngine\Engine\Intermediate\ProjectFiles\EXEC 1
Error MSB3075 The command "....\Build\BatchFiles\Build.bat UnrealFrontend Win64 Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command. UnrealFrontend C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44
Error C4768 __declspec attributes before linkage specification are ignored UnrealHeaderTool C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h 972
Error C4768 __declspec attributes before linkage specification are ignored UnrealHeaderTool C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h 972
Error Failed to produce item: G:\UnrealEngine\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool-Core.lib UnrealHeaderTool G:\UnrealEngine\Engine\Intermediate\ProjectFiles\ERROR 1
Error MSB3075 The command "....\Build\BatchFiles\Build.bat UnrealHeaderTool Win64 Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command. UnrealHeaderTool C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44
Error C4768 __declspec attributes before linkage specification are ignored UnrealCEFSubProcess C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h 972
Error C4768 __declspec attributes before linkage specification are ignored UnrealCEFSubProcess C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h 972
Error Failed to produce item: G:\UnrealEngine\Engine\Binaries\Win64\UnrealCEFSubProcess.pdb UnrealCEFSubProcess G:\UnrealEngine\Engine\Intermediate\ProjectFiles\ERROR 1
Error MSB3075 The command "....\Build\BatchFiles\Build.bat UnrealCEFSubProcess Win64 Development -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command. UnrealCEFSubProcess C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44

Full Error: https://pastebin.com/jFt3ciCb

Trying to manually run UnrealBuildTool gives "OtherCompilationError (5):

G:\UnrealEngine\Engine\Binaries\DotNET>UnrealBuildTool.exe UnrealFrontend Win64 Debug -waitmutex "g:\UnrealEngine\Engine\Intermediate\ProjectFiles\UnrealFrontend.vcxproj" Creating makefile for UnrealFrontend (no existing makefile) Performing full C++ include scan (no include cache file) Building UnrealHeaderTool... Performing 8 actions (4 in parallel) Module.Core.9_of_9.cpp Module.Core.8_of_9.cpp C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h(972): error C4768: __declspec attributes before linkage specification are ignored C:\Program Files (x86)\Windows Kits\8.1\include\um\ShlObj.h(972): error C4768: __declspec attributes before linkage specification are ignored ERROR: UBT ERROR: Failed to produce item: G:\UnrealEngine\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool-Core.lib Total build time: 2.86 seconds (Local executor: 0.00 seconds) Error: UnrealHeaderTool failed for target 'UnrealFrontend' (platform: Win64, module info: G:\UnrealEngine\Engine\Intermediate\Build\Win64\UnrealFrontend\Debug\UnrealFrontend.uhtmanifest, exit code: OtherCompilationError (5)).

Win10 4.5.1 Source From Git VS 2017 Community 1.5.3 I've tried the "1.5.3 patch" as well.

Product Version: UE 4.15
Tags:
more ▼

asked Aug 20 '17 at 09:39 PM in Installation & Setup

avatar image

ph0ng
1 1 2 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

2017 isn't supported with 4.15. I believe first support of it was 4.16.

more ▼

answered Aug 21 '17 at 04:12 AM

avatar image

MJBrune
119 2 8 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
more ▼

answered Aug 21 '17 at 10:33 AM

avatar image

ph0ng
1 1 2 2

avatar image MJBrune Aug 21 '17 at 07:25 PM

Ahh it's not supported out of the box with 4.15. You need to compile it with 2015, then switch it to 2017. This is an issue for a bit https://forums.unrealengine.com/showthread.php?147295-VS2017-Support-is-incomplete-and-still-relies-on-previous-versions

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Was able to duplicate this issue on another machine, builds fine in VS 1.5.0 but not 1.5.3.

more ▼

answered Aug 21 '17 at 07:21 PM

avatar image

ph0ng
1 1 2 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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