Open vault-thirteen opened 8 months ago
The project in question is trying to use --out-implib
as link flag and this flag is not supported by emscripten.
It looks like the Makefile is assuming you are targetting windows here: https://github.com/P-H-C/phc-winner-argon2/blob/f57e61e19229e23c4445b85494dbf7c07de721cb/Makefile#L90-L103
My advise would be to build the static version of the library. Try running make libargon2.a
I am trying to compile WASM for a library using the instruction which I found on this page: https://emscripten.org/docs/compiling/Building-Projects.html
It says "To build with Emscripten, you would instead use the following commands:"
I skip the first step while the library has no
configure
script. I am trying to do the second step.O.S. is Windows 10. When I use
make
from the MSYS2 bundle, it works fine. When I useemmake make
it fails. The details are following.I am trying to compile this library: https://github.com/P-H-C/phc-winner-argon2
git clone https://github.com/P-H-C/phc-winner-argon2.git
I rename the repository folder intoargon2
, open the MSYS2 UCRT64 Terminal and do the following:cd argon2
make
Result:Then I reset the folder (delete it and clone git repository again). When I open "Emscripten Command Prompt" and use
emmake make
I get an error:Is it possible to fix all this ? Thank you.