<div dir="ltr">2015-10-10 1:54 GMT+02:00 Rm Beer <span dir="ltr"><<a href="mailto:rmbeer2@gmail.com" target="_blank">rmbeer2@gmail.com</a>></span>:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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></div></blockquote><div><br><div><div><div><div>When cmake asks for "env var looking things" in all caps, it means define directives most of the time.<br></div>So try it like this instead:<br><br></div>cmake -DZLIB_LIBRARY=/path/to/lib -DZLIB_INCLUDE_DIR=/path/to/include ..<br><br></div>on another note, when posting your logs online, it's best to compile with LC_ALL=C<br></div>so the warnings/errors are in English instead of your local language. <br></div></div></div></div>