Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing plugin on Mac OS Maya 2018 #2

Open
lg3bass opened this issue Mar 21, 2018 · 1 comment
Open

Installing plugin on Mac OS Maya 2018 #2

lg3bass opened this issue Mar 21, 2018 · 1 comment

Comments

@lg3bass
Copy link

lg3bass commented Mar 21, 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

@mdelasa
Copy link

mdelasa commented Mar 30, 2018

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants