Open vault-thirteen opened 8 months ago
The visual studio CMake generator cannot be used with emscripten. You need to use either ninja or mingw32-make. This is because emscripten is a cross compiler and the visual studio generator doesn't support cross compilation.. only compilation using cl.exe.
Hopefully the error message is fairly clear on what you need to do: "Please install ninja or mingw32-make, or specify a generator explicitly using -G"
Where can I read the help for this -G
argument of the emcmake
tool ?
Where is the user manual for the emcmake
tool ?
-G
is a cmake flag. It allows you to specify a generator: https://cmake.org/cmake/help/latest/manual/cmake.1.html#cmdoption-cmake-G
However, if you install ninja
then you don't need to explictly specify -G
since emcmake will inject it for you. I would recommend just installing ninja from here : https://ninja-build.org/
Thank you.
Is it mentioned in the manual ?
I thought it was an argument of emcmake
tool.
emcmake
is a wrapper around cmake
so all arguments you pass to emcmake
will get passed on to cmake
.
I don't think we specifically mention generator support, but then again we have little documentation on emcmake
. What we do have is here: https://emscripten.org/docs/compiling/Building-Projects.html#integrating-with-a-build-system. If you would like to contribute more that would be most welsome.
https://emscripten.org/docs/compiling/Building-Projects.html If I ignore the first command from the manual and use
emcmake
, I see this.emcmake cmake .
It is important to state that when I use CMake directly without Emscripten, all the tools are found.
If I use
cmake
withoutemcmake
, it works fine.cmake .
Source code was taken from here: https://github.com/vault-thirteen/argon2
Why is the
emcmake
not seeing my compilers ? How do I tell it to see them ? Where is the manual how to use it ? Neither-h
nor/?
arguments show any help information about thisemcmake
tool. Simple execution without arguments and--help
also do not provide any help.Googling also is not fruitful. https://www.google.com/search?q=emcmake+usage
I have also found this issue which states that we need some user guide about how to use this tool. https://github.com/emscripten-core/emscripten/issues/2655
Thank you.