# \[Bug\]Generating project files breaks build

**URL:** <https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979>\
**Category:** Platform & Builds\
**Tags:** build, unreal-engine, crash, bug-report, CPP, question\
**Created:** [December 9, 2015, 9:54pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979 "2015-12-09T21:54:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ihavenick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ihavenick/32/465572_2.png) [@ihavenick](https://forums.unrealengine.com/u/ihavenick)\
**Post date:** [December 9, 2015, 9:54pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/1 "2015-12-09T21:54:47Z")

</div>

Hi ,  
Generating project files in mine location breaks compilition.

3 auto generated files has this bug.

EnginePrivate.h

CorePrivate.h

And CorePrivatePCH.h.

bug is when ue4 generating this files

```
#ifndef __AUTO_ENGINEPRIVATE_H__
#define __AUTO_ENGINEPRIVATE_H__ this to line become this

#ifndef __AUTO_ENGİNEPRİVATE_H__
#define __AUTO_ENGİNEPRİVATE_H__

```

“I” with point makes error at building engine. (İ)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 10, 2015, 3:09pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/2 "2015-12-10T15:09:24Z")

</div>

Hey

When you use an `#ifndef` preprocessor directive it has to be closed with `#endif`. Adding this after line 2 should allow the project to compile successfully.

Cheers

---

<div class="post-metadata">

**Author:** ![ihavenick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ihavenick/32/465572_2.png) [@ihavenick](https://forums.unrealengine.com/u/ihavenick)\
**Post date:** [December 10, 2015, 5:46pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/3 "2015-12-10T17:46:22Z")

</div>

You dont understand.  
Look to chars please.  
I am talking about auto generated file.  
Unreal engine generating .h files with İ

big “i”

There is no big "i " in english soo compiling crashes

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 10, 2015, 5:58pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/4 "2015-12-10T17:58:08Z")

</div>

Can you elaborate on what you mean? Which files are you seeing the “i” with the wrong capitalization? Is this when you are creating a new project or adding code to a project? Is this occurring in one of the engine source files? If possible, is there a way for me to reproduce what you’re seeing on my end to help me investigate the issue? CorePrivatePCH doesn’t appear to mention ENGINEPRIVATE and the only mention of ENGINEPRIVATE in EnginePrivate.h is inside a comment block. Is this something that you’re adding to these files? Additionally, what is the compile error that you receive? Knowing what the error message is may help identify the problem and how to solve it. Any additional information you can provide to explain what is happening will be helpful.

---

<div class="post-metadata">

**Author:** ![ihavenick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ihavenick/32/465572_2.png) [@ihavenick](https://forums.unrealengine.com/u/ihavenick)\
**Post date:** [December 10, 2015, 7:04pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/5 "2015-12-10T19:04:34Z")

</div>

EnginePrivate.h

CorePrivate.h

And CorePrivatePCH.h.

i getting this bug everytime trying to compile ue4 code and project code

> **[I cant compile 4.10 on Visual studio 2015](https://forums.unrealengine.com/showthread.php?92856-I-cant-compile-4-10-on-Visual-studio-2015)**
>
> Severity	Code	Description	Project	File	Line Error	MSB3073	The command "..\\..\\Build\\BatchFiles\\Build.bat UE4Editor Win64 Development -waitmutex" exited with code -1.	UE4	C:\\Program Files...

i explained better at this treat

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 10, 2015, 7:48pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/6 "2015-12-10T19:48:08Z")

</div>

Could you post the first 10 lines of the CorePrivatePCH.h file from your engine? Also, are you using the binary version of the engine from the launcher or are you trying to build a source version from GitHub?

---

<div class="post-metadata">

**Author:** ![ihavenick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ihavenick/32/465572_2.png) [@ihavenick](https://forums.unrealengine.com/u/ihavenick)\
**Post date:** [December 10, 2015, 8:34pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/7 "2015-12-10T20:34:11Z")

</div>

> **[ue4 bug - Pastebin.com](https://pastebin.com/ggKPrsPS)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Github source - release branch

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 14, 2015, 7:07pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/8 "2015-12-14T19:07:51Z")

</div>

Hey

Can you check what your Visual Studio’s language is set to? This can be done by going to Tools-\>Options and then looking for Environment-\>International Settings in the new window. Let me know what language it is set to here. If it is set to “Same as Microsoft Windows” can you also let me know what the default language of your OS is? If this is set to something other than English can you try switching it by choosing English from the drop down on the right and then compile the source again?

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_089a4978](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_089a4978](https://forums.unrealengine.com/u/anonymous_user_089a4978)\
**Post date:** [December 14, 2015, 8:26pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/9 "2015-12-14T20:26:55Z")

</div>

**I have the same problem. When I try to compile 4.10 or 4.10.1 source code, unsupported characters causes build errors. For example,  
instead of this:**

```
#ifndef __AUTO_COREPRIVATEPCH_H__

```

it is like this:

```
#ifndef __AUTO_COREPRİVATEPCH_H__

```

In Turkish alphabet lower case i = upper case İ  
and lower case ı = upper case I

**Even if I replace them manually, they automatically turns into İ again. For example if I open CorePrivatePCH.h and replace İ’s with I’s, it automatically makes letters upper case in a wrong way. It turns I’s into İ’s every time I fix it, when it is building.**

**I deleted all source files. I changed my language into English, I deleted Turkish keyboard and used English Q keyboard and reinstalled source code but result is same. I tried both English and Turkish versions of Visual Studio 2015, I tried Visual Studio 2013 too. I redownloaded source code every time I have changed version or language. But result is still same.  
I fixed them via notepad then I made files -only, the files that contains İ , to protect them from changing I’s to İ’s. Then I got this error:**

4\> at UnrealBuildTool.UnrealBuildTool.RunUBT(String[] Arguments) in D:\GitHub\UnrealEngine-release\Engine\Source\Programs\UnrealBuildTool\System\UnrealBuildTool.cs:line 1832

4\> UnrealHeaderTool **failed** for target ‘UE4Editor’ (platform: Win64, module info: D:\GitHub\UnrealEngine-release\Engine\Intermediate\Build\Win64\UE4Editor\Development\ **UnrealHeaderTool.manifest** ).

4\>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(42,5): error MSB3075: The command “…..\Build\BatchFiles\Rebuild.bat UE4Editor Win64 Development -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command.

========== Tümünü Yeniden Oluşturma: 3 successful, 1 failed, 0 ignored ==========

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 14, 2015, 8:38pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/10 "2015-12-14T20:38:06Z")

</div>

Hey SalishBalkan-

When you say that you’ve tried both English and Turkish versions of VS are you referring to the process I mentioned above? What language was VS set to originally? If you’ve already changed the language to English can you run GenerateProjectFiles.bat again and then compile?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_089a4978](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_089a4978](https://forums.unrealengine.com/u/anonymous_user_089a4978)\
**Post date:** [December 14, 2015, 8:42pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/11 "2015-12-14T20:42:04Z")

</div>

Yes, I redownloaded the entire source code. My VS 2015, language and keyboard is English. But result is still same.  
Original language of VS is English. Original language of my Windows 10 was Turkish.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 14, 2015, 9:54pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/12 "2015-12-14T21:54:49Z")

</div>

I am attempting to reproduce this by changing the language of my machine to Turkish. Can you let me know when you are running into this error? Is this happening when running Setup.bat, GenerateProjectFiles.bat, building the editor, or at some other point in the installation process?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_089a4978](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_089a4978](https://forums.unrealengine.com/u/anonymous_user_089a4978)\
**Post date:** [December 14, 2015, 10:02pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/13 "2015-12-14T22:02:03Z")

</div>

It is happening when I am building or rebuilding the UE4 in Development Editor and Win64.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 14, 2015, 10:20pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/14 "2015-12-14T22:20:06Z")

</div>

Hey

According to who appears to be having the same issue, his machine appears to be set to Turkish language. Can you confirm if your computer / Visual Studio is set to the same language or a different language?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 14, 2015, 11:33pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/15 "2015-12-14T23:33:33Z")

</div>

Hey ihavenick and -

I was able to reproduce the build error after switching my computer to Turkish and have entered a bug report (UE-24478) for investigation.

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_089a4978](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_089a4978](https://forums.unrealengine.com/u/anonymous_user_089a4978)\
**Post date:** [December 15, 2015, 4:56pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/16 "2015-12-15T16:56:34Z")

</div>

I fixed this bug by myself. I changed this:

**…ToUpper();**

into this:

**…ToUpper(new CultureInfo(“en-US”, false));**

This is in UEBuildModule.cs

You can see this in the screenshot:

 ![70735-bug-fixed.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/4/304b3429d748df9e7cf23bffa8e5fc0e9e9ab48c.png)

---

<div class="post-metadata">

**Author:** ![ihavenick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ihavenick/32/465572_2.png) [@ihavenick](https://forums.unrealengine.com/u/ihavenick)\
**Post date:** [December 18, 2015, 11:57pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/17 "2015-12-18T23:57:23Z")

</div>

Yes thank you 🙂

---

<div class="post-metadata">

**Author:** ![ihavenick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ihavenick/32/465572_2.png) [@ihavenick](https://forums.unrealengine.com/u/ihavenick)\
**Post date:** [December 18, 2015, 11:58pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/18 "2015-12-18T23:58:07Z")

</div>

Yes , it was Turkish too . thanks for summitting bug report

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_089a4978](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_089a4978](https://forums.unrealengine.com/u/anonymous_user_089a4978)\
**Post date:** [December 20, 2015, 2:41pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/19 "2015-12-20T14:41:12Z")

</div>

Hi , looks like this bug isn’t fixed on GitHub. Could you please get this into 4.11?

---

<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:** [December 20, 2015, 6:01pm UTC](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979/20 "2015-12-20T18:01:27Z")

</div>

I would replace the ToUpper or ToLower calls to their Invariant versions: [String.ToUpperInvariant Method (System) | Microsoft Docs](https://msdn.microsoft.com/en-us/library/system.string.toupperinvariant(v=vs.110).aspx)

Similar things can happen to Equals.

[Next page](https://forums.unrealengine.com/t/bug-generating-project-files-breaks-build/340979.md?page=2)
