[hatari-devel] Compil hatari under windows (cygwin)
Thomas Huth
huth at users.berlios.de
Thu Nov 4 23:04:28 CET 2010
On Thu, 4 Nov 2010 23:49:18 +0200
George Nakos <ggn at hol.gr> wrote:
> [ 97%] Building C object
> tools/hmsa/CMakeFiles/hmsa.dir/__/__/src/file.c.obj
> c:/msys/1.0/home/Administrator/hatari/src/file.c:18:18: fatal error:
> zlib.h: No such file or directory compilation terminated.
> make[2]: *** [tools/hmsa/CMakeFiles/hmsa.dir/__/__/src/file.c.obj]
> Error 1 make[1]: *** [tools/hmsa/CMakeFiles/hmsa.dir/all] Error 2
> make: *** [all] Error 2
>
>
> I've been having this for years - no matter where I put zlib.h
> (including the src dir and whatever else), it simply won't find it. I
> might as well copy/paste the file inside file.c ;)
Hmmm, since file.c seems to compile fine for the main hatari
executable, I guess this might be simply because of the zlib header
file path is missing in tools/hmsa/CMakeLists.txt ...
Could you please try whether it helps to add the following lines at the
beginning of tools/hmsa/CMakeLists.txt:
if(ZLIB_FOUND)
include_directories(${ZLIB_INCLUDE_DIR})
endif(ZLIB_FOUND)
I hope that should fix this problem...
Regards,
Thomas
More information about the hatari-devel
mailing list