[Plugin] Loading error

36 views
Skip to first unread message

Rémi Deletrain

unread,
Apr 1, 2019, 9:05:53 AM4/1/19
to Python Programming for Autodesk Maya
Hi everyone,

I have loading errors each time I use plugins that use OpenGL.
For exemple with Sampler plugin (webSite, github) or pixarUSD. (Unable to dynamically load : D:/bla/bla/bla/pxrUsd.mll)

I already compile the usd several times and I had no problem loading plugin. But now I can not do it anymore.
Here is the adaptation of the plugin Sampler for maya2018.

I can not understand why he does not want to load into my maya. If anyone has a solution...

Rémi Deletrain

unread,
Apr 3, 2019, 8:08:07 AM4/3/19
to Python Programming for Autodesk Maya
it seems that the problem comes from glew.
the USD update the file glew.h. Hence the problem of loading in maya. And so it's the same problem for the Sampler project.

I found this page. So I try to build with version 1.10.0 but it's same problem...

Marcus Ottosson

unread,
Apr 3, 2019, 8:52:29 AM4/3/19
to python_in...@googlegroups.com
Could it be that the dynamically linked library for GLEW isn't available on your PATH? On Windows, that would be `glew32.dll`, on Linux I expect it would be `glew32.so`. A project like USD probably has lots of dynamic libraries, so maybe there's a more overarching directory missing from your PATH somewhere.

--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/9c27d5db-ee9c-4585-a434-747ce15adfd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rémi Deletrain

unread,
Apr 3, 2019, 9:25:00 AM4/3/19
to Python Programming for Autodesk Maya
It seems to me that windows takes as the first path the one where we load the plugin.
I also tried to add the path in environment variables but it does not change anything

Marcus Ottosson

unread,
Apr 3, 2019, 9:33:29 AM4/3/19
to python_in...@googlegroups.com

It seems to me that windows takes as the first path the one where we load the plugin.

That’s what I would expect as well, but it hasn’t been my experience.

Have a look at what dumpbin tells you about the dependencies of that plug-in, and make sure each of those are accessible on your PATH.

For example.

$ "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\dumpbin.exe" /DEPENDENTS rawfootPrintNode.mll
Microsoft (R) COFF/PE Dumper Version 14.00.24215.1
Copyright (C) Microsoft Corporation.  All rights reserved.

Dump of file rawfootPrintNode.mll

File Type: DLL

  Image has the following dependencies:

    glew32.dll
    OpenMaya.dll
    OpenMayaRender.dll
    OpenMayaUI.dll
    Foundation.dll
    OpenMayaAnim.dll
    OPENGL32.dll
    MSVCP140.dll
    VCRUNTIME140.dll
    api-ms-win-crt-runtime-l1-1-0.dll
    api-ms-win-crt-stdio-l1-1-0.dll
    api-ms-win-crt-filesystem-l1-1-0.dll
    api-ms-win-crt-heap-l1-1-0.dll
    api-ms-win-crt-environment-l1-1-0.dll
    KERNEL32.dll

  Summary

        1000 .data
        1000 .gfids
        1000 .pdata
        A000 .rdata
        1000 .reloc
        1000 .rsrc
        8000 .text
        1000 .tls

$

On Wed, 3 Apr 2019 at 14:25, Rémi Deletrain <remi.de...@gmail.com> wrote:
It seems to me that windows takes as the first path the one where we load the plugin.
I also tried to add the path in environment variables but it does not change anything

--
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 python_inside_m...@googlegroups.com.

Rémi Deletrain

unread,
Apr 5, 2019, 3:06:04 AM4/5/19
to Python Programming for Autodesk Maya
Thank you for your reply Marcus,

I have all dependencies... It's possible glew is now incompatible with maya 2018.
A colleague try with glext and it's works for her plugin. I try with my plugin now.

Marcus Ottosson

unread,
Apr 5, 2019, 3:19:00 AM4/5/19
to python_in...@googlegroups.com
Maya 2018 switched from VS2012 to VS2015, so if the GLEW binary was built for Maya 2017 and before, it's quite likely it will need to be recompiled with VS2015.


--
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 python_inside_m...@googlegroups.com.

Rémi Deletrain

unread,
Apr 8, 2019, 4:18:18 AM4/8/19
to Python Programming for Autodesk Maya
Hi Marcus,

Ok I try that.
I try with glext too.

Rémi Deletrain

unread,
Apr 8, 2019, 5:13:16 AM4/8/19
to Python Programming for Autodesk Maya
Ho yeah it's works when I build glew with VS2015.
Thank you Marcus

Marcus Ottosson

unread,
Apr 8, 2019, 5:31:16 AM4/8/19
to python_in...@googlegroups.com
Happy to help

On Mon, 8 Apr 2019 at 10:13, Rémi Deletrain <remi.de...@gmail.com> wrote:
Ho yeah it's works when I build glew with VS2015.
Thank you Marcus

--
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 python_inside_m...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages