I can’t install podofo version 0.9.8 (clone from git https://aur.archlinux.org/podofo-0.9.git), because I get this error of ZLIB
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindZLIB.cmake:47 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:306 (FIND_PACKAGE)
but I have
$ echo ${ZLIB_INCLUDE_DIR}
C:/msys64/mingw64/include/
$ echo ${ZLIB_LIBRARY}
C:/msys64/mingw64/bin/zlib1.dll
Can somebody help me please?
Thanks in advance
UPDATE:
I added to cmake the parameters -DZLIB_INCLUDE_DIR=”C:/msys64/mingw64/include”
and -DZLIB_LIBRARY=”C:/msys64/mingw64/bin/zlib1.dll”
in the PKGBUILD file, and now is missing only the ZLIB_LIBRARY…the command line with the output is this:
$ makepkg -sri
==> Making package: podofo-0.9 0.9.8-3 (Tue Jul 16 09:23:38 2024)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found podofo-0.9.8.tar.gz
-> Found 23d26f39.patch
==> Validating source files with sha256sums...
podofo-0.9.8.tar.gz ... Passed
23d26f39.patch ... Passed
==> Extracting sources...
-> Extracting podofo-0.9.8.tar.gz with bsdtar
==> Starting prepare()...
patching file CMakeLists.txt
patching file src/podofo/CMakeLists.txt
patching file src/podofo/libpodofo.pc.in
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Will install libraries to /usr/lib/podofo-0.9
Using gcc specific compiler options
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
Could NOT find ZLIB (missing: ZLIB_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
cmake/modules/FindZLIB.cmake:47 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:306 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
Aborting...
7