While setting up Source Code, generateprojectfiles.bat doesn't work

Hey,
i followed your Video “Downloading and Building UE4 Source” but after putting the 2 Required Files into the cloned “UnrealEngine” directory, there were no popping up windows because of “merge”… thats kinda strange!..
My problem is now, that “generateprojectfiles.bat” doesnt work - it says there is something wrong/missing.

I have downloaded only the 2 required files of 4.1 (I didnt download the optional.zip).
Do i also have to DL the Required Files of UE preview build, 4.02, 4.01 and so on to make it work??

Thank you

You did not specify whether you are using Windows or OS X…

Download the 4.1 release zip files Required1/2 and the Optional as well as clone the source but making sure you are getting the 4.1 branch, or alternatively delete the zip file of the source.

To get the 4.1 branch you would issue argument -b with a branch name
git clone -b 4.1 …

Make sure that you are unzipping/moving files to the right location though. You can keep newer if prompted but generally you could just overwrite, as they should be the same.

It´s Windows.
I already got the 4.1 branch and i´ve downloaded the Required 1+2 and right now i am also downloading the Optiononal zip as you said.
But i didnt understand what you meant by that:
“To get the 4.1 branch you would issue argument -b with a branch name git clone -b 4.1 …”

The optional.zip didnt help. Still got the same error:
“GenerateProjectFiles ERROR:UnrealBuildTool failed to compile”

What I meant by “git clone -b 4.1…” is if you were using a command line, but that’s not the case here.

I ran a quick translate on the text in the cmd window (I do understand some words but I wanted to make sure)…

msbuild is not in the path, which either means that you did not install Visual Studio 2013, or its environment is not setup properly.

You really need to have a working VS environment for any of this to work. Please check that first and then come back here if needed.

Yes, i have express 13 Desktop.
Tried several hours … doesnt work for me. I absolutely dont know why.
Can i get UE4.sln without using this .bat file?

Would you try reinstalling VS 13 Express…because msbuild is not in the path and it should be? Without it, nothing will really work.

Alternatively, you could try initializing the environment vars manually.

Start a command prompt and go to your c:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\ and run vcvarsall.bat or c:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools/ and run one of the .bat there.

The paths are for a full VS 2013, not sure what they should be for Express but you’ll be able to figure it out.

Today i decided to give it a try on my 3 year old Laptop… and what can i say? Everything worked perfectly!

Maybe some of my PC Hardware Specs are not compatible?
My PC
Win8 64bit
AMD FX 6300
ATi 6950HD

My old Laptop
also Win8 64bit
Intel i3 2350M
nVidia GT630M

I think this more has to do with your OS setup and VS install than anything else. I do not see how could hardware interfere with the build process at this stage.

If anything building might be slow on a slow CPU, but if VS is installed properly it should just work.

Okay.
I reinstalled/repaired VS2013 serveral times without success. Do you think reinstalling Windows could help?

You really shouldn’t have to reinstall Windows as this seems to be a path problem. Unless registry is somehow corrupt.

Did you check if VS2013 added itself to the Environment (PATH variable and others)?

Here’s another idea: remove VS2013 altogether; create a new user on the system and install VS2013 through that user, then try building with that user account as well.

Maybe it’s your current user setup is somehow messed up…

Reinstalling Windows8 didnt help, but reinstalling my whole Computer finally did.
Working fine now! Thanks for support.