1- Open the Visual Studio solution in vc\vc8\OpenEXR and the convert it to VS10 if necessary
2- Copy zlib.h, zconf.h from the zlib source directory and halfExport.h from ilmbase\half to Deploy\include
3- Copy zlibwapi.lib to Deploy\lib\Win32\Debug and Deploy\lib\Win32\Release. Also copy zlibwapi.exp and zlibwapi.dll to Deploy\bin\Win32\Debug and Deploy\bin\Win32\Release
4- Now hit F7 and you should receive a long list of link errors. Strangely enough, some files were not added to the IlmImf project so we're going to add them manually
Right click at project IlmImf and add all *.hpp and *.cpp files. We could've added only the missing ones, but then we have to analyze every linking error to find out which functions definition were missing.
5- Now in the properties window of project IlmImf, select all configurtions and all platforms, go to C++/Preprocessor and add these macros ZLIB_DLL, ZLIB_WINAPI
6- Compile the solution again and you should receive a build success.
Congratulations! You have successfully built OpenEXR :)
P.S. Building the OpenEXR tools is not mandatory, but if you find any problem building them, let me know.
2- Copy zlib.h, zconf.h from the zlib source directory and halfExport.h from ilmbase\half to Deploy\include
3- Copy zlibwapi.lib to Deploy\lib\Win32\Debug and Deploy\lib\Win32\Release. Also copy zlibwapi.exp and zlibwapi.dll to Deploy\bin\Win32\Debug and Deploy\bin\Win32\Release
4- Now hit F7 and you should receive a long list of link errors. Strangely enough, some files were not added to the IlmImf project so we're going to add them manually
Right click at project IlmImf and add all *.hpp and *.cpp files. We could've added only the missing ones, but then we have to analyze every linking error to find out which functions definition were missing.
5- Now in the properties window of project IlmImf, select all configurtions and all platforms, go to C++/Preprocessor and add these macros ZLIB_DLL, ZLIB_WINAPI
6- Compile the solution again and you should receive a build success.
Congratulations! You have successfully built OpenEXR :)
P.S. Building the OpenEXR tools is not mandatory, but if you find any problem building them, let me know.