0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

[メモ] openMVGのmacOSでのビルド

Posted at

OpenMVGはStructure from Motion (SfM)のライブラリである。画像セットから3Dモデルを作るのに利用される。
基本的なビルド方法はOpenMVGのサイトにあるのだが、macOS Catalina(ver.10.15.7)でビルドする時に、ちょっとひっかっかったのでメモ。

monoを入れていると、ここと同じ問題にぶつかるので、monoをアンインストールする。
Uninstalling Mono on macOSを参考に、

sudo rm -rf /Library/Frameworks/Mono.framework
sudo pkgutil --forget com.xamarin.mono-MDK.pkg
sudo rm /etc/paths.d/mono-commands

clangだと"fatal error: 'omp.h' file not found"と言われて、ここと同じ問題にぶつかるので、結局、以下の様にしてビルド。

$ git clone --recursive https://github.com/openMVG/openMVG.git
$ mkdir openMVG_Build
$ cd openMVG_Build
$ cmake -DCMAKE_BUILD_TYPE=RELEASE -DOpenMVG_USE_OPENMP=OFF -G "Xcode" . ../openMVG/src/
$ xcodebuild -configuration Release

openMVGもopenMVSもVCPKGに対応しているので、VCPKGをセットアップしてあれば、その方が簡単かもしれない。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?