Hello all, 

I'm trying to compile libzip into bytecode using the cmake toolchain. 

I gathered I just had to run cmake with the right settings:

cmake 
-DCMAKE_TOOLCHAIN_FILE=<EmscriptenRoot>/cmake/Modules/Platform/Emscripten.cmake
#       -DCMAKE_BUILD_TYPE=<Debug|RelWithDebInfo|Release|MinSizeRel>
#       -G "Unix Makefiles" (Linux and OSX)
#       -G "MinGW Makefiles" (Windows)
#       <path/to/CMakeLists.txt> # Note, pass in here ONLY the path to the 
file, not the filename 'CMakeLists.txt' itself.

But cmake looks for zlib (using FindZLIB) and can't find it. I compiled 
zlib using it's cmakelists.txt and the above settings and it worked fine 
(because no linking was necessary). I put the path to the .so and includes 
into CMAKE_PREFIX_PATH before running cmake on libzip but that didn't help.

Am I using the cmake toolchain the right way?

Thanks,
Ian


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

Reply via email to