Failed to build on Apple Silicon
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.8k
- Forks
- 899
- PR merge metrics
- No merged PRs in 30d
Description
[ 53%] Building CXX object CMakeFiles/test_main.dir/testing_main.cc.o
In file included from /Users/offbeat/Projects/OpenSfM/opensfm/src/geometry/src/relative_pose.cc:1:
In file included from /Users/offbeat/Projects/OpenSfM/opensfm/src/geometry/relative_pose.h:4:
In file included from /Users/offbeat/ceres/usr/local/include/ceres/tiny_solver.h:57:
In file included from /opt/homebrew/include/eigen3/Eigen/Dense:1:
In file included from /opt/homebrew/include/eigen3/Eigen/Core:50:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/c++/v1/complex:932:12: error: no matching function for call to 'hypot'
return std::hypot(__c.real(), __c.imag());
^~~~~~~~~~
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Apple Silicon build and inspect the include chain from opensfm/src/geometry/src/relative_pose.cc through relative_pose.h and the Ceres and Eigen headers shown in the error. Confirm the cause of the std::hypot failure and verify that the OpenSfM build completes successfully on Apple Silicon.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp, macos
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100