For information regarding building API applications, see:
If, during installation, you added the Maya executable directory to your path, you can run the application immediately. If you did not, you will need to copy your application to the Maya executable directory to run it.
Several environment variables must be set in order to run a standalone Maya API application. These are:
set MAYA_LOCATION=c:\Program Files\Autodesk\Maya2016 set Path=c:\Program Files\Autodesk\Maya2016\bin;%Path%
Note that %Path% is included so that existing commands are not lost to the shell.
On Mac OS X, you must set the DYLD_LIBRARY_PATH environment variable before you try to execute one of these applications so the runtime linker can find the Maya shared libraries.
The recommended procedure for preparing to build and run stand-alone applications is to set the following environment variables:
setenv MAYA_LOCATION /Applications/Autodesk/maya2016/Maya.app/Contents setenv DYLD_LIBRARY_PATH $MAYA_LOCATION/MacOS setenv DYLD_FRAMEWORK_PATH $MAYA_LOCATION/Frameworks