Stockfish WASM build

Discussion of chess software programming and technical issues.

Moderator: Ras

User avatar
jshriver
Posts: 1356
Joined: Wed Mar 08, 2006 9:41 pm
Location: Morgantown, WV, USA

Stockfish WASM build

Post by jshriver »

Wondering if anyone has experience building this? It's the version that lichess uses for it's analysis page, however they are using 14. Been trying to build it in an attempt to see if I can get 15 working as well. Sadly multiple attempts in Ubuntu with emscripten/node/n++/emsdk/etc results in a lot of breaks. Isolated one issue due to a bug in the Ubuntu 22.04 and Debian packages for emscripten so went fresh from the original project. em++ does successfully compile each source file into an object, but it's breaking on final linking and wasm build.

Believe this is the most recent version that includes NNUE support.
https://github.com/hi-ogawa/Stockfish

Any tips are appreciated.