Support Ubuntu 14.10 / gcc 4.9.1

Howdy. I’m not familiar with Unreal’s build tool or how it works, but it seems it isn’t compatible with the latest Ubuntu. Two issues:

To start, (this may not an issue with UE4) CMake won’t recognize ATI’s fglrx drivers and can’t find libGL.so in the filesystem. This causes GenerateProjectFiles.sh to crash silently(!). I fixed this by manually linking /usr/lib/libGL.so to /usr/lib/fglrx/libGL.so.1

Second, following this exactly, make ShaderCompileWorker UnrealLightmass UE4Editor won’t work either, lots of

cc1plus: error: unrecognized command line option "-Wno-ignored-attributes" [-Werror]

cc1plus: error: unrecognized command line option "-Wno-logical-op-parentheses" [-Werror]

The tool starts with
$ make ShaderCompileWorker UnrealLightmass UE4Editor

Engine/Build/BatchFiles/Linux/Build.sh ShaderCompileWorker Linux Development

Building ShaderCompileWorker......

Using gcc version '4.9.1' (string), 4 (major), 9 (minor), 1 (patch)

I have that gcc and clang 3.5 installed.

It should not be using gcc but clang for compiling through UBT.

You have to determine if there’s something causing this, perhaps a configuration change between 14.04 and 14.10. LinuxToolChain detects clang on the system and uses it, so if that’s not working it would probably fall back to gcc.

Thanks, somehow clang got uninstalled between the time I ran the project files installer script and got to the makefile stage – probably happened when I pasted the whole dependancy list from the linux build wiki into apt-get install. Oops!