Building "Tracking" module in OpenCV extra modules with Cmake does not generate relevant headers of that module
I am not able to get a working custom build for implementation of some OpenCV sample motion tracking examples which requires the module "tracking" part of opencv_contrib. I tried to custom build on on VC12.0 x64 on windows. But it does not generate headers like tracking.hpp and tracker.hpp specific to tracking inside its own folder (C:\OpenCV\build\install\include\opencv2\tracking) like in the case of all other extra modules.
I followed the building procedure as here
My ultimate aim is to run the sample: tutorial_introduction_to_tracker.cpp found here.
Any assistance would be appreciated.
I don't know why there is a problem but you can try to copy opencv_contrib\modules\tracking\include\opencv2.
Try to build only opencv_tracking in VS 2012 to check if there is an error
Error 1 error LNK2001: unresolved external symbol "public: static struct cv::Ptr<class cv::tracker=""> __cdecl cv::Tracker::create(class cv::String const &)" (?create@Tracker@cv@@SA?AU?$Ptr@VTracker@cv@@@2@AEBVString@2@@Z) E:\OneDrive\Projects\Projects 3.1\tracking\tracking\Source1.obj tracking
Can you build opencv_tracking using visual studio solution?
Actually CMake does not build it.
I think there is a problem other module check if modules in CMakeLists.txt are present
try to enable the opencv_datasets module
(afaik, it's only needed for one of the samples, so it should be rather OPTIONAL, imho)
It does not work if I include datasets module.
Something is wrong in your install. You should delete everything (if it is possible) 0 cd \lib 1 git clone https://github.com/opencv/opencv.git
2 git clone https://github.com/opencv/opencv_cont...
3 run cmakegui:
where is source file = \lib\opencv
where to build \lib\opencv\build
4 press configure
5 give OPENCV_EXTRA_MODULES_PATH = \lib\opencv_contrib\modules
6 press generate
@LBerger Thanks for your help. But still unsuccessful. Here is the entire Cmake config file. here
My configuration : General configuration for OpenCV 3.1.0-dev ===================================== If you clone repo you should have dev
Version control: unknown
Extra modules: