I'm triying to build windows agent from Visual Studio 2015. I downloaded agent code from: https://github.com/OCSInventory-NG/WindowsAgent, I download all the libraries too (same version as you have in OCS_Make_Required_Libs.bat file) and I used the same Perl as you. The ZipArchive library is builded correctly.
I can execute OCS_Make_Required_Libs.bat file without errors. After that, I open the solution "OCSInventory.sln" and select project "Agent" and try to build as you told; but I get those fatal errors:
sysinfo\ocscrypto.cpp(17): fatal error C1083: Cannot open include file: 'openssl/sha.h': No such file or directory
ocsinventory front\flate.cpp(15): fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
ocsinventory front\ocsutils.cpp(18): fatal error C1083: Cannot open include file: 'openssl/evp.h': No such file or directory
comhttp\httpcrypt.h(20): fatal error C1083: Cannot open include file: 'openssl/aes.h': No such file or directory
c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\afx.h(24): fatal error C1189: #error: Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
I don't know what's wrong. Could you help me please?
P.S: In Release folder I have: