We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
I'm assuming you already have the emcc installed someplace.
It starts with compiling each source into emcc object files.
emcc -DSYNTH_LIB_ALONE -O3 -s resynthesizer/engine.c -c -o engine.o emcc -DSYNTH_LIB_ALONE -O3 -s resynthesizer/engineParams.c -c -o engineParams.o emcc -DSYNTH_LIB_ALONE -O3 -s resynthesizer/glibProxy.c -c -o glibProxy.o emcc -DSYNTH_LIB_ALONE -O3 -s resynthesizer/imageFormat.c -c -o imageFormat.o emcc -DSYNTH_LIB_ALONE -O3 -s resynthesizer/imageSynth.c -c -o imageSynth.o emcc -DSYNTH_LIB_ALONE -O3 -s resynthesizer/progress.c -c -o progress.o
And assemble them into a library.
emar rcs libresynthesizer.a engine.o engineParams.o glibProxy.o imageFormat.o imageSynth.o progress.o
And then compile the sample program (painter_wasm.c) while linking against the built library. libresynthesizer.a in this case.
libresynthesizer.a
emcc -O3 -flto -o interactive.html examples/painter_wasm.c -Iresynthesizer libresynthesizer.a -s USE_SDL=2 --preload-file=assets/source001.ppm
Then you get a nice, cool-looking interactive demo. ;)
If you need help with anything else, you can read the emscripten manual. https://emscripten.org/docs/getting_started/Tutorial.html
Sorry, something went wrong.
wow!Thank you very much!
61315
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: