Download

Can't seem to figure out errors when trying to build from source

I followed the video tutorial 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 bulid 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 ==========


This is with a clean install of Visual Studio 2013 express.

Did you download the Required zip files (2 of them) and unzip them in the source folder? Check that you have an Engine/Source/ThirdParty folder, if you don’t then you need to get required zip files.

I have unziped the two required zip files into the source folder. I have the Engine/Source/ThirdParty folder.

Like that?

Seems the “include” folder in IntelTBB-4.0 is missing for some reason. It’s not in the downloaded zip files.

Why might I be missing these?

Same problem here with latest 4.3 source including the 2 zip files that are holding the dependencies

While the directory indeed doesn’t hold those files. The whole directory structure looks different
on hy HDD it has

and not

The headers for those libraries are in the Git repo itself, not in the zip files.

https://github.com/EpicGames/UnrealEngine/tree/4.3.0-preview/Engine/Source/ThirdParty/IntelTBB/IntelTBB-4.0/include/tbb
https://github.com/EpicGames/UnrealEngine/tree/4.3.0-preview/Engine/Source/ThirdParty/zlib/zlib-1.2.5/Inc

Is it possible that your .gitignore file is set to ignore those folders, perhaps? We moved the ThirdParty source code out of the zips to make it easier to track them using source control.

Ill have a look at that once I get home again. Downloading the source from 4.3 in the zip files worked flawless.

I have the same problem.

The files are downloaded from GitHub just fine.
They are however not included in the solution it seems.

And VS2013 Express craps out when you click “View all files”. It just makes a long list of all the files in the project, it doesn’t show excluded files and folders.

Where do we go from here?

We don’t show the source for ThirdParty libraries in the solution to make Visual Studio more responsive. We have a pretty big solution already. :slight_smile:

Are you still having problems being able to build? What errors are you getting?