0
1

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.

XcodeでOpenCVを導入〜ヘッダファイルがうまくincludeできなかったお話〜

Posted at

#開発環境

  • mac: Catalina 10.15.4
  • Xcode: 11.6 (11E708)
  • OpenCV: 4.4.0
  • Homebrew: 2.4.9

#参考記事
https://qiita.com/seaka829/items/2533fb71cabd8ae7fd58
http://shirashinomiya.hatenablog.com/entry/2018/07/26/212524
https://qiita.com/KakeruMasuda/items/49d369ab49fac5ea3eab

#やったことと起きた問題
 上の記事を参考に、homebrewからOpenCVをインストールし、ヘッダファイルのパスを確認し(下記)、Xcodeの[Build Settings]の[Header Search Paths]でそのパスを設定して、ソースコードをビルドし用とした。
 パスを設定したはずなのに「opencv2/opencv.hpp がねーぞ」と怒られ、ビルドができなかった。

/usr/local/Cellar/opencv/4.4.0/include

#解決策
 [System Header Search Paths]に同様の設定を施したら動くようになった。

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?