Comments (5)
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.
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.
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.
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.
@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)
- Desktop entries and mime types for MaterialX Graph Editor and View HOT 3
- Incomplete build or build failure with support of OpenImageIO HOT 5
- Web Viewer: When loading file that contains both surfacematerial and a nodegraph with single output, only one material is displayed HOT 3
- ESSL Shader generation COMPLETE and REDUCED options under/over expose uniforms
- SUG: Make Web Viewer more known publicly HOT 3
- WebViewer: Drag+Drop of materials with image dependencies does not work
- SUG: Add limits to standard library nodes for UI HOT 2
- MaterialX Node Editor Suggestion: Handle Nodegraph Implementations in Non-Library files.
- Add API call to convert channels attributes to nodes
- Add a default value input for geomcolor HOT 4
- Attribute `space` is ignored for `viewdirection` node HOT 1
- Versioning Numerics Of Some bxdf Nodes Incompatable With USD 23.08 HOT 4
- Names defined in MaterialX documents displace library names and cause strange behavior HOT 2
- Graph Editor: Deleting a node with multiple output does not update down-nodes properly
- Update UsdUVTexture to single-output signatures in 1.39
- Add support for disabled nodes in shader generation HOT 1
- Suggestion: Add way to determine MaterialX release used for shipped library / nodes HOT 2
- Suggestion: Publish MaterialX Core Javascript package
- Unable to create nodes with namespace in MaterialX Graph Editor
- UINAME in nodedefs does not work when namespace is used
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from materialx.