Ask Your Question
0

make opencv-4.0.0 fails(SOLVED)

asked 2019-05-30 21:08:03 -0600

updated 2019-06-02 09:46:55 -0600

supra56 gravatar image

[ 32%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_intrin256.avx2.cpp.o [ 32%] Linking CXX executable ../../bin/opencv_test_core ../../lib/libopencv_imgcodecs.so.4.0.0: undefined reference to `WebPFree' collect2: error: ld returned 1 exit status modules/core/CMakeFiles/opencv_test_core.dir/build.make:659: recipe for target 'bin/opencv_test_core' failed make[2]: * [bin/opencv_test_core] Error 1 CMakeFiles/Makefile2:1282: recipe for target 'modules/core/CMakeFiles/opencv_test_core.dir/all' failed make[1]: [modules/core/CMakeFiles/opencv_test_core.dir/all] Error 2 Makefile:162: recipe for target 'all' failed make: ** [all] Error 2

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2019-05-30 23:48:29 -0600

berak gravatar image

updated 2019-05-30 23:49:25 -0600

your system's libwebp did not meet expectations. try to either use the provided 3rdparty src using

cmake -DBUILD_WEBP=ON

or to disable support for webp images entirely:

cmake -DWITH_WEBP=OFF
edit flag offensive delete link more

Comments

1

Thank you very much, and this has solved my problem~

七只小羊 gravatar image七只小羊 ( 2019-05-31 00:47:36 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-05-30 21:08:03 -0600

Seen: 3,098 times

Last updated: Jun 02 '19