OpenSfM icon indicating copy to clipboard operation
OpenSfM copied to clipboard

Build Error on macOS

Open dozer8383 opened this issue 1 year ago • 0 comments

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.```

dozer8383 avatar Aug 20 '24 21:08 dozer8383