Home Error compiling opencv 3.0.0. "recipe for target 'bin/opencv_perf_reg' failed"
Reply: 0

Error compiling opencv 3.0.0. "recipe for target 'bin/opencv_perf_reg' failed"

user8933
1#
user8933 Published in July 17, 2018, 7:54 am

I'm getting an error building opencv 3.0.0 in Ubuntu 16.04 after running make -j8. This is the complete error:

CMakeFiles/opencv_perf_reg.dir/perf/perf_reg.cpp.o: In function `perfShift(cv::Mat const&)':
perf_reg.cpp:(.text._Z9perfShiftRKN2cv3MatE+0xb8): undefined reference to `cv::reg::MapShift::MapShift(cv::Vec<double, 2> const&)'
perf_reg.cpp:(.text._Z9perfShiftRKN2cv3MatE+0xca): undefined reference to `cv::reg::Map::warp(cv::Mat const&, cv::Mat&) const'
perf_reg.cpp:(.text._Z9perfShiftRKN2cv3MatE+0xd2): undefined reference to `cv::reg::MapperGradShift::MapperGradShift()'
perf_reg.cpp:(.text._Z9perfShiftRKN2cv3MatE+0xdf): undefined reference to `cv::reg::MapperPyramid::MapperPyramid(cv::reg::Mapper const&)'
perf_reg.cpp:(.text._Z9perfShiftRKN2cv3MatE+0x108): undefined reference to `cv::reg::MapperPyramid::calculate(cv::Mat const&, cv::Mat const&, cv::Ptr<cv::reg::Map>&) const'
perf_reg.cpp:(.text._Z9perfShiftRKN2cv3MatE+0x119): undefined reference to `typeinfo for cv::reg::MapShift'
perf_reg.cpp:(.text._Z9perfShiftRKN2cv3MatE+0x11e): undefined reference to `typeinfo for cv::reg::Map'
perf_reg.cpp:(.text._Z9perfShiftRKN2cv3MatE+0x14d): undefined reference to `cv::reg::MapperGradShift::~MapperGradShift()'
perf_reg.cpp:(.text._Z9perfShiftRKN2cv3MatE+0x157): undefined reference to `cv::reg::MapShift::~MapShift()'
perf_reg.cpp:(.text._Z9perfShiftRKN2cv3MatE+0x1ad): undefined reference to `cv::reg::MapperGradShift::~MapperGradShift()'
perf_reg.cpp:(.text._Z9perfShiftRKN2cv3MatE+0x1b7): undefined reference to `cv::reg::MapShift::~MapShift()'
CMakeFiles/opencv_perf_reg.dir/perf/perf_reg.cpp.o: In function `perfEuclidean(cv::Mat const&)':
perf_reg.cpp:(.text._Z13perfEuclideanRKN2cv3MatE+0xe7): undefined reference to `cv::reg::MapAffine::MapAffine(cv::Matx<double, 2, 2> const&, cv::Vec<double, 2> const&)'
perf_reg.cpp:(.text._Z13perfEuclideanRKN2cv3MatE+0xfc): undefined reference to `cv::reg::Map::warp(cv::Mat const&, cv::Mat&) const'
perf_reg.cpp:(.text._Z13perfEuclideanRKN2cv3MatE+0x104): undefined reference to `cv::reg::MapperGradEuclid::MapperGradEuclid()'
perf_reg.cpp:(.text._Z13perfEuclideanRKN2cv3MatE+0x111): undefined reference to `cv::reg::MapperPyramid::MapperPyramid(cv::reg::Mapper const&)'
perf_reg.cpp:(.text._Z13perfEuclideanRKN2cv3MatE+0x13d): undefined reference to `cv::reg::MapperPyramid::calculate(cv::Mat const&, cv::Mat const&, cv::Ptr<cv::reg::Map>&) const'
perf_reg.cpp:(.text._Z13perfEuclideanRKN2cv3MatE+0x152): undefined reference to `typeinfo for cv::reg::MapAffine'
perf_reg.cpp:(.text._Z13perfEuclideanRKN2cv3MatE+0x157): undefined reference to `typeinfo for cv::reg::Map'
perf_reg.cpp:(.text._Z13perfEuclideanRKN2cv3MatE+0x1ae): undefined reference to `cv::reg::MapperGradEuclid::~MapperGradEuclid()'
perf_reg.cpp:(.text._Z13perfEuclideanRKN2cv3MatE+0x1b8): undefined reference to `cv::reg::MapAffine::~MapAffine()'
perf_reg.cpp:(.text._Z13perfEuclideanRKN2cv3MatE+0x22e): undefined reference to `cv::reg::MapperGradEuclid::~MapperGradEuclid()'
perf_reg.cpp:(.text._Z13perfEuclideanRKN2cv3MatE+0x238): undefined reference to `cv::reg::MapAffine::~MapAffine()'
CMakeFiles/opencv_perf_reg.dir/perf/perf_reg.cpp.o: In function `perfSimilarity(cv::Mat const&)':
perf_reg.cpp:(.text._Z14perfSimilarityRKN2cv3MatE+0xe7): undefined reference to `cv::reg::MapAffine::MapAffine(cv::Matx<double, 2, 2> const&, cv::Vec<double, 2> const&)'
perf_reg.cpp:(.text._Z14perfSimilarityRKN2cv3MatE+0xfc): undefined reference to `cv::reg::Map::warp(cv::Mat const&, cv::Mat&) const'
perf_reg.cpp:(.text._Z14perfSimilarityRKN2cv3MatE+0x104): undefined reference to `cv::reg::MapperGradSimilar::MapperGradSimilar()'
perf_reg.cpp:(.text._Z14perfSimilarityRKN2cv3MatE+0x111): undefined reference to `cv::reg::MapperPyramid::MapperPyramid(cv::reg::Mapper const&)'
perf_reg.cpp:(.text._Z14perfSimilarityRKN2cv3MatE+0x13d): undefined reference to `cv::reg::MapperPyramid::calculate(cv::Mat const&, cv::Mat const&, cv::Ptr<cv::reg::Map>&) const'
perf_reg.cpp:(.text._Z14perfSimilarityRKN2cv3MatE+0x152): undefined reference to `typeinfo for cv::reg::MapAffine'
perf_reg.cpp:(.text._Z14perfSimilarityRKN2cv3MatE+0x157): undefined reference to `typeinfo for cv::reg::Map'
perf_reg.cpp:(.text._Z14perfSimilarityRKN2cv3MatE+0x1ae): undefined reference to `cv::reg::MapperGradSimilar::~MapperGradSimilar()'
perf_reg.cpp:(.text._Z14perfSimilarityRKN2cv3MatE+0x1b8): undefined reference to `cv::reg::MapAffine::~MapAffine()'
perf_reg.cpp:(.text._Z14perfSimilarityRKN2cv3MatE+0x22e): undefined reference to `cv::reg::MapperGradSimilar::~MapperGradSimilar()'
perf_reg.cpp:(.text._Z14perfSimilarityRKN2cv3MatE+0x238): undefined reference to `cv::reg::MapAffine::~MapAffine()'
CMakeFiles/opencv_perf_reg.dir/perf/perf_reg.cpp.o: In function `perfAffine(cv::Mat const&)':
perf_reg.cpp:(.text._Z10perfAffineRKN2cv3MatE+0xe7): undefined reference to `cv::reg::MapAffine::MapAffine(cv::Matx<double, 2, 2> const&, cv::Vec<double, 2> const&)'
perf_reg.cpp:(.text._Z10perfAffineRKN2cv3MatE+0xfc): undefined reference to `cv::reg::Map::warp(cv::Mat const&, cv::Mat&) const'
perf_reg.cpp:(.text._Z10perfAffineRKN2cv3MatE+0x104): undefined reference to `cv::reg::MapperGradAffine::MapperGradAffine()'
perf_reg.cpp:(.text._Z10perfAffineRKN2cv3MatE+0x111): undefined reference to `cv::reg::MapperPyramid::MapperPyramid(cv::reg::Mapper const&)'
perf_reg.cpp:(.text._Z10perfAffineRKN2cv3MatE+0x13d): undefined reference to `cv::reg::MapperPyramid::calculate(cv::Mat const&, cv::Mat const&, cv::Ptr<cv::reg::Map>&) const'
perf_reg.cpp:(.text._Z10perfAffineRKN2cv3MatE+0x152): undefined reference to `typeinfo for cv::reg::MapAffine'
perf_reg.cpp:(.text._Z10perfAffineRKN2cv3MatE+0x157): undefined reference to `typeinfo for cv::reg::Map'
perf_reg.cpp:(.text._Z10perfAffineRKN2cv3MatE+0x1ae): undefined reference to `cv::reg::MapperGradAffine::~MapperGradAffine()'
perf_reg.cpp:(.text._Z10perfAffineRKN2cv3MatE+0x1b8): undefined reference to `cv::reg::MapAffine::~MapAffine()'
perf_reg.cpp:(.text._Z10perfAffineRKN2cv3MatE+0x22e): undefined reference to `cv::reg::MapperGradAffine::~MapperGradAffine()'
perf_reg.cpp:(.text._Z10perfAffineRKN2cv3MatE+0x238): undefined reference to `cv::reg::MapAffine::~MapAffine()'
CMakeFiles/opencv_perf_reg.dir/perf/perf_reg.cpp.o: In function `perfProjective(cv::Mat const&)':
perf_reg.cpp:(.text._Z14perfProjectiveRKN2cv3MatE+0x109): undefined reference to `cv::reg::MapProjec::MapProjec(cv::Matx<double, 3, 3> const&)'
perf_reg.cpp:(.text._Z14perfProjectiveRKN2cv3MatE+0x121): undefined reference to `cv::reg::Map::warp(cv::Mat const&, cv::Mat&) const'
perf_reg.cpp:(.text._Z14perfProjectiveRKN2cv3MatE+0x129): undefined reference to `cv::reg::MapperGradProj::MapperGradProj()'
perf_reg.cpp:(.text._Z14perfProjectiveRKN2cv3MatE+0x136): undefined reference to `cv::reg::MapperPyramid::MapperPyramid(cv::reg::Mapper const&)'
perf_reg.cpp:(.text._Z14perfProjectiveRKN2cv3MatE+0x162): undefined reference to `cv::reg::MapperPyramid::calculate(cv::Mat const&, cv::Mat const&, cv::Ptr<cv::reg::Map>&) const'
perf_reg.cpp:(.text._Z14perfProjectiveRKN2cv3MatE+0x177): undefined reference to `typeinfo for cv::reg::MapProjec'
perf_reg.cpp:(.text._Z14perfProjectiveRKN2cv3MatE+0x17c): undefined reference to `typeinfo for cv::reg::Map'
perf_reg.cpp:(.text._Z14perfProjectiveRKN2cv3MatE+0x26b): undefined reference to `cv::reg::MapperGradProj::~MapperGradProj()'
perf_reg.cpp:(.text._Z14perfProjectiveRKN2cv3MatE+0x278): undefined reference to `cv::reg::MapProjec::~MapProjec()'
perf_reg.cpp:(.text._Z14perfProjectiveRKN2cv3MatE+0x2e2): undefined reference to `cv::reg::MapperGradProj::~MapperGradProj()'
perf_reg.cpp:(.text._Z14perfProjectiveRKN2cv3MatE+0x2ef): undefined reference to `cv::reg::MapProjec::~MapProjec()'
collect2: error: ld returned 1 exit status
modules/reg/CMakeFiles/opencv_perf_reg.dir/build.make:159: recipe for target 'bin/opencv_perf_reg' failed
make[2]: *** [bin/opencv_perf_reg] Error 1
CMakeFiles/Makefile2:3600: recipe for target 'modules/reg/CMakeFiles/opencv_perf_reg.dir/all' failed
make[1]: *** [modules/reg/CMakeFiles/opencv_perf_reg.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Before that I successfully built opencv 3.4.0 with no errors. For compatibility reasons, I need 3.0.0 now. I think I removed everything related to the previous version.

I'm using the following commands to build it:

cmake -DCMAKE_BUILD_TYPE=Release -DWITH_TBB=ON -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib location>/modules ..

and then:

make -j8

where I get the above errors.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.373757 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO