Error with cmake and the opencv_contrib repository [closed]
Hello everyone,
I'm struggling with the including of opencv_contrib.
I'm using CMake 3.13.0, MinGW 8.1.0 64 Bit, OpenCV 3.4.3 and Eclipse 4.9 as IDE and everything goes fine, but I would like to use some of the functions, which are contributed by opencv_contrib. When I add "OPENCV_EXTRA_MODULES_PATH = C:/Users/... .../opencv_contrib-master/modules", by using the GUI of CMake, the following error occures.
"Error in configuration process, project files may be invalid"
The setting that has worked for building OpenCV 3.4.3 with CMake is:
WITH_IPP = OFF; WITH_TBB = OFF; WITH_MSMF = OFF; ENABLE_PRECOMPILED_HEADERS = OFF; CPU_DISPATCH = OFF;
Before I have used that flag setup, I wasn't even able to finish an successfull CMake build of OpenCV 3.4.3.
Here are the links to OpenCV 3.4.3 and the opencv_contrib version, that I'm using so far.
Link to opencv_contrib repository
I hope anyone has an idea why that error is occuring.
Thanks
you need exactly the same version for opencv and opencv_contrib !
so, if you have the 3.4.4 winpack (isit so, or is it 3.4.3 ? please clarify !), you need the 3.4.4 (or 3.4.3) branch from contrib, too (your contrib url links to the master branch, and that won't fit) ! https://github.com/opencv/opencv_cont...
also, please edit your question, and add the cmake output (AS TEXT !), so we can see more.
(your flags look all correct, btw)
again, cmake-gui output please !
Thank you for your quick response! I have fixed the link, it was meant to be OpenCV 3.4.3. There was no output, just a window above CMake with that error in it.
Your link helped me, now the CMake build was successfull! I really have searched for that but I have not found something different to the opencv_contrib-master repository. Thank you again!
ok, let's see...
if it also compiles, then we have an answer here .....
It has compiled successfully. I'm really grateful for your help, it seems like I only have had to search longer for the correct opencv_contrib.