Bializm
Bializm

Reputation: 21

Error when linking C shared library libmatio.dll

so I have built and installed the MATIO library before, but without HDF5 and now I want to use it with HDF5 as I wish to work with newer versions of .mat files. So I downloaded pre-built HDF5 files for CMake and given the directory path when configuring the matio library, however when building I get the following error:

[  73%] Linking C shared library libmatio.dll
C:/PROGRA~1/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lzlib1
C:/PROGRA~1/mingw-w64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lszip
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[2]: *** [CMakeFiles\matio.dir\build.make:279: libmatio.dll] Error 1
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:86: CMakeFiles/matio.dir/all] Error 2
mingw32-make.exe: *** [Makefile:135: all] Error 2

I never had this error when building the library without HDF5, but I can't see how this should be a problem, I have given the right directory path as advised. Any help would be appreciated it, thanks!

Upvotes: 0

Views: 413

Answers (0)

Related Questions