[Ctk-developers] Quazip, zlib dependency

Miklos Espak espakm at gmail.com
Mon Aug 5 18:16:07 UTC 2013


Hi Jc,

I added zlib as an external project and it builds fine, but there are two
issues. The first is that QuaZip is still linked against the zlib in the
system.

The second is that I get the following error at the CTK configure step
(after zlib and QuaZip has been built).

--------------------------------------------------------------------------------------------
CMake Error at CMakeLists.txt:891 (find_package):
  By not providing "Findzlib.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "zlib", but
  CMake did not find one.

  Could not find a package configuration file provided by "zlib" with any of
  the following names:

    zlibConfig.cmake
    zlib-config.cmake

  Add the installation prefix of "zlib" to CMAKE_PREFIX_PATH or set
  "zlib_DIR" to a directory containing one of the above files.  If "zlib"
  provides a separate development package or SDK, be sure it has been
  installed.
--------------------------------------------------------------------------------------------

As I see, there is no zlibConfig.cmake in the cmake-ified project, but I
guess you can build Slicer in spite of this.

What is the trick? :)

Cheers,
Miklos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ctk-developers/attachments/20130805/4f1ba6ed/attachment.htm>


More information about the Ctk-developers mailing list