mapillary / mapillary/OpenSfM

Failed to build on Apple Silicon

Open
#1,056 1 comment 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.