Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
chinnaece opened this issue Jan 30, 2019 · 5 comments
Closed

Comments

@chinnaece
Copy link

chinnaece commented Jan 30, 2019

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
Copy link
Owner

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
Copy link
Author

@brechtsanders yes your suggestion works for me thank you .

@yihuajack
Copy link

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

@brechtsanders
Copy link
Owner

@yihuajack What was the full CMake command you used?

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

@yihuajack
Copy link

OK, I'd try minizip-ng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants