# Failed to build UE4 from source

**URL:** <https://forums.unrealengine.com/t/failed-to-build-ue4-from-source/343155>\
**Category:** Platform & Builds\
**Tags:** source, build, unreal-engine, CPP, question\
**Created:** [January 5, 2016, 8:21am UTC](https://forums.unrealengine.com/t/failed-to-build-ue4-from-source/343155 "2016-01-05T08:21:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![frederick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@frederick](https://forums.unrealengine.com/u/frederick)\
**Post date:** [January 5, 2016, 8:21am UTC](https://forums.unrealengine.com/t/failed-to-build-ue4-from-source/343155/1 "2016-01-05T08:21:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Moss](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/moss/32/704032_2.png) [@Moss](https://forums.unrealengine.com/u/Moss)\
**Post date:** [January 5, 2016, 8:35am UTC](https://forums.unrealengine.com/t/failed-to-build-ue4-from-source/343155/2 "2016-01-05T08:35:51Z")

</div>

Have you downloaded the prerequisites with using _Setup.bat_

---

<div class="post-metadata">

**Author:** ![frederick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@frederick](https://forums.unrealengine.com/u/frederick)\
**Post date:** [January 5, 2016, 8:58am UTC](https://forums.unrealengine.com/t/failed-to-build-ue4-from-source/343155/3 "2016-01-05T08:58:54Z")

</div>

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. ☹

---

<div class="post-metadata">

**Author:** ![frederick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@frederick](https://forums.unrealengine.com/u/frederick)\
**Post date:** [January 11, 2016, 3:58pm UTC](https://forums.unrealengine.com/t/failed-to-build-ue4-from-source/343155/4 "2016-01-11T15:58:43Z")

</div>

I found this:

> **[Trying to build 4.10 w/ VS, keep getting 4.11](https://forums.unrealengine.com/questions/352517/trying-to-build-410-w-vs-keep-getting-411.html)**
>
> Hey guys, thanks in advance for your help. I’m a bit new to the engine. I’m trying to build version 4.10 specifically to try out a plugin, but somehow I keep getting 4.11 instead of 4.10 Here is a list of my steps: Open console. git clone...

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.

---

<div class="post-metadata">

**Author:** ![Chaoss](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chaoss](https://forums.unrealengine.com/u/Chaoss)\
**Post date:** [April 12, 2016, 1:59am UTC](https://forums.unrealengine.com/t/failed-to-build-ue4-from-source/343155/5 "2016-04-12T01:59:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [April 12, 2016, 3:47pm UTC](https://forums.unrealengine.com/t/failed-to-build-ue4-from-source/343155/6 "2016-04-12T15:47:05Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_37a38d3f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_37a38d3f](https://forums.unrealengine.com/u/anonymous_user_37a38d3f)\
**Post date:** [April 28, 2016, 5:07am UTC](https://forums.unrealengine.com/t/failed-to-build-ue4-from-source/343155/7 "2016-04-28T05:07:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_37a38d3f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_37a38d3f](https://forums.unrealengine.com/u/anonymous_user_37a38d3f)\
**Post date:** [April 28, 2016, 5:27am UTC](https://forums.unrealengine.com/t/failed-to-build-ue4-from-source/343155/8 "2016-04-28T05:27:03Z")

</div>

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