This procedure will currently still use emscripten's custom "fastcomp" llvm 
backend, not the new "official" WebAssembly backend which is now part of 
upstream clang since version 8.0.

On Thursday, 4 April 2019 14:04:44 UTC+2, praveer kumar wrote:
>
> Hi Chuck H,
> It worked for me. 
> below are the steps I followed:
> 1> go to https://github.com/emscripten-core/emscripten/releases and 
> download 1.38.30.zip(if you want to work on windows os)
> 2> unzip it.
> 3>  open the command prompt and navigate to the directory where you have 
> emcc.
> 4>then type "emcc tests/hello_world.cpp -o tests/hello_world.html" command.
> 5> you will find below files in the tests directory:
> hello_world.wasm
> hello_world.js
> hello_world.html
> 6> in the same command prompt you type start[it will start another command 
> promt]
> 7> in the new command prompt you type below command "emrun --no_browser 
> --port 9090 ."
> 8> now go to the browser and in the address bar type "
> http://localhost:9090/hello_world.html"; 
> you will get your output.
> I have attached a snapshot for your reference as well.
>
> if I didn't misunderstand your question then this is what you are 
> expecting.
> below article might be useful for you 
>
> https://webassembly.org/getting-started/developers-guide/  
>
> On Thu, Apr 4, 2019 at 4:00 PM Chuck H <[email protected] <javascript:>> 
> wrote:
>
>> Hi, 
>>
>> I am new to Emscripten and currently I am trying to use LLVM WebAssembly 
>> Backend in the Emscripting following the tutorial 
>> https://emscripten.org/docs/compiling/WebAssembly.html 
>> However, when I run the command "emcc tests/hello_world.cpp -o test.html" 
>> on Windows, I get this warning "shared:WARNING: LLVM version appears 
>> incorrect (seeing "8.0", expected "9.0")".
>> Moreover, when I open the test.html, the following errors appear in the 
>> webpage:
>>
>> both async and sync fetching of the wasm failed
>> abort("both async and sync fetching of the wasm failed") at Error
>>     at jsStackTrace 
>> (file:///C:/Users/Desktop/test/emsdk/emscripten/1.38.30/test.js:1140:13)
>>     at stackTrace 
>> (file:///C:/Users/Desktop/test/emsdk/emscripten/1.38.30/test.js:1157:12)
>>     at abort 
>> (file:///C:/Users/Desktop/test/emsdk/emscripten/1.38.30/test.js:2453:44)
>>     at getBinary 
>> (file:///C:/Users/Desktop/test/emsdk/emscripten/1.38.30/test.js:1573:5)
>>     at 
>> file:///C:/Users/Desktop/test/emsdk/emscripten/1.38.30/test.js:1587:14 
>>
>> So what is the issue here? is it because I am using LLVM 8.0.0?
>>
>> -- 
>> 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] <javascript:>.
>> 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.

Reply via email to