Добавить в переменную среды 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
Собрать проект Меню -> Сборка -> Собрать решение