Git Product home page Git Product logo

Comments (5)

jstone-lucasfilm avatar jstone-lucasfilm commented on May 14, 2024

Hi Nicholas! It's possible that you've found a real build issue, as we regularly build MaterialX Python across the matrix of Windows/Linux and Python 2.6/2.7, but we rely upon feedback from external developers on OSX. Let us know if you (or another member of the OSX development community) discover the source of the issue, and feel free to propose a fix.

from materialx.

selfshadow avatar selfshadow commented on May 14, 2024

After some digging around, it appears that Python can load the library binaries if they're *.so, rather than *.dylib.

@nyue: try adding the following lines to source/PyMaterialX/CMakeLists.txt (then run cmake etc. again):

if (APPLE)
set_target_properties(
    PyMaterialX
    PROPERTIES
    SUFFIX
    .so)
endif()

Hopefully that does the trick.

from materialx.

nyue avatar nyue commented on May 14, 2024

Confirm that the suffix was the issue.
I have not submitted a CLA yet so I won't do a pull request for the above.
I will do so next week when I get back to work and have access to a scanner for the CLA submission, if no one else beat me to that :-)

Cheers

from materialx.

jstone-lucasfilm avatar jstone-lucasfilm commented on May 14, 2024

Thanks Nicholas! Just to follow up on this thread, we've started the process of implementing this change at Lucasfilm, and we plan to submit a pull request once it's been vetted.

from materialx.

rutajoshi avatar rutajoshi commented on May 14, 2024

@selfshadow and @nyue - I'm having the same issue, but adding the set_target_properties line doesn't seem to work. PyMaterialX isn't recognized as a target. How did you resolve this issue, if you ran into it?

from materialx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.