Ask Your Question
0

error in cmake while configuring opencv extra modules path

asked 2018-12-10 08:30:53 -0600

ihssane gravatar image

hi guys i got this error while i'm configuring the opencv extra modules path and I didn't know what to do cause I tried everything I can. hope I could find a solution here!

   calib3d
   core
 > cudaarithm
 > cudabgsegm
 > cudacodec
 > cudafeatures2d
 > cudafilters
 > cudaimgproc
 > cudalegacy
 > cudaobjdetect
 > cudaoptflow
 > cudastereo
 > cudawarping
 > cudev
   dnn
   features2d
   flann
   highgui
   imgcodecs
   imgproc
   java
   js
   ml
   objdetect
   photo
   python
 > shape
   stitching
 > superres
   ts
   video
   videoio
 > videostab
 > viz
   world
   aruco
   bgsegm
   bioinspired
   ccalib
   cnn_3dobj
 > cudaarithm
 > cudabgsegm
 > cudacodec
 > cudafeatures2d
 > cudafilters
 > cudaimgproc
 > cudalegacy
 > cudaobjdetect
 > cudaoptflow
 > cudastereo
 > cudawarping
 > cudev
   cvv
   datasets
   dnn_objdetect
   dpm
   face
   freetype
   fuzzy
   hdf
   hfs
   img_hash
   line_descriptor
   matlab
   optflow
   ovis
   phase_unwrapping
   plot
   reg
   rgbd
   saliency
   sfm
 > shape
   stereo
   structured_light
 > superres
   surface_matching
   text
   tracking
 > videostab
 > viz
   xfeatures2d
   ximgproc
   xobjdetect
   xphoto
CMake Error at cmake/OpenCVModule.cmake:354 (message):
  Duplicated modules NAMES has been found
Call Stack (most recent call first):
  cmake/OpenCVModule.cmake:372 (_assert_uniqueness)
  modules/CMakeLists.txt:7 (ocv_glob_modules)


Configuring incomplete, errors occurred!
See also "E:/BAW/9raya ya rabbak/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/CMakeFiles/CMakeOutput.log".
See also "E:/BAW/9raya ya rabbak/doctoral/bgslibrary-master/package_bgs/opencv-3.4.4/build/CMakeFiles/CMakeError.log".
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2018-12-10 09:09:50 -0600

berak gravatar image

updated 2018-12-10 10:35:51 -0600

this is clearly a version mismatch, you try to build latest master branch of opencv_contrib with opencv3.4.4 main.

(some modules were moved from main to contrib in opencv4, that's why you have duplicates, now) so,

  • either update your main opencv to master branch, too (this will remove the duplicates in main)
  • or use the 3.4.4 release from opencv_contrib (it does not have the duplicates).

again both repos need to have the exact same version !

edit flag offensive delete link more

Comments

ah alright, thank you, I will try that and see!

ihssane gravatar imageihssane ( 2018-12-10 10:29:18 -0600 )edit

admittedly a very confusing error msg, but: easy to cure ! ;)

berak gravatar imageberak ( 2018-12-10 10:31:43 -0600 )edit

please tell me how to update the main opencv to master branch?

ihssane gravatar imageihssane ( 2018-12-10 10:31:54 -0600 )edit

either: git pull https://github.com/opencv/opencvor: https://github.com/opencv/opencv/arch...

berak gravatar imageberak ( 2018-12-10 10:34:07 -0600 )edit
1

thank you for ur help best regards

ihssane gravatar imageihssane ( 2018-12-10 10:46:14 -0600 )edit

sorry if i take time from u, but could u help me to find the 3.4.4 release from opencv contrib?

ihssane gravatar imageihssane ( 2018-12-10 10:48:55 -0600 )edit
berak gravatar imageberak ( 2018-12-10 10:51:09 -0600 )edit

thnk u, it works very well.

ihssane gravatar imageihssane ( 2018-12-10 14:45:34 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-12-10 08:30:53 -0600

Seen: 6,909 times

Last updated: Dec 10 '18