View Full Version : Compiling/installing mental ray shaders on linux

02 February 2005, 05:19 PM

I'm trying to get some of the custom shaders working on my linux box - especially the mix8layer and dirtmap shaders - so far with no luck :cry: I've looked round the web - but haven't found a solution.

I'll go through my steps so far... (concentrating on mentalray standalone because it seems to be able to give a more verbose output)

Attempt 1: - from a precompiled download
x Copied the dynamic library (.so) part into my mentalray/lib directory
x Copied the mentalRay include (.mi) part into my mentalray/include directory
x Added
link "{SHADERBASE}/lib/mix8layer.{DSO}"
mi "{SHADERBASE}/include/mix8layer.mi"
to my ray3rc file.
Trying to render gives the following link error:
LINK 0.0 error 191006: failed to load library <cut> undefined symbol: __gxx_personality_v0
When the mi file is read, no suprise, it can't find the mix8layer function.
Digging around this seems to be related to having been compiled with gcc rather than g++. As I had the source I moved onto...
Attempt 2: - compiling source
x Compiled source (basing on the Makefiles from the mentalRay devkit) using g++ for the linking.
x Copied over previous library
Trying to render gives:
LINK 0.0 error 191006: failed to load library <cut> cannot open shared object file: No such file or directory
I've checked the MI_LIBRARY_PATH is pointing at the right place - and everything else I can think of. Including opening the permissions up (chmod 777) copying the .so to /lib - playing with - and even turning on LD_DEBUG.

At this point I'm stuck and probably just need advice from someone who has done this before. I'd also love to know a good place to look to start writing shaders from scratch. Have found bits and pieces but nothing particularly helpful.

Thanks for any help


02 February 2005, 11:29 AM

link "/usr/aw/maya6.0/lib/"

to my rayrc seems to have let me pick up the __gxx_personality_v0 symbol I was looking for... Not quite sure why I have to manually link it in - do others find this?

Will update as I find out more...


02 February 2005, 02:02 PM
i compiled it already, here:


02 February 2005, 03:52 PM
Cool, I must have completely missed them......

Does anyone have v1.1 of Francesca's mix8layer - source or compiled?



CGTalk Moderation
02 February 2006, 04:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.