I did check that--I'm using Chad Vernon's CMake script from his API series
over on CG Circuit, modified for these plugins of course.  The project file
DOES link against them.  What's weird is that it only works on my build
machines.  I'd think that if they weren't linking against Maya that it
wouldn't work at all, which leads me back to visual studio specifically.  I
guess I'm hopiing someone who makes plugins in a windows shop might have
run into this :).  Most of the searches I've done just turn up tech support
for customers (mostly with Arnold or Houdini, it seems) that run into
this.  Very few developer insights appear.

On Mon, Feb 23, 2015 at 10:58 AM, Justin Israel <[email protected]>
wrote:

> I don't have any experience with compiling Maya plugins with Visual
> Studio, but as a random guess it sounds like it isn't actually linking
> against Maya? I wouldn't think you would need the VS runtime on the target
> machine, if it is just going to link against Maya. Maybe I am totally
> wrong.
>
> On Tue, 24 Feb 2015 7:50 AM Joe Weidenbach <[email protected]> wrote:
>
>> Hey all,
>>
>> I'm running into a minor snag with distributing a plugin I've written. It
>> works perfectly on all of my machines, but all of my machines have Visual
>> Studio installed.  Also, when I build on Linux or MacOS, there's no
>> problem.  But, when I build on Windows, and try to load the plugin on a
>> machine that doesn't have VS, I get the following error:
>>
>> Error: Unable to dynamically load : C:\Program
>> Files\Autodesk\Maya2014\bin\plug-ins\XXX.mll
>> The specified module could not be found.
>>
>> XXX is my module name, could be anything.
>>
>> The research I've done says that this is a missing library somewhere.  It
>> should be noted that I have no control over the target systems (they're at
>> a school where I teach), but I've noticed that a few of my commercial
>> plugins work fine, so it shouldn't be a missing dependency.  I'm guessing
>> that I'm missing something in the build process.  At first I thought it was
>> that I was building in Visual Studio 2012, but I've switched to building in
>> 2010 and I have the same issue.
>>
>> One thing I did try was installing the VC10 runtime, but it made no
>> difference.
>>
>> I've tried using DependencyWalker and it looks like it's not finding the
>> OpenMaya library.  However, it works perfectly on all of my development
>> machines, so I'm not sure what the issue could be.  I also tested on a
>> friend's laptop that didn't have restrictions, and it got the same error as
>> I get at the school.
>>
>> The only thing I can think is that this is some switch I've forgotten to
>> check in Visual Studio.  Any ideas?
>>
>> Thanks,
>>
>> Joe
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAM33%3Da7Sd42QLNAgNjuopQ%3Dkid2_q0UmpXh7w93QvMOLzsMa_g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAM33%3Da7Sd42QLNAgNjuopQ%3Dkid2_q0UmpXh7w93QvMOLzsMa_g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3h7enYqzeh7zoRPAdnoemUB7E%2Bu%3DkBOb%3DtMQOyHcQ91g%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3h7enYqzeh7zoRPAdnoemUB7E%2Bu%3DkBOb%3DtMQOyHcQ91g%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAM33%3Da4Rs4CgAzTEy6yQgZseJbD7uMdc2Xc%3DnsAKGJs8h1n2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to