Loading Maxwell plugin in Maya 2016 SP6

Everything related to the integration for Maya.
Post Reply
Sylvain Maziere
Posts: 1
Joined: Thu Jun 08, 2017 9:46 am

Loading Maxwell plugin in Maya 2016 SP6

Post by Sylvain Maziere » Thu Jun 08, 2017 10:06 am


When i'm trying to load 'maxwell.so' from the plug-in manager window, i've this error:

// Error: Cannot determine Maxwell root directory. //
// Error: line 1: initializePlugin function failed (maxwell) //

Maxwell renderer is installed on a shared server mount through nfs.
I've set 'MAXWELL4_ROOT' to point to the directory where maxwell is installed (ex:/prod/softprod/apps/maxwell/standalone/ .
If i execute 'os.environ["MAXWELL4_ROOT"]' in maya python console, it print the correct path...

The only solution is found is to create a symbolic link on each workstation from '/usr/nexlimit/maxwell_maya' that point to the install directory of maxwell. It seems that the environment variable MAXWELL4_ROOT is not used...

I'm using Maxwell and MayaPlugin version 4.0.7.

One more thing, i found that maxwell.so is looking for an absolute path for the library libmxcommon.so:
ldd maxwell.so
linux-vdso.so.1 => (0x00007ffff19c7000)
/usr/nextlimit/maxwell_maya/libmxcommon.so => not found
libdl.so.2 => /lib64/libdl.so.2 (0x00002abb7790f000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002abb77b13000)
librt.so.1 => /lib64/librt.so.1 (0x00002abb77d30000)
libz.so.1 => /lib64/libz.so.1 (0x00002abb77f39000)
libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00002abb7814f000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x00002abb78375000)
libGL.so.1 => /usr/lib64/nvidia/libGL.so.1 (0x00002abb7857a000)
libGLU.so.1 => /usr/lib64/libGLU.so.1 (0x00002abb7881e000)
libFoundation.so => not found
libOpenMaya.so => not found
libOpenMayaAnim.so => not found
libOpenMayaFX.so => not found
libOpenMayaRender.so => not found
libOpenMayaUI.so => not found
libQtCore.so.4 => /usr/lib64/libQtCore.so.4 (0x00002abb78a9e000)
libQtGui.so.4 => /usr/lib64/libQtGui.so.4 (0x00002abb78f03000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002abb79b2b000)
libm.so.6 => /lib64/libm.so.6 (0x00002abb79e31000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002abb7a0b6000)
libc.so.6 => /lib64/libc.so.6 (0x00002abb7a2cc000)
/lib64/ld-linux-x86-64.so.2 (0x0000003f04200000)
libGLX.so.0 => /usr/lib64/nvidia/libGLX.so.0 (0x00002abb7a660000)
libGLdispatch.so.0 => /usr/lib64/nvidia/libGLdispatch.so.0 (0x00002abb7a891000)
libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0 (0x00002abb7ab5f000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00002abb7ad63000)
libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x00002abb7b07b000)
libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x00002abb7b318000)
libSM.so.6 => /usr/lib64/libSM.so.6 (0x00002abb7b564000)
libICE.so.6 => /usr/lib64/libICE.so.6 (0x00002abb7b76d000)
libXi.so.6 => /usr/lib64/libXi.so.6 (0x00002abb7b989000)
libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00002abb7bb98000)
libXrandr.so.2 => /usr/lib64/libXrandr.so.2 (0x00002abb7bda2000)
libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00002abb7bfab000)
libXcursor.so.1 => /usr/lib64/libXcursor.so.1 (0x00002abb7c1b0000)
libXinerama.so.1 => /usr/lib64/libXinerama.so.1 (0x00002abb7c3bb000)
libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x00002abb7c5bd000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x00002abb7c7f3000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00002abb7ca06000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x00002abb7cd43000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00002abb7cf6c000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00002abb7d18b000)
The problem with this is LD_LIBRARY_PATH don't work for resolving this dependency. I have to use patchelf and remove the path:
patchelf --replace-needed /usr/nextlimit/maxwell_maya/libmxcommon.so libmxcommon.so maxwell.so
Thank you for your response.

Post Reply

Return to “Maxwell | Maya”