On Fr, 21.02.2014, 09:55, Fabien Chéreau wrote: > On Fri, Feb 21, 2014 at 3:35 AM, Guillaume Chéreau < > [email protected]> wrote: > >> On Fri, Feb 21, 2014 at 5:04 AM, Georg Zotti <[email protected]> >> 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: >> http://prdownloads.sourceforge.net/libpng/zlib128-dll.zip?download >> >> 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!
Alright, I was not aware of the special edition for MSVC, thanks for the link. >> 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. A note on preconditions for building in an up-to-date step by step building description (thanks Alex for the link) should be enough, IMHO. But if sources are lightweight, and if there is no meaningful and easy way to automatically find and use a regular installation of zlib and direct compilation is reasonably simple, yes, it shall go to external then. Best regards, Georg ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk _______________________________________________ Stellarium-pubdevel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel
