Hi,
I am developing a c++ plugin for maya that gives the possibility to render in Vray.
However, when someone not having Vray is willing to load the plugin, maya returns immediately:
Library linking at compilation occurs with the -lvray flag (compilation on MacOSX).
How can I enable a dynamic loading of the Vray library, only when rendering, so that people without Vray can anyway use my plugin without rendering ?
Thanks.
I am developing a c++ plugin for maya that gives the possibility to render in Vray.
However, when someone not having Vray is willing to load the plugin, maya returns immediately:
Code:
// Error: line 1: dlopen(myBundle.bundle, 1): Library not loaded: @executable_path/libvray.dylib Referenced from: myBundle.bundle Reason: image not found (myBundle) //
How can I enable a dynamic loading of the Vray library, only when rendering, so that people without Vray can anyway use my plugin without rendering ?
Thanks.
Comment