yccyenchicheng / AutoSDF

233 stars 29 forks source link

Error while loading shared libraries: libtbb_preview.so.2 #12

Closed wangwhTj closed 2 years ago

wangwhTj commented 2 years ago

Hi,

Thanks for releasing the code! It is magnificent work that we wish to follow and reproduce first. But we encountered some issues with the configuration of the Library Path as follows:

(running demo of demo_shape_comp.ipynb) Error: export_mesh: tmp/for_sdf/norm_mesh/chair_model/pc_norm.obj command: ./preprocess/isosurface/computeDistanceField tmp/for_sdf/norm_mesh/chair_model/pc_norm.obj 256 256 256 -s -e 1.3 -o 0.dist -m 1 -c ./preprocess/isosurface/computeDistanceField: error while loading shared libraries: libtbb_preview.so.2: cannot open shared object file: No such file or directory command: mv 0.dist tmp/for_sdf/sdf/chair_model/isosurf.sdf mv: cannot stat '0.dist': No such file or directory

It seems we do not have the library path configured correctly. But how could I find the correct link to such a library? (We work on Ubuntu 18.04 on a cluster server.)

Any idea on solving this would be appreciated!

Thanks!

yccyenchicheng commented 2 years ago

Hi @wangwhTj,

Seems like you don't have libtbb_preview.so.2 installed. Can you try sudo apt-get install libtbb2 and run the command again? Thanks!

wangwhTj commented 2 years ago

Hi,

Many thanks for your help! I run sudo apt-get install libtbb2 and have libbtbb.so.2 installed. But the issue of libtbb_preview.so.2 Not Found still exists.

Then I try to add a link libtbb.so.2 to libtbb_preview.so.2 as follows and it runs normally! sudo ln -s /usr/lib/x86_64-linux-gnu/libtbb.so.2 /usr/lib/x86_64-linux-gnu/libtbb_preview.so.2

Thanks!