Source Build Errors

I followed the video tutorial on on downloading the unreal source code. Downloaded the zip files, cloned the repo, added the zip files, ran the bat file, opened the project and chose to compile UE4 and got these errors.

Error	1	error C1083: Cannot open include file: 'tbb/scalable_allocator.h': No such file or directory	D:\DATA\GitHub\UnrealEngine\Engine\Source\Runtime\Core\Private\HAL\MallocTBB.cpp	25	1	UE4
Error	2	error C1083: Cannot open include file: 'unicode/locid.h': No such file or directory	D:\DATA\GitHub\UnrealEngine\Engine\Source\Runtime\Core\Private\GenericPlatform\GenericPlatformMisc.cpp	21	1	UE4
Error	3	error C1083: Cannot open include file: 'ThirdParty/zlib/zlib-1.2.5/Inc/zlib.h': No such file or directory	D:\DATA\GitHub\UnrealEngine\Engine\Source\Runtime\Core\Private\Misc\Compression.cpp	13	1	UE4
Error	4	error : Failed to produce item: D:\DATA\GitHub\UnrealEngine\Engine\Binaries\Win64\UnrealHeaderTool-Core.dll	D:\DATA\GitHub\UnrealEngine\Engine\Intermediate\ProjectFiles\ERROR	UE4
Error	5	error MSB3073: The command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development" exited with code -1.	C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets	38	5	UE4


1>------ Build started: Project: UE4, Configuration: Development_Editor x64 ------
1>  Building UnrealHeaderTool...
1>  Performing 8 actions (max 4 parallel jobs)
1>  Module.Core.2_of_8.cpp
1>  Module.Core.1_of_8.cpp
1>  Module.Core.3_of_8.cpp
1>D:\DATA\GitHub\UnrealEngine\Engine\Source\Runtime\Core\Private\HAL\MallocTBB.cpp(25): fatal error C1083: Cannot open include file: 'tbb/scalable_allocator.h': No such file or directory
1>D:\DATA\GitHub\UnrealEngine\Engine\Source\Runtime\Core\Private\GenericPlatform\GenericPlatformMisc.cpp(21): fatal error C1083: Cannot open include file: 'unicode/locid.h': No such file or directory
1>D:\DATA\GitHub\UnrealEngine\Engine\Source\Runtime\Core\Private\Misc\Compression.cpp(13): fatal error C1083: Cannot open include file: 'ThirdParty/zlib/zlib-1.2.5/Inc/zlib.h': No such file or directory
1>  -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: D:\DATA\GitHub\UnrealEngine\Engine\Binaries\Win64\UnrealHeaderTool-Core.dll
1>  Cumulative action seconds (8 processors): 0.00 building projects, 2.26 compiling, 0.00 creating app bundles, 0.00 generating debug info, 0.00 linking, 0.00 other
1>  UBT execution time: 7.94 seconds
1>  UnrealHeaderTool failed for target 'UE4Editor' (platform: Win64, module info: D:\DATA\GitHub\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\UnrealHeaderTool.manifest).
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development" exited with code -1.
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

Any idea whats going on here? I’m not use to using Visual Studio.

EDIT

For some reason the zip files I’ve downloaded are missing

UnrealEngine\Engine\Source\ThirdParty\IntelTBB\IntelTBB-4.0\include\tbb\scalable_allocator.h

I am sorry to hear that you are experiencing this issue, and I want to ask some questions as we begin to investigate:

What version of the Unreal Engine are you using from GitHub?
What version of Visual Studio do you have installed?
If you are using Visual Studio 2012, or Visual Studio Express 2012, have you downloaded the Optional.zip dependencies as well as the required 1 of 2 and 2 of 2 zip files?

If you could answer these questions, and for best results, please be sure to review our suggestions for how to report your issues, and feel free to edit your post if you have any additional information to provide:
https://answers.unrealengine.com/questions/17546/how-do-i-get-help-with-ue4-installation-and-setup.html

Thank You

Eric Ketchum

The version of Unreal is 4.2.1 that I cloned from github. The version of Visual Studios Express 2013 I have installed is 12.0.21005.1 REL.

Hey Zexanima -

Since you said that you have some Zip files missing let us start from the beginning and work through your problem.

First Uninstall and delete all your engine files. You should not have to remove any project files.

Next got to Epic Games/Unreal Engine’s Release page on Git Hub, here

Download the 4.2.1 Release files: Source Code.zip, Required 1of2.zip and Required 2of2.zip. (This will take a while.)

Next unzip the files in the following order into the directory of your choice. (For me I use D:\GitHub\Unreal Engine.): Source Code, Required 1of2, Required 2of2, and [Optional if needed]. Merge Folders as you unzip (They will all have files that go into the Engine sub-directory, for instance.)

Once fully unzipped, Double Click on Generate Project Files.bat and wait for the file to run.

Once completed you should now see two solution files, double-click (open) the VS2013 solution file.

In VS2013, Build UE4. (This will take a while.)

Once the Build is complete, you should now have the UnrealEditor.exe in your Engine/Binaries/Win64 subdirectory.

Ok, So make sure you follow these steps and let me know step by step where how each step is working.

Thank You

Eric Ketchum

@Zexanima,

I was having a similar issue. I was jumping between the 4.2.1 and 4.3 branches.

The important point to note is that the Required_1of2.zip & Required_2of2.zip files are different for each version. So when you switch branches, you have to copy the correct zips on top.

Or, if you’re just using the one branch, make sure you use the zips for that version.