Closed smearumi closed 7 years ago
OpenCV => 3.3.0 opencv_contrib-master
You should keep codebases synchronized.
@alalek Sorry, I'll keep codebases synchronized next time. Already I've edited the issue.
@alalek I use opencv_contrib-master, but still get the same errors.
@smearumi Have you solved this problem? I am still in trouble...
@Curiouschild Not yet with all modules but have successfully installed by excluding some modules. Please check below:
[rumi@localhost opencv-3.3.0]$ mkdir build
[rumi@localhost opencv-3.3.0]$ cd build
[rumi@localhost build]$
[rumi@localhost build]$ cmake -D WITH_TBB=ON -D WITH_EIGEN=ON ..
[rumi@localhost build]$ cmake -D BUILD_DOCS=ON -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF ..
[rumi@localhost build]$ cmake -D WITH_OPENCL=OFF -D WITH_CUDA=OFF -D BUILD_opencv_gpu=OFF -D BUILD_opencv_gpuarithm=OFF -D BUILD_opencv_gpubgsegm=OFF -D BUILD_opencv_gpucodec=OFF -D BUILD_opencv_gpufeatures2d=OFF -D BUILD_opencv_gpufilters=OFF -D BUILD_opencv_gpuimgproc=OFF -D BUILD_opencv_gpulegacy=OFF -D BUILD_opencv_gpuoptflow=OFF -D BUILD_opencv_gpustereo=OFF -D BUILD_opencv_gpuwarping=OFF ..
[rumi@localhost build]$ cmake -D WITH_FFMPEG=ON -D WITH_OPENMP=ON -D WITH_GSTREAMER=ON ..
[rumi@localhost build]$ cmake \
-D OPENCV_EXTRA_MODULES_PATH=/home/rumi/cv2/opencv_contrib-master/modules \
-D BUILD_opencv_matlab=OFF \
-D BUILD_opencv_text=OFF \
-D BUILD_opencv_aruco=OFF \
-D BUILD_opencv_bgsegm=OFF \
-D BUILD_opencv_ccalib=OFF \
-D BUILD_opencv_cnn_3dobj=OFF \
-D BUILD_opencv_contrib_world=OFF \
-D BUILD_opencv_cvv=OFF \
-D BUILD_opencv_datasets=OFF \
-D BUILD_opencv_dnns_easily_fooled=OFF \
-D BUILD_opencv_dpm=OFF \
-D BUILD_opencv_freetype=OFF \
-D BUILD_opencv_hdf=OFF \
-D BUILD_opencv_line_descriptor=OFF \
-D BUILD_opencv_matlab=OFF \
-D BUILD_opencv_optflow=OFF \
-D BUILD_opencv_phase_unwrapping=OFF \
-D BUILD_opencv_plot=OFF \
-D BUILD_opencv_reg=OFF \
-D BUILD_opencv_rgbd=OFF \
-D BUILD_opencv_saliency=OFF \
-D BUILD_opencv_sfm=OFF \
-D BUILD_opencv_stereo=OFF \
-D BUILD_opencv_structured_light=OFF \
-D BUILD_opencv_surface_matching=OFF \
-D BUILD_opencv_xfeatures2d=OFF \
-D BUILD_opencv_ximgproc=OFF \
-D BUILD_opencv_xobjdetect=OFF \
-D BUILD_opencv_xphoto=OFF \
/home/rumi/cv2/opencv-3.3.0/ ..
[rumi@localhost build]$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
[rumi@localhost build]$ make
[rumi@localhost build]$ sudo make install
N. B. you have to replace files locations eg. replace "/home/rumi/cv2/..." with your files locations.
I'm still facing the issue. And I'm not really sure about the "keep codebases synchronized". I have just cloned the repo and checkout the commit for opencv version 3.3.0 and cloned the repo of opencv_contrib in branch master. The error persists.
opencv version 3.3.0 opencv_contrib in branch master
Compatibility of different versions opencv/opencv_contrib is not supported.
I have exactly what you say, and the build still fails.
Actually mistake is highlighted above.
It should be:
Usage questions should go to Users OpenCV Q/A forum: http://answers.opencv.org
Ohhhh! Ok thanks! I get it now!
@mora260 have you already solved this problam after using opencv_contrib-3.3.0?
@luuuyi After I changed opencv_contrib(master) to opencv_contrib-3.3.0, it works.
System information (version)
Detailed description
My steps for installing opencv with opencv_contrib:
Please let me know if I've done anything wrong regarding installation.
Steps to reproduce