Ask Your Question

Revision history [back]

Opencv 3.4.8 + Opencv contrib 3.4.8 + mingw32-make + ERROR while compiling(libopencv_hdf348.dll))

I'm working on compiling opencv with contrib on Win10. I followed the steps in README.md on github. Things went well before the command "make -j5" And the main error info is here:

[ 32%] Linking CXX shared library ....\bin\libopencv_hdf348.dll
C:/Users/abc/Anaconda3/Library/lib/libhdf5.lib: error adding symbols: File format not recognized
collect2.exe: error: ld returned 1 exit status
modules\hdf\CMakeFiles\opencv_hdf.dir\build.make:110: recipe for target 'bin/libopencv_hdf348.dll' failed
mingw32-make[2]: *** [bin/libopencv_hdf348.dll] Error 1
CMakeFiles\Makefile2:3843: recipe for target 'modules/hdf/CMakeFiles/opencv_hdf.dir/all' failed
mingw32-make[1]: *** [modules/hdf/CMakeFiles/opencv_hdf.dir/all] Error 2
mingw32-make[1]: *** Waiting for unfinished jobs....

I did a lot of search but it seems no one have had such problem.
Thank you very much if you could help me.