Fabian
Hi everyone!
I have an issue loading SOuP v2021-06-13 in Maya 2022 on CentOS 7.
I am getting this error:

// Error: file: /usr/autodesk/maya2022/scripts/others/pluginWin.mel line 316: Unable to dynamically load : [...]/maya/SOuP/v2021-06-13/plug-ins/maya2022_linux/SOuP.so
libiomp5.so: cannot open shared object file: No such file or directory //


Could you help me?

Cheers,
Fabian
Reply 0 0
pshipkov
Strange.
What happens if you copy this file in /usr/autodesk/maya2022/lib ?
Reply 0 0
Fabian

Hi @pshipkov!

That worked! Is that something that you can include in the next SOuP version or is that missing from Maya in general?

Reply 0 0
pshipkov
This is the first report so far about this problem.
Is that a standard installation, or a customized one ?
Do you have libgomp.so available there ?

Cannot remember if libiomp.so is part of Maya 2022 tbh. Need to check.

For now i included the dynamic library in the downloadable archive, until i sort this out.
Reply 0 0
trojan32
Hello, @pshipkov we are getting the same error on MacOS in both Maya 2020 and Maya 2022. It complains about
Library not loaded: @rpath/libiomp5.dylib
. Any idea how I can fix it?



Thanks
Reply 0 0
pshipkov

Not sure why this is happening out of a sudden.
Included the library in the downloadable archive. Look under maya2022_osx.
Same file is usable for both 2020 and 2022

Reply 0 0
trojan32
Thank you @pshipkov for your fast response. Unfortunately, placing the library in the same plugin folder doesn't fix the issue. The plugin doesn't seem to be able to load the library from the relative path. I tried moving the library into one of the search paths (/usr/local/lib) and it worked!

However, the we can't add the library file to every artists' lib folder, it has to be included inside plugin module. Could you please look into it one more time? 
Reply 0 0
pshipkov
This is easily achievable by extending the LD_LIBRARY_PATH to the location of the plugins.
But will look into this soon and figure out a proper solution.
Reply 0 0
trojan32
Hmm the environment variable workaround might only work for Win and Linux, but not for MacOS:
https://help.autodesk.com/view/MAYAUL/2016/ENU/?guid=__files_GUID_E7B113F2_5AFD_4C05_A747_298C06586447_htm

Thanks for looking into this. I will wait for a fix. 
Reply 0 0
pshipkov
Ah, yes.
OSX the donkey. :D

You can try something like that:
install_name_tool -change /path/to/libiomp5.dylib @loader_path/libiomp5.dylib SOuP.bundle

This will allow the system to see the dynamic library if it is in the same location of the SOuP.bundle plugin.

But these are temporary measures. I will try to remove dependency on libiomp5 in the coming days.
Reply 1 0
trojan32
Hi @pshipkov, just wanted to follow up and see if there's any update on the issue.

Thanks!
Reply 0 0
pshipkov
i was out of town in the last few days.
will be looking at it over the weekend.
Reply 0 0
pshipkov
Removed the dependency on libiomp5 for both Linux and OSX builds.
Updated the downloadable SOuP archive in place.
Grab the latest and give it a try.
Reply 0 0
Reply