I am trying to create OpenEXR 2.2 on Windows, but the instructions that came with the download do not work properly. The instructions for IlmBase worked, but as soon as I get to the OpenEXR instructions, it does not work due to zlib. Steps at this point:
3. Go to http://www.zlib.net and download zlib
So, I went to this site and to the section that starts with: The current version is publicly available here: I downloaded the zlib source code , version 1.2.8, the zipfile format ...
Then I went to the next step, where I get the error message:
4. Launch a command window, navigate to the OpenEXR folder with CMakeLists.txt, and type command: setlocal del /f CMakeCache.txt cmake -DZLIB_ROOT=<zlib location> -DILMBASE_PACKAGE_PREFIX=<where you installed the ilmbase builds> -DCMAKE_INSTALL_PREFIX=<where you want to instal the openexr builds> -G "Visual Studio 10 Win64" ^ ..\openexr
So here is the command I'm typing:
cmake -DZLIB_ROOT=C:\Users\erik\Documents\zlib-1.2.8 -DILMBASE_PACKAGE_PREFIX=C:\Users\erik\Documents\ilmbase-2.2.0\bin -DCMAKE_INSTALL_PREFIX=C:\Users\erik\Documents\ilmbase-2.2.0\bin -G "Visual Studio 10 Win64" ^..\openexr-2.2.0
And here is the error I get:
Could not find ZLIB (missing: ZLIB_LIBRARY) (found version is "1.2.8")
The first problem is that the instructions do not say anything about ZLIB_LIBRARY. Secondly, zlib loading is similar to all source code. No .lib or .dll files are used.
source share