Skip to content

Instantly share code, notes, and snippets.

@pashamray
Last active May 11, 2018 15:05
Show Gist options
  • Save pashamray/901527d542ce2040eebefae6b7fd8bfa to your computer and use it in GitHub Desktop.
Save pashamray/901527d542ce2040eebefae6b7fd8bfa to your computer and use it in GitHub Desktop.

Сборка OpenCV под Windows 7

Скачать и установить:

Python 3.6.5

Gstreamer-1.12.0

Gstreamer-devel-1.12.0

OpenCV 3.4.0

opencv_contrib

Cmake

Microsoft Build Tools 2015

Visual Studio Community

Сборка

Добавить в переменную среды Path <disk>\gstreamer\1.0\x86\bin

Добавить переменную среды GSTREAMER_DIR со значением <disk>\gstreamer\1.0\x86

Перейти в папку C:\Program Files (x86)\Microsoft Visual C++ Build Tools

Запустить Visual C++ 2015 MSBuild Command Prompt

Перейти в папку OpenCV cd <disk>\opencv\build

Запустить cmake ..\sources

Открыть <disk>\opencv\build\OpenCV.sln в Visual Studio

Собрать проект Меню -> Сборка -> Собрать решение

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment