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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Precompiled header build errors in Visual C++ 2015 CE update 3

It seems something goes wrong during precompiled headers generation. I get errors like:

1>------ Build started: Project: ShaderCacheTool, Configuration: Development_Program x64 ------
1> Creating makefile for ShaderCacheTool (no existing makefile)
1> Performing full C++ include scan (no include cache file)
1> Performing 17 actions (4 in parallel)
1> PCH.Core.h.cpp
1> PCH.CorePrivatePCH.h.cpp
1> Module.RenderCore.cpp
1> Module.RHI.cpp
1> Module.Projects.cpp
1> Module.Json.cpp
1>C:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\RenderCore\Module.RenderCore.cpp : error C4605: '/DORIGINAL_FILE_NAME="ShaderCacheTool.exe"' specified on current command line, but was not specified when precompiled header was built
1>C:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\RenderCore\Module.RenderCore.cpp : error C4605: '/DRENDERCORE_API=' specified on current command line, but was not specified when precompiled header was built
1>C:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\RenderCore\Module.RenderCore.cpp : error C4605: '/DRHI_API=' specified on current command line, but was not specified when precompiled header was built
1>C:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\RenderCore\Module.RenderCore.cpp : error C4599: '/IC:\libs\UnrealEngine\Engine\Source\Runtime\RenderCore\Public': command line argument number 2 does not match precompiled header
1>C:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\RHI\Module.RHI.cpp : error C4605: '/DORIGINAL_FILE_NAME="ShaderCacheTool.exe"' specified on current command line, but was not specified when precompiled header was builtC:\libs\UnrealEngine\Engine\Intermediate\Build\Win64\ShaderCacheTool\Development\Projects\Module.Projects.cpp: error C4605: '/DORIGINAL_FILE_NAME="ShaderCacheTool.exe"' specified on current command line, but was not specified when precompiled header was built
1>
...

Sources obtained from git.
Followed the instructions in Readme.md.
Deleted the intermediates (Engine\Intermediate\Build), cleaned the solution... the problems remain.
The same thing happens on release, promoted and master branches
(commits 4e83cfda9af6d4012c4052415acb1213c23778bc , 14cc08332d17834979389c3c9a41c9adb6215814 , and 879939a60a234cc7bb795a229aca766e5917deeb respectively).

Visual version:

Microsoft Visual Studio Community 2015 Version 14.0.25421.03 Update 3 Microsoft .NET Framework Version 4.6.01038

Installed Version: Community

Visual C# 2015 00322-20000-00000-AA357 Microsoft Visual C# 2015

Visual C++ 2015 00322-20000-00000-AA357 Microsoft Visual C++ 2015

Any workarounds?

Product Version: UE 4.12
Tags:
more ▼

asked Jun 28 '16 at 02:27 PM in Installation & Setup

avatar image

Neurochrom
46 1 1 56

avatar image Snowl0l Jun 28 '16 at 06:44 PM

Anyone know how to revert back to update 2? Can't do anything while this issue exists...

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

4 answers: sort voted first

I found a workaround - basically remove 4599 and 4609 warning to error pragmas in Engine/Source/Runtime/Core/Public/Windows/WindowsPlatformCompilerSetup.h.

Here is a commit you can cherry-pick: https://github.com/Neurochrom/UnrealEngine/commit/89ab7a08af165cad02073261b4b8e7af61a63d2c

more ▼

answered Jun 29 '16 at 04:31 PM

avatar image

Neurochrom
46 1 1 56

avatar image m10914 Jul 04 '16 at 09:30 PM

Dude, 4605 not 4609.

avatar image GameXFuture Feb 23 '17 at 08:14 PM

Nah 404 error

avatar image Mike Kelly Jul 08 '16 at 03:39 AM

4.12.5 fixes this for Windows, but not for XboxOne. The same changes are needed in Engine\Source\Runtime\Core\Public\XboxOne\XboxOneCompilerSetup.h.

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

Hi there,

UE4 does not yet support update 3 properly, so that is most likely the reason for the build errors.

You can find more info, and potential workarounds here:

https://answers.unrealengine.com/questions/435600/build-failed-with-vs-2015-update-3.html

Thanks,

DC

more ▼

answered Jun 28 '16 at 06:36 PM

avatar image

DotCam
3.1k 74 34 148

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

Any solution ? I try this solution, but didn't work for me :/...

more ▼

answered Jun 29 '16 at 02:32 PM

avatar image

Dorian B.
46 2 5 10

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

Hey Everyone,

Following the directions in the post by Infected_Post here allowed me to uninstall/reinstall VS2015 Community without Update 3. It does not appear to include a means of obtaining Update 1 or 2, but you should be able to continue using your code projects.

Cheers

Doug Wilson

more ▼

answered Jun 29 '16 at 03:03 PM

avatar image Dorian B. Jun 29 '16 at 03:13 PM

VS2015 is very long to install... Epic games don't give more news about ?

avatar image Doug E ♦♦ STAFF Jun 29 '16 at 03:27 PM

We do plan to address this compatibility issue as quickly as possible, however for now the best options are to avoid updating to Update 3 if possible or, as mentioned, using the instructions from Infected_Post to remove Update 3 until a fix for the problem can be put in.

avatar image Dorian B. Jun 29 '16 at 04:05 PM

Ok, how to stay informed ? I can wait, but if the issues with VS2015 update 3 still here in the end of the week, i prefere now to reinstall VS2015. Thank you for your quick responses.

avatar image Doug E ♦♦ STAFF Jun 29 '16 at 04:25 PM

The best way to keep up to date on changes to the engine are to review patch/release notes for newer versions as they become available. There is no time frame yet of when a fix for the Update 3 issue will be implemented and I would suggest going ahead and reinstalling for the time being.

avatar image Dorian B. Jun 29 '16 at 04:28 PM

Then i'll reinstall VS2015, thanks for the help.

(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