<div dir="ltr">This error occur where i compiling from linux to windows using mingw (x86_64 compiler).<br><br>I have the ZLIB, in both side, in the default file system directory and in ZLIB_LIBRARY variable of shell to a personal ZLIB library from user count. The ZLIB_LIBRARY not recognized...<br><br>$ cmake .. --host=x86_64-w64-mingw32<br>      or<br>$ export ZLIB_LIBRARY=../../zlib64/bin<br>$ cmake .. --host=x86_64-w64-mingw32<br>:<br>:<br>:<br>-- Could NOT find ZLIB (missing:  ZLIB_LIBRARY ZLIB_INCLUDE_DIR) <br>-- Found Doxygen: /usr/bin/doxygen (found version "1.8.10") <br>-- PhysicsFS will build with the following options:<br>--   ZIP support: enabled<br>--   7zip support: enabled<br>--   GRP support: enabled<br>--   WAD support: enabled<br>--   HOG support: enabled<br>--   MVL support: enabled<br>--   QPAK support: enabled<br>--   CD-ROM drive support: enabled<br>--   Thread safety: enabled<br>--   Build own zlib: enabled<br>--   Build static library: enabled<br>--   Build shared library: enabled<br>--   Build wxWidgets test program: disabled<br>--   Build stdio test program: enabled<br>--     Use readline in test program: disabled<br>:<br>:<br>:<br>$ make<br>:<br>:<br>:<br>[ 15%] Building C object CMakeFiles/physfs.dir/archivers/lzma.obj<br>${HOME}/physfs-2.0.3/archivers/lzma.c: En la función ‘SzFileReadImp’:<br>${HOME}/physfs-2.0.3/archivers/lzma.c:133:46: error: conversión de puntero a entero de tamaño diferente [-Werror=pointer-to-int-cast]<br>     FileInputStream *s = (FileInputStream *)((unsigned long)object - offsetof(F<br>                                              ^<br>${HOME}/physfs-2.0.3/archivers/lzma.c: En la función ‘SzFileSeekImp’:<br>${HOME}/physfs-2.0.3/archivers/lzma.c:148:46: error: conversión de puntero a entero de tamaño diferente [-Werror=pointer-to-int-cast]<br>     FileInputStream *s = (FileInputStream *)((unsigned long)object - offsetof(F<br>                                              ^<br>cc1: todos los avisos se tratan como errores<br>CMakeFiles/physfs.dir/build.make:363: fallo en las instrucciones para el objetivo 'CMakeFiles/physfs.dir/archivers/lzma.obj'<br>make[2]: *** [CMakeFiles/physfs.dir/archivers/lzma.obj] Error 1<br>CMakeFiles/Makefile2:99: fallo en las instrucciones para el objetivo 'CMakeFiles/physfs.dir/all'<br>make[1]: *** [CMakeFiles/physfs.dir/all] Error 2<br>Makefile:127: fallo en las instrucciones para el objetivo 'all'<br>make: *** [all] Error 2<br><br></div>