Using CMAKE gui, after first configure, I set the OPENCV_EXTRA_MODULES_PATH and check OPENCV_ENABLE_NONFREE.
Short Error:
CMake Error at cmake/OpenCVModule.cmake:352 (message):
Duplicated modules NAMES has been found
Call Stack (most recent call first):
cmake/OpenCVModule.cmake:370 (_assert_uniqueness)
modules/CMakeLists.txt:7 (ocv_glob_modules)
see attached files for details
CMakeError.log
CMakeOutput.log
follow OpenCV CMAKE Gui Tutorial, and Contrib Gui Tutorial in README
You must use code from the same branch name.
is "master" on each not good enough?
i am facing the same problem any suggestion please
Just delete those folders in the opencv_contrib\modules folder but you are probaly out of synch. I had the same problem. Pulled again opencv and everything is fixed now.
I met the same problem, and I solved it. My opencv version is 3.4
git clone https://github.com/opencv/opencv_contrib.git
cd opencv_contrib
git checkout 3.4
I met the same problem, and I solved it. My opencv version is 3.4
git clone https://github.com/opencv/opencv_contrib.git
cd opencv_contrib
git checkout 3.4
It worked for me, thanks a lot !
You should do it also for the opencv directory from git, the same:
cd opencv
git checkout 3.4
From the build log, it will report the error:
error C2065: 'off64_t': undeclared identifier
but it will be solved by the same action. It still works on 2019/9/5.
You must use code from the same branch name.
It would be more precise to say:
We must use code from the same tag name.
For example:
cd ~/work
git clone https://github.com/opencv/opencv
cd opencv
git checkout -b 4.4.0 4.4.0
cd ..
git clone https://github.com/opencv/opencv_contrib
cd opencv_contrib
git checkout -b 4.4.0 4.4.0
I met the same problem, and I solved it. My opencv version is 3.4
git clone https://github.com/opencv/opencv_contrib.git
cd opencv_contrib
git checkout 3.4
Worked for me! Thanks!
Most helpful comment
I met the same problem, and I solved it. My opencv version is 3.4
git clone https://github.com/opencv/opencv_contrib.git
cd opencv_contrib
git checkout 3.4