Installing plugin on Mac OS Maya 2018
I'm having trouble installing the plugin. Maya 2018 is saying it can't find libAnimX.dylib. What am I doing wrong?
// Error: file: /Applications/Autodesk/maya2018/Maya.app/Contents/scripts/others/pluginWin.mel line 290: Unable to dynamically load : /Users/lg3/BW_MCP/BW_LIB/MAYA/animx/AnimXPlugin.bundle dlopen(/Users/lg3/BW_MCP/BW_LIB/MAYA/animx/AnimXPlugin.bundle, 1): Library not loaded: libAnimX.dylib Referenced from: /Users/lg3/BW_MCP/BW_LIB/MAYA/animx/AnimXPlugin.bundle Reason: image not found //
My Maya.env file is: MAYA_PLUG_IN_PATH = $HOME/myCircleNode/build/Debug:$HOME/BW_MCP/BW_LIB/MAYA/animx MAYA_SCRIPT_PATH = $HOME/myCircleNode:$HOME/BW_MCP/BW_LIB/MAYA/animx/scripts XBMLANGPATH = $HOME/myCircleNode
Install location are: /Users/lg3/BW_MCP/BW_LIB/MAYA/animx/./libAnimX.dylib /Users/lg3/BW_MCP/BW_LIB/MAYA/animx/./AnimXPlugin.bundle /Users/lg3/BW_MCP/BW_LIB/MAYA/animx/scripts/pydll.py /Users/lg3/BW_MCP/BW_LIB/MAYA/animx/scripts/pyplugin.py
cmake_instal command: cmake --install -DCMAKE_INSTALL_PREFIX=$HOME/BW_MCP/BW_LIB/MAYA/animx ..
I'd appreciate the help. thanks
@lg3bass Apologies for the delay in responding.
The problem occurs b/c OSX can't find libAnimX.dylib. The solution is to set the DYLD_LIBRARY_PATH variable. This is equivalent to the Windows PATH variable. Your system uses this variable to determine which directories to inspect for dynamic libraries.
After downloading sources and cd-ing into the directory with sources, here are the steps I used to build and run the library:
mkdir build; cd build
cmake -DMAYA_VERSION=2018 -DCMAKE_INSTALL_PREFIX=$HOME/Desktop/animx ..
cmake --build . --config Release --target install
export MAYA_PLUG_IN_PATH=$HOME/Desktop/animx
export MAYA_SCRIPT_PATH=$HOME/Desktop/animx/scripts
export DYLD_LIBRARY_PATH=$HOME/Desktop/animx
open /Applications/Autodesk/maya2018/Maya.app
Now when you open the plug-in manager you should see AnimXPlugin.bundle. You should get no errors when clicking load. Assuming that all works out, you should be able to load the pyplugin.py file in the script editor. Once you run the file contents type testCurves().
That should do the trick.
Once you confirm this fixes your issue, I'll update the README.md to avoid confusion in the future.