sparsemap icon indicating copy to clipboard operation
sparsemap copied to clipboard

undefined symbol

Open marcwww opened this issue 5 years ago • 1 comments

After running

python setup.py build_ext --inplace

When I try importing _sparsemap, an error occurs:

In [1]: import _sparsemap --------------------------------------------------------------------------- ImportError Traceback (most recent call last) in () ----> 1 import _sparsemap

ImportError: /home/kxwang/exp/sparsemap-master/python/sparsemap/_sparsemap.cpython-36m-x86_64-linux-gnu.so: undefined symbol: ZN3AD313GenericFactor17GetCorrespondenceEPSt6vectorIdSaIdEES4

In [2]:

What might be the reason? Thanks a lot.

marcwww avatar May 05 '19 15:05 marcwww

That is a symbol from AD3. It looks like your library is either not linked against AD3 or linked against an old version of AD3.

Try going to the AD3 dir, pulling a new version, make clean and make. Then, clean up all compiled files inside the sparsemap folder and try again.

vene avatar May 05 '19 15:05 vene