sparsemap
sparsemap copied to clipboard
undefined symbol
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)
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.
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.