libzip icon indicating copy to clipboard operation
libzip copied to clipboard

zstd support

Open timofey-retailnext opened this issue 5 years ago • 1 comments

Compiler Error Linker error: ZSTD_minCLevel() and ZSTD_maxCLevel() not found

libzip Version 1.8.0

Operating System and Compiler Ubuntu 18.04, platform provided zstd lib 1.3.3

Also, any flags passed to cmake. -DBUILD_SHARED_LIBS:BOOL=ON
-DBUILD_TOOLS=ON
-DBUILD_REGRESS=OFF
-DBUILD_EXAMPLES=OFF
-DBUILD_DOC=OFF \

Additional context Missing zstd functions appeared in zstd 1.5.x while ubunutu 18.04 has 1.3.3 -> link errors need to add zstd version requirement to CMakeLists.txt: from: "find_package(Zstd)" to: "find_package(Zstd 1.5)" this will automatically disable older and incompatible zstd lib versions

timofey-retailnext avatar Jun 19 '21 19:06 timofey-retailnext

Missing zstd functions appeared in zstd 1.5.x

They are in 1.3.6

In ChangeLog

v1.3.6  (Oct 6, 2018)
...
api : minimum negative compression level is defined, and can be queried using ZSTD_minCLevel().

And ZSTD_maxCLevel was already there

remicollet avatar Jun 20 '21 05:06 remicollet