[hatari-devel] Compil hatari under windows (cygwin)

George Nakos ggn at hol.gr
Thu Nov 4 23:14:28 CET 2010


Hello Thomas,

Friday, November 5, 2010, 12:04:28 AM, you wrote:

> 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...

Yep it actually did!



-- 
Best regards,
 George                            mailto:ggn at hol.gr




More information about the hatari-devel mailing list