Repository contains the working examples of web assembly using C++/emscripten. Each example is a seperate working cmake project. Run the followings command to run the examples.
Setup environment
-
open bash
-
go to emsdk directory and followings run command
./emsdk activate latest
source ./emsdk_env.sh
Build setup
-
create directory 'build'
mkdir build
cd build
-
configure cmake
emconfigure cmake ..
-
build the source to wasm
emmake make
-
go to the web directory and start the python server by running server.py
-
open browser and launch url http://localhost:8000/