pyceres icon indicating copy to clipboard operation
pyceres copied to clipboard

ImportError: libglog.so.1: cannot open shared object file: No such file or directory

Open hugh404 opened this issue 1 year ago • 1 comments

I installed gflags (sudo), and glog (version 0.6.0, installed using source code compilation), then installed Ceres Solver (latest) using source code compilation, and then installed pyceres (clone and python -m pip install .) then installed colmap (latest version) and finally pycolmap. I ran the test_BA.ipynb of examples in pycharm, and the following error occurred:


ImportError Traceback (most recent call last) Cell In[1], line 3 1 get_ipython().run_line_magic('load_ext', 'autoreload') 2 get_ipython().run_line_magic('autoreload', '2') ----> 3 import pyceres 4 import pycolmap 5 import numpy as np

ImportError: libglog.so.1: cannot open shared object file: No such file or directory

hugh404 avatar Apr 24 '24 13:04 hugh404

Depending on where the glog library was installed, you might need to make it available, for example by running this in bash:

export LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}

sarlinpe avatar Apr 24 '24 14:04 sarlinpe

Depending on where the glog library was installed, you might need to make it available, for example by running this in bash:

export LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}

thanks!

hugh404 avatar May 28 '24 05:05 hugh404