How likely is it even to succeed with building and running libcurl for a WASM target? Has anything substantially changed since this ticket was written: https://github.com/emscripten-core/emscripten/issues/4642?
...e.g. AFAIK libcurl largely depends on native APIs that are either not available in the browser or node.js, or behave differently (like the sockets wrapper), don't know though how closely WASI maps the required POSIX APIs. On Monday, 2 December 2013 at 05:08:24 UTC+1 Alon Zakai wrote: > emmake make should build sources to bitcode. The final library might have > suffix .so or .a or such, but will contain bitcode (run `file` on it for > example, to see). You can then link that with your other project and > compile the result as a whole to JS. > > For more info see > https://github.com/kripken/emscripten/wiki/Building-Projects > > - Alon > > > > On Sun, Dec 1, 2013 at 1:46 PM, Mattia Manzati <mattia....@gmail.com> > wrote: > >> Hi all, >> I am trying to build with emscripten a program which depends on libcurl, >> but I have not understand how I should build libcurl in order to succefully >> compile the program. >> >> I've tryed to download libcurl sources and run >> emconfigure configure >> emmake make >> emmake install >> >> but I could'nt find any js file. So after reading a bit of docs i've >> found that I have to compile libcurl as .bc file, how can I do it? >> And after I have compiled it as bc file, how can I embed it in the >> programs makefile in order to properly compile and work? >> >> Thanks for any help! :) >> > -- >> 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 emscripten-disc...@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- 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 emscripten-discuss+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/bf27bd90-e407-4bbb-bb69-d77153c849a0n%40googlegroups.com.