Now I am supposed to run GenerateProjectfile.sh of the root folder.
It throw some warnings like:
/usr/lib/mono/4.0/Microsoft.Common.targets: warning : Unable to find framework corresponding to the target framework moniker '.NETFramework,Version=v4.0,Profile=Client'. Framework assembly references will be resolved from the GAC, which might not be the intended behavior.
Then it finish with an error:
+ mono Binaries/DotNET/UnrealBuildTool.exe -makefile
Using gcc version '4.8' (string), 4 (major), 8 (minor), -1 (patch)
*** This version of the engine can only be compiled by clang - refusing to register the Linux toolchain.
Also, you must use Clang compiler for all operations with Unreal Engine under Linux. Please install Clang and retry the building steps, then optionally report back here of any issues.
Mono is installed because it’s just warning about something, but if the version was missing it would be an error. However, your system is wrongly defaulting to GCC rather than clang so you might want to go grab the clang compiler package for your distro.