Error with cmake and the opencv_contrib repository [closed]

asked 2018-11-22 03:23:36 -0500

martin.92 gravatar image

updated 2018-11-22 04:10:39 -0500

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 3.4.3 Win Pack

Link to opencv_contrib repository

I hope anyone has an idea why that error is occuring.

Thanks

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by berak
close date 2018-11-22 05:51:52.485134

Comments

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)

berak gravatar imageberak ( 2018-11-22 03:31:31 -0500 )edit

again, cmake-gui output please !

berak gravatar imageberak ( 2018-11-22 04:14:06 -0500 )edit
1

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!

martin.92 gravatar imagemartin.92 ( 2018-11-22 04:22:34 -0500 )edit

ok, let's see...

if it also compiles, then we have an answer here .....

berak gravatar imageberak ( 2018-11-22 04:24:44 -0500 )edit
1

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.

martin.92 gravatar imagemartin.92 ( 2018-11-22 05:48:21 -0500 )edit