[4.8 OSX Github] GenerateProjectFiles fails

Hi, I’m trying to build current release branch from github (so 4.8 at moment) but I’m getting following error:

UnrealEngine xxx$ git checkout release
Already on 'release'
Your branch is up-to-date with 'origin/release'.
Setting up Mono
Checking dependencies (excluding Win32, Win64, HTML5)...
sh: FixDependencyFiles.sh: No such file or directory

If I setup project files and try to build editor I get same error (see log attached).

Any idea how to fix this?

Hi ,

I don’t see an attached log. Can you attach it again? Thanks!

Here you go, sorry.

Also, I often get this message when I’m on master and want to checkout release:

git checkout release
error: Your local changes to following files would be overwritten by checkout:
	Engine/Source/ThirdParty/SDL2/SDL-gui-backend/build-scripts/windows-buildbot-zipper.bat
	Engine/Source/ThirdParty/SDL2/SDL-gui-backend/build-scripts/winrtbuild.bat
Please, commit your changes or stash them before you can switch branches.
Aborting

I cannot neither commit nor discard these changes. What’s going on here?

Cloned again repos from start, problem seems to be slightly different now, I get following error when generating project files. Apparently no error running Setup script.

New log attached

MBP:~ xxx$ /Users/xxx/Documents/Unreal\ Projects/UnrealEngine\ 4.8/UnrealEngine/GenerateProjectFiles.command ; exit;

Setting up Unreal Engine 4 project files...

Setting up Mono
/Users/xxx/Documents/Unreal Projects/UnrealEngine 4.8/UnrealEngine/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/Microsoft.CSharp.targets: error : Error executing tool '/Users/xxx/Documents/Unreal Projects/UnrealEngine 4.8/UnrealEngine/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mcs.exe': ApplicationName='/Users/xxx/Documents/Unreal Projects/UnrealEngine 4.8/UnrealEngine/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mcs.exe', CommandLine='/noconfig @/var/folders/nf/vlnqfb_j13l6n31v9_z25nqw0000gp/T/tmp5c52cbc2.tmp', CurrentDirectory='/Users/xxx/Documents/Unreal Projects/UnrealEngine 4.8/UnrealEngine/Engine/Source/Programs/EnvVarsToXML/EnvVarsToXML', Native error= Cannot find specified file
Generating data for project indexing... 100%
Generating project file...
Found 33 targets!
Saving updated project file...
logout

Cloned out again from scratch, same result, again when generating project files:

/UnrealEngine/GenerateProjectFiles.command ; exit;

Setting up Unreal Engine 4 project files...

Setting up Mono
/Users/xxx/Documents/Unreal Projects/UnrealEngine4.8/UnrealEngine/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/Microsoft.CSharp.targets: error : Error executing tool '/Users/xxx/Documents/Unreal Projects/UnrealEngine4.8/UnrealEngine/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mcs.exe': ApplicationName='/Users/xxx/Documents/Unreal Projects/UnrealEngine4.8/UnrealEngine/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mcs.exe', CommandLine='/noconfig @/var/folders/nf/vlnqfb_j13l6n31v9_z25nqw0000gp/T/tmp26831713.tmp', CurrentDirectory='/Users/xxx/Documents/Unreal Projects/UnrealEngine4.8/UnrealEngine/Engine/Source/Programs/EnvVarsToXML/EnvVarsToXML', Native error= Cannot find specified file
Generating data for project indexing... 100%
Generating project file...
Found 33 targets!
Saving updated project file...
logout

Can anybody else reproduce problem?
XCode log attached

Can you try downloading from GitHub and running Setup and GenerateProjectFiles command files?

Same problem, both cloning and using from GitHub. Did you manage to reproduce problem?

No, not yet, but we’re looking into it. I’ll let you know if we have more questions. Thanks for your patience!

I also started seeing this with 4.8. These files keep getting regenerated even if I discard changes. Please fix.

Any updates? I still cannot compile 4.8 from source for mac…

It looks like Setup.command didn’t finish properly, but we don’t know why. Can either of you attach full output from it?

Are either of you using a case sensitive filesystem?

My filesystem is not case sensitive. Is there a way to get a more verbose output for setup script? I don’t get any errors when running it.

Filesystem info:

   File System Personality:  Journaled HFS+
   Type (Bundle):            hfs
   Name (User Visible):      Mac OS Extended (Journaled)

Not that I’m aware of. Can you post Setup.command results, please?

Same problem with 4.8.1.

Following normal steps can you successfully build current git version on mac or are you experiencing same problem?

Setup output:

/Users/xxx/Documents/Unreal\ Projects/UnrealEngine/UnrealEngine/Setup.command ; exit;
Lucas-MBP:~ unstable$ /Users/xxx/Documents/Unreal\ Projects/UnrealEngine/UnrealEngine/Setup.command ; exit;
Registering git hooks... (this will override existing ones!)
Setting up Mono
Checking dependencies (excluding Win32, Win64, HTML5)...
Updating dependencies: 100% (18648/18648), 3070.6/3070.6 MiB | 0.40 MiB/s, done
logout

[Process completed]

GenerateProjectFiles output:

/UnrealEngine/GenerateProjectFiles.command ; exit;

Setting up Unreal Engine 4 project files...

Setting up Mono
/Users/xxx/Documents/Unreal Projects/UnrealEngine/UnrealEngine/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/Microsoft.CSharp.targets: error : Error executing tool '/Users/xxx/Documents/Unreal Projects/UnrealEngine/UnrealEngine/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mcs.exe': ApplicationName='/Users/xxx/Documents/Unreal Projects/UnrealEngine/UnrealEngine/Engine/Binaries/ThirdParty/Mono/Mac/lib/mono/4.5/mcs.exe', CommandLine='/noconfig @/var/folders/nf/vlnqfb_j13l6n31v9_z25nqw0000gp/T/tmp6024d97e.tmp', CurrentDirectory='/Users/xxx/Documents/Unreal Projects/UnrealEngine/UnrealEngine/Engine/Source/Programs/EnvVarsToXML/EnvVarsToXML', Native error= Cannot find specified file
Generating data for project indexing... 100%
Generating project file...
Found 33 targets!
Saving updated project file...
logout


[Process completed]

Xcode log attached:
link text

No, I don’t get these outputs when running Setup and GenerateProjectFiles. I’m forwarding this information to our Mac devs to see what they can make of it. I’ll let you know if they need more info. Thanks!

It looks like you’re running into a problem with path with space characters we discovered just other day… We will fix it in next version, but for now you can fix it locally by modifying Engine/Build/BatchFiles/Mac/SetupMono.sh file - change line that sets UE_MONO_DIR to:

export UE_MONO_DIR=“$CUR_DIR/…/…/…/Binaries/ThirdParty/Mono/Mac”

Hi , thank you, that was it! Actually changing line setting UE_MONO_DIR didn’t fix it, but moving folder to a different path (without spaces) did trick.

Hi ,

In which folder did you moved ? Can you please elaborate. I am facing same problem. (Unable to Build Engine from Source Code in MAC - Platform & Builds - Epic Developer Community Forums)