On Fri, Feb 21, 2014 at 3:35 AM, Guillaume Chéreau wrote:
On Fri, Feb 21, 2014 at 5:04 AM, Georg Zotti <georg.zotti@univie.ac.at> wrote:
> I added the path to gettext programs in CMakeCache.txt. Zlib was found in
> GnuWin32 dir. However, and after disabling all plugins for now, I get
> another error:
>
> c:\program files (x86)\gnuwin32\include\zconf.h(289): fata error C1083:
> File (Include) cannot be opened: "unistd.h": No such file or directory.

The zlib issue is always tricky on Windows, because there are
different versions of the headers being distributed.
For compiling with msvc, the one that I use is zlib128-dll.zip,
directly from the zlib website: http://www.zlib.net.  Direct link:

Once you have it you need to unzip it somewhere on your filesystem,
and modify CMakeCache.txt to point to it, as I mentioned in my
previous email.  Only for msvc build!

At some point I actually suggested that we compile zlib sources along
with the other external dependencies, so that we don't have all those
issues, maybe it's time to reconsider that solution again?

Definitely: Even if you use the dll from zlib.net, it won't work unless you use the proper MSVC compilation mode etc.. In my previous company, the only sane solution we came up with was to embbed the zlib code in the source.

guillaume
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.