How do I build PyOpenVDB with Numpy support? #1149
-
I successfully built pyopenvdb in docker. But I'm unable to use How do I build PyOpenVDB with Numpy support? Thanks! 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Ok I solved my own issue. (Isn't it always like 45 min after you post the question? 🤦♂️) I used It might be helpful to add documentation about that variable in the build docs on openvdb.org |
Beta Was this translation helpful? Give feedback.
-
@jhnnsrs sure thing! There are some irrelevant install lines at the top you can ignore, but this is what worked for me. Hope this helps!
|
Beta Was this translation helpful? Give feedback.
Ok I solved my own issue. (Isn't it always like 45 min after you post the question? 🤦♂️)
I used
cmake -LA | grep -i numpy
to find theUSE_NUMPY
cmake variable. Adding that along with the python module variable,-D OPENVDB_BUILD_PYTHON_MODULE=ON -D USE_NUMPY=ON
built pyopenvdb with numpy support.It might be helpful to add documentation about that variable in the build docs on openvdb.org