Opencv_contrib: Error building OpenCV 3.3.0 with contrib

Created on 10 Sep 2017  Â·  2Comments  Â·  Source: opencv/opencv_contrib

System information (version)

  • OpenCV => 3.3.0
  • Operating System / Platform => Ubuntu 16.04 64bits
  • Compiler => g++ 5
Detailed description

When trying to build opencv with contrib, the following error comes up when executing make:

/usr/local/src/opencv_contrib-master/modules/ximgproc/src/dtfilter_cpu.inl.hpp: In constructor ‘cv::ximgproc::DTFilterCPU::ComputeA0DTVert_ParBody<GuideVec>::ComputeA0DTVert_ParBody(cv::ximgproc::DTFilterCPU&, cv::Mat&)’:
/usr/local/src/opencv_contrib-master/modules/ximgproc/src/dtfilter_cpu.inl.hpp:568:55: error: ‘traits’ has not been declared
     dtf.a0distVert.create(guide.rows - 1, guide.cols, traits::Type<DistVec>::value);
                                                       ^
/usr/local/src/opencv_contrib-master/modules/ximgproc/src/dtfilter_cpu.inl.hpp:568:75: error: expected primary-expression before ‘>’ token
     dtf.a0distVert.create(guide.rows - 1, guide.cols, traits::Type<DistVec>::value);
                                                                           ^
/usr/local/src/opencv_contrib-master/modules/ximgproc/src/dtfilter_cpu.inl.hpp:568:76: error: ‘::value’ has not been declared
     dtf.a0distVert.create(guide.rows - 1, guide.cols, traits::Type<DistVec>::value);
                                                                            ^
modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/build.make:166: recipe for target 'modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/domain_transform.cpp.o' failed
make[2]: *** [modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/domain_transform.cpp.o] Error 1
CMakeFiles/Makefile2:14221: recipe for target 'modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/all' failed
make[1]: *** [modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Steps to reproduce
mv opencv_contrib-master.zip /usr/local/src/
mv opencv-3.3.0.zip /usr/local/src/
cd /usr/local/src/
unzip opencv-3.3.0.zip 
unzip opencv_contrib-master.zip
mkdir opencv-3.3.0/release/ -p
cd opencv-3.3.0/release
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-master/modules ..
make
builinstall duplicate

Most helpful comment

You should keep source code bases of opencv/opencv_contrib synchronized. Different versions are not tested for compatibility and may not work.

BTW, future usage questions should go to Users OpenCV Q/A forum: http://answers.opencv.org

All 2 comments

You should keep source code bases of opencv/opencv_contrib synchronized. Different versions are not tested for compatibility and may not work.

BTW, future usage questions should go to Users OpenCV Q/A forum: http://answers.opencv.org

After I received your email, I saw the difference of versions.

Before that, it was not clear that version 3.3.0 is not the master version.

Thank you.

On Sun, Sep 10, 2017 at 6:03 PM, Alexander Alekhin <[email protected]

wrote:

Closed #1362 https://github.com/opencv/opencv_contrib/issues/1362.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/opencv/opencv_contrib/issues/1362#event-1242336040,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AML1XT29pLwLG07xLtNny2GNSgzNOUDWks5shE6ngaJpZM4PSc2B
.

--

Kempes J.

[email protected]

Was this page helpful?
0 / 5 - 0 ratings