Clean 4.2 engine build with error MSB3073, C1083, swarninterface

Hi, im building the source engine 4.2 from github and im getting error, im using windows 8.1

Error 4 error MSB3073: The command “…\Build\BatchFiles\Build.bat UE4Editor Win64 Development” exited with code -1. D:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 38 5 UE4

Error 2 error C1083: Cannot open include file: ‘metahost.h’: No such file or directory C:\UnrealEngine\Engine\Source\Editor\SwarmInterface\Private\SwarmInterface.cpp 19 1 UE4

Error 3 error : Failed to produce item: C:\UnrealEngine\Engine\Binaries\Win64\UE4Editor-SwarmInterface.dll C:\UnrealEngine\Engine\Intermediate\ProjectFiles\ERROR UE4

i also got a warning about netframework 4.0, i have 4.5

Warning 1 warning MSB3644: The reference assemblies for framework “.NETFramework,Version=v4.0” were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. D:\Program Files\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets 989 5 UE4

i tried all the solutions on answerhub : VS120COMNTOOLS environmental variable, unrealengine on root c/, build with visual studio express for desktop 2013, visual studio pro 2013

im also having the same problem building the 4.1 version

Hi LTE -

I wanted to get some more information about the project you are trying to build. What version of the engine are you using, is this a compiled source version of the engine from Github or is this the Launcher version? Also the project itself, is it a code based project, blueprint based, or is it one of our sample levels?

Thank You

hi, im building the editor from github, its a clean build. Currently im building version 4.2, but the same error thing happen to me with 4.1

Hi LTE -

Can you both provide your system specs and whether you are able to attempt to build lighting using more than 1 CPU or over a network? Or, does these build errors keep you from opening the editor?

Thank You

i didnt build anything other than the clean source engine, im just trying to build the editor and i followed the steps from the official unreal engine video, my specs are windows 8.1, gtx870m, 16gb ram, core i7 - to be exact im using msi gs60 ghost pro

Hi LTE -

Have you downloaded the correct dependency files for the 4.2? (The required zip files.) Some of the errors you are showing will pop up if you have an incorrect dependency zip with the 4.2 source code. Just to check, download those files again and try to build.

Thank You

I am marking this as the answer for tracking purposes, if this problem has persisted or returns feel free to open this up again.

Hello,
I have similar problem, I have 2 errors when i build solution :

Error 1 error C1083: Cannot open include file: ‘Windows.h’: No such file or directory d:\unreal engine\4.2\engine\source\runtime\core\public\Windows\MinWindows.h 66 1 Temple

Error 2 error MSB3073: The command ““D:\Unreal Engine\4.2\Engine\Build\BatchFiles\Build.bat” TempleEditor Win64 Development “C:\Users\Documents\Unreal Projects\Temple 4.2\Temple.uproject” -rocket” exited with code -1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 38 5 Temple

I reinstalled the 4.2.1 version of unreal but it doesn’t work. Otherwise what’s the required zip files that recommends (i don’t find it)?

Thank you for answer

(I’m French so sorry for language)

I have the very same problem. First everything was fine. I could compile the editor from the sourcecode and run it. After that I subscribed to the CryEngine EaaS program and installed VS2012 Ultimate instead of VS2013Pro. Then I wanted to compile UE4 again but with VS2012 and I couldnt get it to run so I installed VS2013 Express in parralel to VS2012 but still I could not get the code to be compiled. I tried everything possible. deleted the solution files and cleaned the build and generated the project files again. Nothing works. After all I deinstalled every IDE and only installed VS2013 Pro again but now I cant get the sourcecode to be build no matter what. I always end up with this error:

Fehler 2 error C1083: Datei (Include) kann nicht geöffnet werden: “metahost.h”: No such file or directory D:\UnrealEngine\Engine\Source\Editor\SwarmInterface\Private\SwarmInterface.cpp 19 1 UE4
Fehler 3 error : Failed to produce item: D:\UnrealEngine\Engine\Binaries\Win64\UE4Editor-SwarmInterface.dll D:\UnrealEngine\Engine\Intermediate\ProjectFiles\ERROR UE4
Fehler 4 error MSB3073: Der Befehl “…\Build\BatchFiles\Rebuild.bat UE4Editor Win64 Development” wurde mit dem Code 2 beendet. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 43 5 UE4

Hi Alucard123 -

Before you tried to compile with VS2012 did you download the optional Zip file from GitHub which does have required files for building with that version of Visual Studio?

If not, I would suggest downloading the GitHub version of the engine again including the Optional Zip and trying to recompile.

Let me know if that helps you out.

Hi ,
I tried to compile with VS2013 too. It doesn’t work. I read that GitHub is inside VS2013. Otherwise to find the solution, i downloaded windows.h (google search : windows.h) in the good folder. I recompil but it’s another files missing: windef.h.
I downloaded again windef.h and i placed it in the same folder but another files missing: winnt.h. It’s work to guiddef.h.
This seems to come from missing files VisualStudio. I don’t know where to find these files.
Thank You

Hey antoinepavia -

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. If you need to compile in VS2012 OR have projects that rely on dependencies in VS2012 then you will also need to download the Optional.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

Hey -

Do you have a GitHub Account and is it associated with your Unreal Account? If so, Log into GitHub then try to go to teh page listed above.

Hi ,
I can’t go here (error 404): https://github.com/EpicGames/UnrealEngine/releases
When i search Epic Games in GitHub users it says to me: This organization has no public repositories
Thank You

Hi, I activate windows with my serial and the error C1083 disappeared. First step :slight_smile:

Today I resubscribed again to UE4 and downloaded the latest version. I also downloaded and put the files from the required files into the Unreal Engine folder and builded the solution. No complains so far. Now I opened VS2013pro and loaded the solution. I started compiling development editor in W64 mode. The compilation finished with the above error again.

Can I also extract the optional files into the UE folder when I use VS2013 or does this mess VS up?

Now I also tried to add the optional files but the error is still there.
I were looking for the metahost.h file and found three places on my drive which hold a version of it.

C:\Program Files (x86)\Windows Kits\8.1\Include\um\metahost.h
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Include\metahost.h
C:\Program Files (x86)\Windows Kits\8.0\Include\um\metahost.h

Hey Alucard123 -

I know I am repeating my answer here to antoinepavia but it will help me get this issue down to the exact problem:

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. If you need to compile in VS2012 OR have projects that rely on dependencies in VS2012 then you will also need to download the Optional.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 for your patience,

Hey Eric,

thank you for your help. As I wrote before, those steps you mentioned are the exact procedure I took. Every step succeeded but compiling the engine (UE4 Project) which failed with the above editor. For compiling I used VS2013 Pro and I had no other IDE or version installed beside VS2013 Pro. The error occured after I have tried to compile with 2012 Ultimate without the optional files. After that I couldnt compile anything anymore.

Hmm… This could be a Windows file or registry entry that has been changed from having the VS2012 installed. Have you uninstalled VS2012 Ultimate and run a Windows Update to look for updated files for Visual Studio 2013?

Try this and let me know. If something updates I would follow my steps exactly above again (yes, I am sorry that includes uninstalling and deleting, but you shouldn’t need to re-download assuming you kept the original zip files.)

Hi ,

I downloaded all the files (source code.zip; source code.tar.gz; required1of2.zip ; required 2of2.zip; optional.zip) on GitHub (3 times) but everytime it’s writting that:

Setting up Unreal Engine 4 project files…

GenerateProjectFiles ERROR: It looks like you’re missing some files that are required in order to generate projects. Please check that you’ve downloaded and unpacked the engine source code, binaries, content and third-party dependencies be
fore running this script.

Appuyez sur une touche pour continuer…

Maybe I haven’t unzip the package in the good folder. I tried many solutions but it doesn’t work.

Thank you