View Full Version : compile on Windows

02-05-2013, 06:13 PM
I'm trying to compile ClanLib on Windows.
I'm using Cygwin.

The configure script returns this error message:

$ sh configure
checking for main in -lz... no
configure: error: " *** ClanLib requires zlib (try zlib1g-dev or better)."

If I understand the error message correctly it wants zlib.
But it's there:

$ grep "define ZLIB_VERSION" /usr/include/zlib.h
#define ZLIB_VERSION "1.2.7"

$ ll /usr/lib/libz.*
-rw-r--r-- 1 Seven None 227K 13 mai 2012 /usr/lib/libz.a
-rwxr-xr-x 1 Seven None 55K 13 mai 2012 /usr/lib/libz.dll.a

Any kind of help would be appreciated :)

02-05-2013, 07:14 PM
I don't know anyone that has compiled ClanLib using Cygwin.

So, configure.ac is highly likely to be broken, when targetting windows.

Try disabling the zlib check and see what happens

Good luck :)

02-06-2013, 03:08 PM
OK, so this is what I did.
I commented the zlib check in the configure.ac (only one line), and now the configure step goes until the end without error.

But then when I'm running 'make' it just launches 'configure' again but don't compile anything.

(SDL2 compiles out of the box on both my linux and with mingw under cygwin, so it should be possible to achieve this)