mapillary / OpenSfM

Open source Structure-from-Motion pipeline
https://www.opensfm.org/
BSD 2-Clause "Simplified" License
3.42k stars 861 forks source link

Build Error on macOS #1065

Open dozer8383 opened 3 months ago

dozer8383 commented 3 months ago

When I run python3 setup.py build, it builds for quite a while (with plenty of warnings and a few errors) until it finally just stops with this error: [there are a lot of warnings before this, but below is where it stops dead]


[ 35%] Built target akaze
[ 36%] Linking C static library libvl.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libvl.a(mathop_avx.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libvl.a(mathop_avx.c.o) has no symbols
32 warnings generated.
[ 36%] Built target vl
[ 37%] Linking CXX static library libgtest.a
[ 37%] Built target gtest
make: *** [all] Error 2
Traceback (most recent call last):
  File "/Users/jackm/OpenSfM/setup.py", line 60, in <module>
    build_c_extension()
  File "/Users/jackm/OpenSfM/setup.py", line 54, in build_c_extension
    subprocess.check_call(
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', '-j4']' returned non-zero exit status 2.```