How do I compile the engine using vs2012 express?

Hi,

I am getting the following errors when trying to compile the engine using visual studio 2012 express. I have made sure that the required files from git hub have been merged properly and I still get this error. How would I go about resolving this?

Error	1	error LNK1181: cannot open input file 'sicudt.lib'

Error	2	error : Failed to produce item: C:\Program Files\Unreal Engine\UnrealEngine-4.2\Engine\Binaries\Win64\UnrealHeaderTool-Core.dll

Error	3	error MSB3073: The command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development" exited with code -1.

Looks like the required zip files from the release, Required_1of2.zip and Required_2of2.zip weren’t included in your project folder, they can be downloaded here.
https://github.com/EpicGames/UnrealEngine/releases/tag/4.1.1-release

Forum reference:

Hi HypnoticShark,

It may seem silly, but I just wanted to make sure that you have installed both the required and optional dependencies (the optional ones are needed if you are going to use VS2012), and that these are the dependencies for the same version you are trying to build (the dependencies for 4.1.1 won’t work with version 4.1.0 of the Engine, or vice versa).

I am using the 4.2 preview build. I have made sure I am using the dependencies for 4.2 itself. I re downloaded the files and made changes according to the forum post mentioned by and I was able to get past the error by following the unblock step. However, I am still unable to compile the engine and I am getting a different error this time.link text

I just tried compiling again and the Microsoft C/C++ compiler driver stops working midway through. Tried this twice and had the driver crash both times.

Hi ,

Unfortunately, the build does not complete for me and I get
Error 307 error : Failed to produce item: C:\Program Files\Unreal Engine\UnrealEngine-4.2\Engine\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor-UnrealEd.lib C:\Program Files\Unreal Engine\UnrealEngine-4.2\Engine\Intermediate\ProjectFiles\ERROR UE4 Error 308 error MSB3073: The command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development" exited with code -1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets 38 5 UE4

I ran the build.bat file and the command prompt just opens and closes without any messages

Can you try running the Build.bat file located at ..\Engine\Build\BatchFiles\Build.bat and see what error messages that gives you?

I have also had VS2012 occasionally give me a popup stating that the C/C++ Compiler Driver has stopped working, but each time that has happened to me, the build has continued and eventually completed. I have actually had the popup appear multiple times during a build on rare occasions. Just don’t click any of the buttons in the popup and let it continue building (if the build has not actually stopped).

And just to make sure, you have installed the June 2010 DirectX Runtime?

Hi ,

All the components that came with visual studio 2012 should be installed. I am not sure if that was one of them. Do you know how I can verify whether it is installed?

Thanks!

Hi HypnoticShark,

I am not aware of a way to determine if a specific DirectX Runtime has been installed (I mistakenly said you need the June 2012 Runtime, when it is actually the June 2010 Runtime that is needed, I will edit my previous comment accordingly). I know that the DirectX SDK will appear in Control Panel → Programs → Programs and Features, but it appears that the Runtime specifically is what is needed. You can download the Runtime from Microsoft.

Once you have downloaded the file, run the .exe file and unpack everything into a folder (don’t do like I did and unpack it onto your Desktop). Included with the unpacked files will be a file named DXSETUP.exe. Run that to install the DirectX Runtime files, then try building the Editor again.

One other thought I had: You mentioned trying to build the 4.2 Preview build. We actually released 4.2 yesterday, so I am wondering if it may be possible that you might have downloaded the 4.2 Preview source code, but got the three dependency .zip files from the 4.2 Release version.

I am pretty sure I have atlease have a version of directx runtime that was released in 2013 as it was installed along with a game. I shall download 4.2 and try it out and get back to you. Thanks

it took a while but it looks like the 4.2 release build compiled just fine. I have the editor up and running. Thanks for your help!

The June 2010 DirectX runtime is a requirement for building the Editor. It is possible that a later version of the DirectX runtime may work, but it doesn’t hurt to install the June 2010 version.

Excellent, I am glad to hear that you have it working now. I have moved your comment to be an answer. If you wouldn’t mind editing it to summarize the steps you took to ultimately get the Editor working, that would be helpful for future readers of this post.

To get the engine up and running with Visual Studio 2012 the following steps were done:

Follow the tutorial - YouTube
Before decompressing the the dependencies make sure you download the optional files as well and then right click and go to properties and click on the unblock button at the bottom if it appears (it appeared for me on ) for each of the downloaded files.

After performing the merge according to the video, DO NOT RUN the generate project files batch file. Instead

Go to UnrealEngine\Engine\Source\Programs\UnrealBuildTool\Windows\UEBuildWindows.cs

change Line 28:

public static readonly WindowsCompiler Compiler = WindowsCompiler.VisualStudio2013;

to

public static readonly WindowsCompiler Compiler = WindowsCompiler.VisualStudio2012;

You can now run the batch file after making that change and building the engine as shown in the video and it should work just fine. For some reason this failed with the 4.2 preview build but it worked fine with the release.