OpenSfM icon indicating copy to clipboard operation
OpenSfM copied to clipboard

Unable to run demo on M1 Mac - symbol not found for ceres

Open justin-wong-ce opened this issue 2 years ago • 0 comments

I am trying to build and run OpenSFM on a M1 Mac, I had some issues with building but I referenced #971 and I could build successfully. However, now I get this when I try running ./bin/opensfm_run_all data/berlin:

Traceback (most recent call last):
  File "/Users/XXXX/OpenSFM/bin/opensfm_main.py", line 9, in <module>
    from opensfm import commands
  File "/Users/XXXX/OpenSFM/opensfm/__init__.py", line 1, in <module>
    from opensfm import pybundle
ImportError: dlopen(/Users/XXXX/OpenSFM/opensfm/pybundle.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace '__ZN5ceres10Covariance7ComputeERKSt6vectorISt4pairIPKdS4_ESaIS5_EEPNS_7ProblemE'

This seems to be something to do with ceres, but I couldnt solve it. I am using homebrew and everything are either linked or in /opt/homebrew directories.

Any help will be greatly appreciated 🙏

justin-wong-ce avatar Feb 13 '23 01:02 justin-wong-ce