lichess-org / stockfish.wasm

WebAssembly port of the strong chess engine Stockfish
https://npmjs.com/package/stockfish.wasm
GNU General Public License v3.0
271 stars 46 forks source link

error when building with em++ #43

Closed ezrnew closed 1 year ago

ezrnew commented 1 year ago

Hello, i have installed the newest version of em++ (3.1) but im getting the following error when trying to build the stockfish.wasm app:

error: legacy setting used in strict mode: USE_PTHREADS

I have tried to replace USE_PTHREADS with PTHREADS (which ive read is the newer version of USE_PTHREADS) in MakeFile which results in another error:

PTHREADS is an internal setting and cannot be set from command line

Im not very familiar with Emscripten, is it an error related to the em++ version?

niklasf commented 1 year ago

Hi. That seems likely. The last official build was created using Emscripten 2.0.13, and this repo is no longer regularly updated.

benediktwerner commented 1 year ago

I'd just use the pre-compiled binaries from npm https://npmjs.com/package/stockfish.wasm