You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I'm working on ubuntu22.04. Tried different versions of ceres-solver (2.0, 2.1, 2.2) and different versions of opensfm (since the actual one doesn't even compile if you follow the documentation steps). Does someone knows a stable version (https://opensfm.readthedocs.io/en/stable/building.html following this does not work for me) of the dependencies to use, ceres-solver ...
After doing a bunch of things some people suggest (copying some files that someone deleted in a pushed commit, gtest, vlfeat, testing_main.cc) using ceres-solver-2.2, using another version of pyyaml (which is not the one in requirements.txt) I'm not able to build the project doing "python3 setup.py build". The compilation stops at 80% with the following error
So, I'm working on ubuntu22.04. Tried different versions of ceres-solver (2.0, 2.1, 2.2) and different versions of opensfm (since the actual one doesn't even compile if you follow the documentation steps). Does someone knows a stable version (https://opensfm.readthedocs.io/en/stable/building.html following this does not work for me) of the dependencies to use, ceres-solver ...
After doing a bunch of things some people suggest (copying some files that someone deleted in a pushed commit, gtest, vlfeat, testing_main.cc) using ceres-solver-2.2, using another version of pyyaml (which is not the one in requirements.txt) I'm not able to build the project doing "python3 setup.py build". The compilation stops at 80% with the following error
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:147:1: note: candidate expects 2 arguments, 3 provided
make[2]: *** [geometry/CMakeFiles/pygeometry.dir/build.make:76: geometry/CMakeFiles/pygeometry.dir/python/pybind.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:849: geometry/CMakeFiles/pygeometry.dir/all] Error 2
make[2]: *** [bundle/CMakeFiles/pybundle.dir/build.make:76: bundle/CMakeFiles/pybundle.dir/python/pybind.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:546: bundle/CMakeFiles/pybundle.dir/all] Error 2
make[2]: *** [robust/CMakeFiles/robust.dir/build.make:146: robust/CMakeFiles/robust.dir/src/instanciations.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:876: robust/CMakeFiles/robust.dir/all] Error 2
make[2]: *** [bundle/CMakeFiles/bundle_test.dir/build.make:76: bundle/CMakeFiles/bundle_test.dir/test/reprojection_errors_test.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:518: bundle/CMakeFiles/bundle_test.dir/all] Error 2
make: *** [Makefile:101: all] Error 2
Traceback (most recent call last):
File "/home/user/Documents/test_opensfm/OpenSfM/setup.py", line 60, in
build_c_extension()
File "/home/user/Documents/test_opensfm/OpenSfM/setup.py", line 54, in build_c_extension
subprocess.check_call(
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', '-j20']' returned non-zero exit status 2.
What does this even mean? I'm quite new at this.
Thank for the help in advance.
Edit I tried building both dockerfiles and the problem remains the same:
56.61 make[1]: *** [CMakeFiles/Makefile2:870: geometry/CMakeFiles/geometry_test.dir/all] Error 2
60.54 make[2]: *** [robust/CMakeFiles/robust.dir/build.make:128: robust/CMakeFiles/robust.dir/src/instanciations.cc.o] Error 1
60.54 make[1]: *** [CMakeFiles/Makefile2:954: robust/CMakeFiles/robust.dir/all] Error 2
81.23 [ 78%] Linking CXX static library libbundle.a
81.29 [ 78%] Built target bundle
81.29 make: *** [Makefile:95: all] Error 2
81.29 Configuring for python 3.8...
81.29 Compiling extension...
81.29 Traceback (most recent call last):
81.29 File "setup.py", line 60, in
81.29 build_c_extension()
81.29 File "setup.py", line 54, in build_c_extension
81.29 subprocess.check_call(
81.29 File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
81.29 raise CalledProcessError(retcode, cmd)
81.29 subprocess.CalledProcessError: Command '['make', '-j20']' returned non-zero exit status 2.
Dockerfile.ceres2:42
41 |
42 | >>> RUN pip3 install -r requirements.txt &&
43 | >>> python3 setup.py build
44 |
ERROR: failed to solve: process "/bin/sh -c pip3 install -r requirements.txt && python3 setup.py build" did not complete successfully: exit code: 1
What can be happening when linking libbundle.a that it fails?
Thanks in advance!
The text was updated successfully, but these errors were encountered: