OpenCV build Error

asked 2017-03-10 14:10:10 -0500

I'm having trouble getting OpenCV to build from source. I already managed to get rid of different Errors resulting from missing dependencies. Now I'm continuously getting the following error and can not manage to find what's causing it.

[ 35%] Linking CXX executable ../../bin/opencv_perf_core
../../lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `Imf_2_1::Chromaticities::Chromaticities(Imath_2_2::Vec2<float> const&, Imath_2_2::Vec2<float> const&, Imath_2_2::Vec2<float> const&, Imath_2_2::Vec2<float> const&)'
../../lib/libopencv_imgcodecs.so.3.2.0: undefined reference to `Imf_2_1::Header::Header(int, int, float, Imath_2_2::Vec2<float> const&, float, Imf_2_1::LineOrder, Imf_2_1::Compression)'
collect2: error: ld returned 1 exit status
modules/core/CMakeFiles/opencv_perf_core.dir/build.make:856: recipe for target 'bin/opencv_perf_core' failed
make[2]: *** [bin/opencv_perf_core] Error 1
CMakeFiles/Makefile2:1151: recipe for target 'modules/core/CMakeFiles/opencv_perf_core.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Has anybody an idea what could be causing this error? Thanks for your help

edit retag flag offensive close merge delete

Comments

What platform are you building on?

Kerry gravatar imageKerry ( 2017-03-10 16:54:52 -0500 )edit

OpenSUSE 42.2

BifbofII gravatar imageBifbofII ( 2017-03-11 01:48:40 -0500 )edit

I was going to suggest using the Maven build process located in platforms\maven however this is tailored for Debian flavours of Linux. If i get chance I will create an OpenSuSE VM and see how to build it there. Possiblity adapt the above to work in OpenSuSE.

Kerry gravatar imageKerry ( 2017-03-11 02:40:09 -0500 )edit