Unused Variables on Fedora 21

Hello, everyone!

Some friends and I have been looking into making a game for some time now, and (after many, MANY problems with our original idea, which was to make it browser-based using JavaScript), I decided that it would be all-around better to make it using a compiled language. Unreal Engine fit perfectly, since I can use C++, which I have experience in, and actually supports building on Linux, unlike Unity.

However, I quickly realized that things were not going as planned when I saw the `xbuild’ message come up. I am not a big fan of Mono, but I am still willing to give it a go. However, my Mono, upon trying to build the project files, kept throwing errors about unused variables (yes, I said errors. Still trying to figure that one out).

The unused variables were all in GUBP.Automation.cs, on lines 4922, 5110 and 5137 (line 5110 doesn’t error until 5137 is commented out).

After commenting out said variables, I then got an error upon running `make SlateViewer.’

The error was as follows:

Building UnrealHeaderTool... ERROR: System.ComponentModel.Win32Exception: ApplicationName='/home/tony/GitHub/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool.exe', CommandLine='UnrealHeaderTool Linux Development -NoMutex', CurrentDirectory='' at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in :0 at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in :0 at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x00000] in :0 at UnrealBuildTool.ExternalExecution.RunExternalExecutable (System.String ExePath, System.String Commandline) [0x00000] in :0 at UnrealBuildTool.ExternalExecution.ExecuteHeaderToolIfNecessary (UnrealBuildTool.UEBuildTarget Target, UnrealBuildTool.CPPEnvironment GlobalCompileEnvironment, System.Collections.Generic.List'1 UObjectModules, System.String ModuleInfoFileName, UnrealBuildTool.ECompilationResult& UHTResult) [0x00000] in :0 at UnrealBuildTool.UEBuildTarget.Build (IUEToolChain TargetToolChain, System.Collections.Generic.List'1& OutputItems, System.Collections.Generic.List'1& UObjectModules, System.String& EULAViolationWarning) [0x00000] in :0 at UnrealBuildTool.UnrealBuildTool.RunUBT (System.String[] Arguments) [0x00000] in :0 Makefile:373: recipe for target 'SlateViewer' failed make: *** [SlateViewer] Error 5

I don’t understand any of this (one thing I dislike about building with Mono), but I think that it has something to do with the lines I commented out.

My system specs:

OS: Linux
Distribution: Fedora 21
Arch: 64-bit
Kernel Version: 4.0.4
Mono version: 2.10.8 (can’t find an update anywhere)
`xbuild’ version: 2.10.8
UE Version: 4.8

I absolutely refuse to use Unity, but I’ve no idea whether this will work using Wine or not.

Try mono 3.x, 2.x is known to have problems like this. In fact Setup.sh in master will refuse to run on 2.x.

You’re welcome.

After going through and finding a repo containing the 3.x Mono binaries, I now have UE4 building. Thanks for your help!