building instructions for mame emulator
nabetse00 opened this issue · comments
Hello emularity team,
First thank you for this wonderfull loader !
I've tested mamemegadriv.js driver (making some litlle modification to console example html) with a custom rom i've compiled from source and it works perfectly.
Now i'm trying to build mamemegadriv.js from mame source to test some parameters.
Folowing mame docs (in windows 10):
- installed latest emsdk
- put build chain (./bin part) from mame tools in my path
- cloned mamedev repo
- run
emmake make SUBTARGET=megadriv REGENIE=1 TOOLS=0 SOURCES=.\src\mame\drivers\megadriv.cpp -j5
in mame directory
I've managed to get mamemagadriv.js and wasm files. But when i try to run the same game with those files i get this error:
exception thrown: 12421456 loader.js:827:45
failed to asynchronously prepare wasm: 12421456
[from chrome dev console ]
My .wasm generated file is bigger than yours ~20 MB, on the other hand .js a file is smaller ~3MB.
Please, can you provide some more detailed instructions to build emulator files from mame source ?
Thanks !
I've not had this error before, and we build ours similarly: emmake make -j4 REGENIE=1 NOWERROR=1 SUBTARGET=megadriv SYMBOLS=1 ARCHOPTS=-s ASSERTIONS=2 -s WASM=0 SOURCES=src/mame/drivers/megadriv.cpp
. The symbols and assertions could make our JS larger, but I doubt they would decrease the size of the wasm; that is a bit odd. I've just rebuilt all the emulators for IA; we'll see if any of them break the same way.