pmh47 / dirt

DIRT: a fast differentiable renderer for TensorFlow
MIT License
312 stars 63 forks source link

failed to load librasterise.so, 'NoneType' object has no attribute 'rasterise' #100

Open huangfaan opened 3 years ago

huangfaan commented 3 years ago

run the 'square_test.py', have a problem:

WARNING: failed to load librasterise.so; rasterisation functions will be unavailable: /home/nd/PycharmProjects/dirt-master/dirt/librasterise.so: cannot open shared object file: No such file or directory

AttributeError: 'NoneType' object has no attribute 'rasterise'

who can help me to answer?

pmh47 commented 3 years ago

This means that the install/build did not work correctly. I see you posted lots of comments on other issues, but it is not clear what is current status. Did you manage to install with pip, and fix the problem with EGL? Or did you check out dirt repo separately and build with cmake?

chenw191 commented 3 years ago

I solved it by changing cmake version to 3.10. https://cmake.org/cmake/help/git-stage/policy/CMP0104.html It seems that cmake 3.18 introduced something new and causes this error.