nepx / halfix

x86 PC emulator that runs both natively and in the browser, via WebAssembly
https://nepx.github.io/halfix-demo/
GNU General Public License v3.0
682 stars 88 forks source link

Problems building #12

Closed mthiim closed 4 years ago

mthiim commented 4 years ago

I'm getting error below when trying to build. I'm using a fresh installed node.js (12.9.0) and EMSDK on Ubuntu 20.04 AMD64. Seems to be a syntax error in emulator-files.json. I've created PR: https://github.com/nepx/halfix/pull/13


Running: node makefile.js emscripten

Yields:

undefined:389
}
^
SyntaxError: Unexpected token } in JSON at position 9852
    at JSON.parse (<anonymous>)
    at load_json (/home/martin/halfix/makefile.js:21:17)
    at Object.<anonymous> (/home/martin/halfix/makefile.js:27:16)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Function.executeUserEntryPoint [as runMain] (intern