To run CMake with Emscripten, you can pass 'emcmake cmake xxxx', which will automate setting all the flags that are specified in the beginning of the module toolchain file. That can look a bit simpler. I wonder if the result of the CMake run will be the same with that?
2014-12-04 23:44 GMT-08:00 Ian Clévy <[email protected]>: > Ok, I think I made it through the FindZLIB problem. I took a look at the > FindOpenAL.cmake file provided with Emscripten and wrote my own version of > FindZLIB.cmake. I had to tweak the cmakelists for libzip a little so it > could find my module but it ran through and generated something. > > I still have some issues though: cmake fails neally all the checks > (check_function_exists() and check_type_size()). I saw something about > check_function_exists in CMakeSystemSpecificInformation.cmake in the cmake > folder of Emscripten saying that it doesn't work without this file. Do I > need to do something to get it working? > > Then, I get compile errors when I run mingw32-make because the compiler > can't find 'zip_uint64_t' among other I can't help but wonder if this is > linked to the check_type_size not working out. > > Can anyone help? > > Thanks, > Ian > > On Wednesday, 3 December 2014 22:47:47 UTC+1, Ian Clévy wrote: > >> 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. > -- 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.
