Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 597 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 597 Bytes

sdl2-opencv

Copy frames captured with OpenCV to a SDL texture

Building

Assuming '$project_dir' is the directory where this project lives

Get OpenCV 3

  1. Download OpenCV and unzip somewhere
  2. Build it
    • cd $somewhere
    • mkdir build
    • cd build
    • cmake .. && cmake --build .

Get SDL 2

Download SDL 2 development libraries and unzip to '$project_dir\vendor\sdl2'

Build this project

  1. cd $project_dir
  2. mkdir build
  3. cd build
  4. cmake -DOpenCV_DIR=$somewhere/build .. && cmake --build .