brechtsanders / xlsxio

XLSX I/O - C library for reading and writing .xlsx files
MIT License
417 stars 112 forks source link

Could NOT find Minizip (missing: MINIZIP_LIBRARIES MINIZIP_INCLUDE_DIRS) #43

Closed chinnaece closed 5 years ago

chinnaece commented 5 years ago

OS: Linux Ubuntu

This is my log when i run cmake .

CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could NOT find Minizip (missing: MINIZIP_LIBRARIES MINIZIP_INCLUDE_DIRS) Call Stack (most recent call first): /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE) CMake/FindMinizip.cmake:18 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:38 (FIND_PACKAGE)

Could any one fix this error ?

brechtsanders commented 5 years ago

As always with building software from code: you should have the prerequisites installed. Please see section "Building from source" in README.md for more details. Specifically for Ubuntu I would expect running this command would do: sudo apt-get install libminizip-dev

chinnaece commented 5 years ago

@brechtsanders yes your suggestion works for me thank you .

yihuajack commented 1 year ago

Why libminizip1 does not work but libminizip-dev works on Ubuntu? They are of the same version 1.1-8build1 amd64

brechtsanders commented 1 year ago

@yihuajack What was the full CMake command you used?

There is also an alternative: using minizip-ng with -DWITH_MINIZIP_NG:BOOL=ON

yihuajack commented 1 year ago

OK, I'd try minizip-ng