radialsfm icon indicating copy to clipboard operation
radialsfm copied to clipboard

Build on M1 MacBook Pro

Open timduff35 opened this issue 2 years ago • 2 comments

@vlarsson @petrhruby97 I am now able to compile and link on my laptop using AppleClang 14.

The minimal changes I needed seem to be

  1. A few updates to the FLANN source, apparently related to a deprecated random_shuffle
  2. Updating CMakeLists to handle march=native.
  3. Needed to add #include <vector> to a few files in the radial_quadrifocal submodule, plus a link to my fork here.

I presume not all of this should be merged. But it will help me remember how to compile, so I'll mark it as a draft for now.

timduff35 avatar Jun 25 '23 22:06 timduff35

Thanks for looking into it! I will see if I can set it up to compile on my M1.

Did you figure out what the issue was linking with boost?

vlarsson avatar Jun 27 '23 05:06 vlarsson

No idea, unfortunately. Those errors remain if instead try compiling with gcc/g++ 13.

timduff35 avatar Jun 27 '23 16:06 timduff35