Skip to content

Setting up your development environment

Andrés Solís Montero edited this page Oct 22, 2015 · 11 revisions

Requirements

Before using the vivaVideo base project, you need to install the OpenCV library and CMake tool for your platform:

  • OpenCV (recommended version 2.4.xx)
  • CMake (recommended version > 3.2.x)

After installing OpenCV and CMake, clone the vivaVideo repository:

https://github.com/asolis/vivaVideo.git

Assuming you cloned the git repository in a vivaVideo folder inside your home folder:

  • Mac: /Users/username/vivaVideo
  • Linux: /home/username/vivaVideo
  • Windows: C:\Users\username\vivaVideo

(username is your system username)

###CMake

Open the CMake GUI and point the source code to your working copy path:

e.g. /Users/username/vivaVideo

Point CMake's build folder (i.e. "Where to build the binaries") to a build folder path:

e.g. /Users/username/vivaVideo/build/

CMake will ask for permission to create the build folder for you if it doesn't exist. Click yes.

Add OpenCV to your vivaVideo project

Click the Configure button and specify the generator for this project (e.g. Xcode, Visual Studio, make files, ... etc)

Point the OpenCV_DIR variable to your installed OpenCV folder containing these files:

  • OpenCVConfig-version.cmake
  • OpenCVConfig.cmake

Click the Configure button again and make sure CMake finds your OpenCV installation.

Click the Generate button.

if everything went OK you will see the following messages

Project name: vivaVideo

Configuring done

Generating done

Your built project is now created inside your build folder.

Development Environments