MacにC言語版のOpenCVをインストールする方法がよくわからなくて困っています。
まず、そもそもの環境は書いておきますと、
- OXはEl'Capitan(10.11.5)
- 普通にC言語とPythonは使える環境。
- C言語のコンパイラは4.2.1 (?)
bash
1hiroshi-no-MacBook-Air:Pro-tr hiroshi$ gcc -dumpversion 24.2.1 3 4hiroshi-no-MacBook-Air:Pro-tr hiroshi$ gcc --version 5Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/c++/4.2.1 6Apple LLVM version 7.3.0 (clang-703.0.31) 7Target: x86_64-apple-darwin15.5.0 8Thread model: posix 9InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin 10
→このあたりよく理解していないので、調べたことをそのまま書いてみます。C++11がどうのこうのあるのかもしれないので。
- 関係ないと思いますが、python3は使えます。
- python3でOpenCVは使えます。
で質問としてはC言語版のOpenCV3もpython版のものをインストールしたときのように、brewにオプションをつけて
bash
1hiroshi-no-MacBook-Air:Pro-tr hiroshi$ brew install opencv3 --with-C++11
で、行けるんでしょうか?
その場合C++11ということなので、コンパイラの方もアップデートしなければいけないのでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/07/16 10:37