Building On Windows
- Building with CLion
- Building with Visual Studio and CMake GUI
- Building with Visual Studio and CMake cmd line
Building With CLion IDE
- Open Project/Folder
- In Settings Panel in CMake section create a Release Build
- For CMake options set the following to ON or OFF based on what you want to build:
- -DBUILD_EXAMPLES=ON
- -DBUILD_EDITOR=ON
- -DBUILD_ENGINE=ON
- -DBUILD_PLUGINS=ON
- Then build all in release
Building With CMake and Visual Studio (GUI Method)
- Download CMake for Windows
- Run CMake GUI
Now set the build path and source directory:

Now Add Entry for the build type:

After adding the entry press the Configure button, set the checkboxes for which executable you want to build
Then press Configure again and then Generate

- Once complete it will generate a Visual Studio solution file in the Build dir that you can load: OpenCV_Dataflow_Framework.sln
- After opening the solution file in Visual Studio then build solution
Building With CMake and Visual Studio (Command Line Method)
- cd to the source path
- mkdir Build
- cd Build
- run the following command (Change the build options as desired):
cmake .. -DBUILD_EXAMPLES=OFF -DBUILD_EDITOR=ON -DBUILD_ENGINE=ON -DBUILD_PLUGINS=ON -DCMAKE_BUILD_TYPE=Release
- open Visual Studio project: OpenCV_Dataflow_Framework.sln
- Build Project
OpenCV Download
The CMake build script should automatically download and extract the pre-compiled binaries during the build initialization but if for some reason you run into an issue you can download and extract the file manually.
add the following build setting to CMake (change path to your extracted location):
-DOpenCV_DIR=c:\path\to\extracted\opencv\files