sampotter / python-embree

Apache License 2.0
20 stars 7 forks source link

Installation in linux / ubuntu #13

Closed mbuehler1990 closed 3 years ago

mbuehler1990 commented 3 years ago

Thank you very much @sampotter for this package. I want to install this package in ubuntu but didn't manage to build the package here.

Did anyone try this and can help me?

Thank you very much!

When I import embree there is a error:

import embree
ImportError: libembree3.so.3: cannot open shared object file: No such file or directory

I installed embree in /usr/bin/embree with:

tar xzf embree-3.13.1.x86_64.linux.tar.gz
source embree-3.13.1.x86_64.linux/embree-vars.sh

and build the package with:

python3 setup.py build_ext -I/usr/bin/embree/embree-3.13.1.x86_64.linux/include -L /usr/bin/embree/embree-3.13.1.x86_64.linux/lib

xiangdonglai commented 3 years ago

I guess you also need to add /usr/bin/embree/embree-3.13.1.x86_64.linux/lib to the environment variable $LD_LIBRARY_PATH before you run Python.

sampotter commented 3 years ago

@mbuehler1990: Did @xiangdonglai's advice help? If so, I'm going to close this issue, since it's not really an issue related to python-embree, but how to install Embree correctly in a nonstandard path on Linux.

mbuehler1990 commented 3 years ago

@xiangdonglai Yes thank you very much! That was the missing thing....

If anyone works with docker, I made an image with ubuntu 20.04, python 3.8.10, embree-3.13.1, and python-embree here:

docker pull maxxiking/embree3:1.0.2

sampotter commented 3 years ago

Great, thanks!