Hi jj, Thank you for the solution. However when i type the command : emcmake cmake -DCMAKE_BUILD_TYPE=Release .. i get the following message "/bin/env: python2: No such file or directory" how do i solve this?
Looking forward to your reply From Rupali On Tuesday, August 12, 2014 7:32:55 PM UTC+8, jj wrote: > > It sounds like you copied a prebuilt Windows static library? That won't > work, since Emscripten is a cross-compiler. This means that it compiles > code on your host system (Windows) to run on another target system (JS VM). > As a result of that, any code that is compiled with the native compiler to > be executed on a native Windows system is unusable for Emscripten, since > the compilation targets are different. > > To resolve this, you'll need to download the zlib source tree and build > zlib from source using emcc. zlib has CMake build support, so you can use > that. Try e.g. > > git clone https://github.com/madler/zlib.git > cd zlib > mkdir build_release > cd build_release > emcmake cmake -DCMAKE_BUILD_TYPE=Release .. > mingw32-make > > After that completes, you will have a file 'libz.a' in the directory > build_release. For that set of command line parameters to succeed, you will > need to have git, cmake and mingw32 toolchain installed and set up in PATH. > > > 2014-08-12 14:14 GMT+03:00 awt <[email protected] <javascript:>>: > >> Hi, >> >> I downloaded an implementation of ZLIB from >> http://www.winimage.com/zLibDll/index.html and copied the zlibstat.lib >> file to where my visual studio solution files are and tried to link to it >> with the -lzlibstat flag but emcc still complains that it cannot find >> 'zlibstat.lib'. >> >> Does the Emscripten SDK already provides a ZLIB static lib that I can use >> without the need to build? I am developing on the Windows environment. >> Thanks. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "emscripten-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
