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.

古いMacMiniでOpenCV環境整えメモ

Last updated at Posted at 2020-05-30

●記載はじめ
2020/5/30

●MacOSバージョン
10.9.5 Mavericks

●Xcodeバージョン
6.1

developer.apple.com/download/more
から

●HomeBrewのインストール
https://brew.sh/index_ja

●Python 3.6
https://www.python.org/downloads/mac-osx/
Python 3.6.6 - June 27, 2018
Download macOS 64-bit installer

●opencv のインストールでエラー
brew install opencv

Error: An unsatisfied requirement failed this build.

Warning: You are using macOS 10.9.
We (and Apple) do not provide support for this old version.

OSが古すぎるというWarningも出る。ですよね。

もう一つのワーニングをつぶす
brew cask install homebrew/cask-versions/adoptopenjdk8

こちらが、はいったら「brew install opencv」が通るようになった

pip install opencv-python
は通らなかったが

pip3 install opencv-python
は通った

export PYTHONPATH="/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/:$PYTHONPATH"

●import cv2 でエラー
python
import cv2
でエラーがでることから、 opnecv がインストールできてないことが判明

●brew install glib でエラー
brew install opencv
の途中の、glibのインストールで、失敗している

Error: Failed to download resource "glib"
Download failed: https://download.gnome.org/sources/glib/2.44/glib-2.44.1.tar.xz

このサイトに入れない

/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
glib.rb

url "https://download.gnome.org/sources/glib/2.64/glib-2.64.3.tar.xz"

url "http://ftp.gnome.org/pub/gnome/sources/glib/2.64/glib-2.64.3.tar.xz"
に、テキストエディタ修正したら、

通った

=== イマココ

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?