Failed to build UE4 from source

I got error after VC++ finished the build process. How to solve the errors? I got the released zip on GitHub.

Severity Code Description Project File Line Suppression State
Error C2065 ‘bAttributeLessDraw’: undeclared identifier UE4 D:\UnrealEngine-release\Engine\Source\Runtime\OpenGLDrv\Private\OpenGLCommands.cpp 2792
Error Failed to produce item: D:\UnrealEngine-release\Engine\Binaries\Win64\UE4Editor-IntroTutorials.dll UE4 D:\UnrealEngine-release\Engine\Intermediate\ProjectFiles\ERROR 1
Error MSB3073 The command “…\Build\BatchFiles\Build.bat UE4Editor Win64 Development -waitmutex -2015” exited with code -1. UE4 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 37
Error C1020 unexpected #endif UE4 D:\UnrealEngine-release\Engine\Source\Runtime\OpenGLDrv\Private\OpenGLCommands.cpp 2798

Have you downloaded the prerequisites with using Setup.bat

Yes, I follow the instructions on GitHub. And I have the Game Launcher version installed. I compile from source because I want to get x86 Android support.

I tried to compile on another PC but got exact errors. :frowning:

I found this:

The release is 4.11, that’s why when I tried to build 4.11 I got the same errors as release.

I download the 4.10 zip and build successfully. The splash screen shows version 4.10.2.

UE4 doessn’t compile ‘as it comes’ and does require about 2 days worth of tinkering if you don’t know what you are doing to get compiling.

Hi Chaoss,

I have not experienced any problems when building the Engine from source code using any of the released versions. What version of the Engine did you download, and what were the errors that you received?

Just simply replace \u201D with "(use regex), and save.

You might need to switch to UTF8 BOM and save in order to find this Unicode Character.

This is because \u201D is a RIGHT DOUBLE QUOTATION MARK, which is widely used in Asia countries. it’s a common typo bug.

I’ve pulled a request to fix this. https://github.com/EpicGames/UnrealEngine/pull/2338