is this a materials bug of UE4 on Ubuntu 14.04 ??

hello, I correctly compiled UE4 in ubuntu 14.04 and found one problem when creating a simple material with any texture (png,jpg,tga) :


Error [SM4] error: too many parameters to ‘vec3’ constructor

Error [SM4] error: ‘return’ with wrong type , in function ‘GetMaterialNormalRaw’ returning vec3

Error [SM4] warning: left-hand operand of comma expression has no effect

Error [SM4] error: ‘return’ with wrong type , in function ‘GetMaterialTranslucentMultipleScatteringExtinction’ returning vec3

Error [SM4] error: ‘return’ with wrong type , in function ‘GetMaterialWorldPositionOffset’ returning vec3

Error [SM4] error: ‘return’ with wrong type , in function ‘GetMaterialWorldDisplacement’ returning vec3

Error [SM4] warning: implicit truncation from ‘vec4’ to ‘vec2’


I compiled UE 4.7, 4.7.2 and even 4.6 but always the same problem, (in windows the material creation worked well, but my Ubuntu Machine is way more powerful),

please does somebody knows what I’m doing wrong ??, I’m using this machine:

Ubuntu 14.04

16Gb Ram

GTX760 with proprietary Nvidia drivers

intel core i7

clang 3.3

Hi Daegon666,

I’m curious if this still happens if you build it with clang 3.5. Would you try that and test?

I tried compiling with clang 3.5, and even did a Fresh installation of Ubuntu 14.04, only for that, but the same problem is still there, the only workaround I found is to create the materials in Windows :frowning: and, come back to Ubuntu to do the rest , I will download the latest UE4 for Linux today from github and try again…

Looks like HLSL-> GLSL transcrpter bugging out

Ok I finally solved this problem when playing with many Nvidia Drivers, for the gtx760, was like a trial and error but one driver worked well :slight_smile:

Please tell us what version of the driver worked, so others with a similar error can try to resolve it that way?

Hi amigo, the version of driver working with the GTX760 for Ubuntu 14.04 is the 346.59, I will try to test with Debian as well, I hope it works as well.