liamkf / Unreal_FASTBuild

Allows UnrealEngine to be built with FASTBuild for VS2015/VS2017 and Windows 10.
MIT License
179 stars 71 forks source link

No spaces in path to fbuild.bff allowed #38

Open meiwen333 opened 5 years ago

meiwen333 commented 5 years ago

When I used FastBuild I got an error: D:\Program(1,1): FASTBuild Error #1015 - Unknown Function. After a while of investigating the error I found it. It is in the function: ExecuteBffFile

this line of code: string FBCommandLine = string.Format("-monitor -summary {0} {1} -ide -clean -config {2}", distArgument, cacheArgument, BffFilePath);

In my case the folder in BffFilePath contained spaces and since the path is not in quitation marks the path can never be found. Just replace the line with this code: string FBCommandLine = string.Format("-monitor -summary {0} {1} -ide -clean -config \"{2}\"", distArgument, cacheArgument, BffFilePath);

Cheers Pascal