Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Adding contrib modules to OpenCV-3.4.1 without CMake

Hello! When trying to build project generated with CMake 3.11.0 I get an "Unable to start program C:\OpenCVcontrib\opencv\build\x64\Debug (or Release)\ALL_BUILD /// Access denied.". I've installed it according to this instruction.

What I want to do is to add module I want to a project created without using CMake. What I've tried is simply copying module (in this case tracking) folder to opencv2 folder and simply including it, but then I get errors in feature.hpp:

Severity    Code    Description Project File    Line    Suppression State
Error   C3646   'CV_OVERRIDE': unknown override specifier   cv_v1   c:\opencv-3.4.1\opencv\build\include\opencv2\tracking\feature.hpp   148

and

Severity    Code    Description Project File    Line    Suppression State
Error (active)  E0065   expected a ';'  cv_v1   c:\OpenCV-3.4.1\opencv\build\include\opencv2\tracking\feature.hpp   148

How I include tracking.hpp:

#include <opencv2/imgcodecs.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/tracking.hpp>

What should I do?

Adding contrib modules to OpenCV-3.4.1 without CMake

Hello! When trying to build project generated with CMake 3.11.0 I get an "Unable to start program C:\OpenCVcontrib\opencv\build\x64\Debug (or Release)\ALL_BUILD /// Access denied.". I've installed it according to this instruction.

SOLUTION: Stupid mistake. What I had to do was to select project I was working on as a StartUp project - CMake solution runs ALL_BUILD by default.

What I want to do is to add module I want to a project created without using CMake. What I've tried is simply copying module (in this case tracking) folder to opencv2 folder and simply including it, but then I get errors in feature.hpp:

Severity    Code    Description Project File    Line    Suppression State
Error   C3646   'CV_OVERRIDE': unknown override specifier   cv_v1   c:\opencv-3.4.1\opencv\build\include\opencv2\tracking\feature.hpp   148

and

Severity    Code    Description Project File    Line    Suppression State
Error (active)  E0065   expected a ';'  cv_v1   c:\OpenCV-3.4.1\opencv\build\include\opencv2\tracking\feature.hpp   148

How I include tracking.hpp:

#include <opencv2/imgcodecs.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/tracking.hpp>

What should I do?

Adding contrib modules to OpenCV-3.4.1 without CMake

Hello! When trying to build project generated with CMake 3.11.0 I get an "Unable to start program C:\OpenCVcontrib\opencv\build\x64\Debug (or Release)\ALL_BUILD /// Access denied.". I've installed it according to this instruction.

SOLUTION: Stupid mistake. What I had to do was to select project I was working on as a StartUp project - CMake solution runs ALL_BUILD by default.

What I want to do is to add module I want to a project created without using CMake. What I've tried is simply copying module (in this case tracking) folder to opencv2 folder and simply including it, but then I get errors in feature.hpp:

Severity    Code    Description Project File    Line    Suppression State
Error   C3646   'CV_OVERRIDE': unknown override specifier   cv_v1   c:\opencv-3.4.1\opencv\build\include\opencv2\tracking\feature.hpp   148

and

Severity    Code    Description Project File    Line    Suppression State
Error (active)  E0065   expected a ';'  cv_v1   c:\OpenCV-3.4.1\opencv\build\include\opencv2\tracking\feature.hpp   148

How I include tracking.hpp:

#include <opencv2/imgcodecs.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/tracking.hpp>

What should I do?do? SOLUTION: Absolutely not what I did (see comments).