stockfish.js icon indicating copy to clipboard operation
stockfish.js copied to clipboard

Compile Error Windows

Open GodLS opened this issue 6 years ago • 4 comments

I reinstalled emscripten and now the first line when running the emcc cmd prompt gets that error, idk if important

And https://i.imgur.com/iee9ZVj.png

Any idea what's wrong? Thanks. Might be simple, not experienced in this

GodLS avatar Jun 30 '19 16:06 GodLS

upd: ran node build.js instead and it'll say building but there's no output file or updates. only modified file is misc.cpp

GodLS avatar Jul 02 '19 05:07 GodLS

I have no idea if this is even possible.

You would likely need to manually set the --arch, --comp, --compcxx, and --make flags manually. See node build.js -h for some details. Maybe search online for compiling Stockfish on Windows.

Also, note that if you just want the compiled files, they can already be found in the src directory.

nmrugg avatar Jul 02 '19 06:07 nmrugg

Thanks for the info. Problem is any searching won't yield results for compiling into JS, correct? I made some progress using Msys2 and now it'll actually "start" the build process, only problem is it just says em++ not found. Because I cant install emscripten through Msys for some reason, always an error.

https://i.imgur.com/qx4fyFU.png tried two different PC's as well.

I have also tried to use Linux subsystems in Windows 10, but it's the same issue as on normal windows. It says building, but no changes occur, only to misc.cpp

GodLS avatar Jul 03 '19 01:07 GodLS

That error message appears to be saying that emscripten is already installed. Perhaps it is not in the PATH. Maybe you need to run emsdk_env.bat

nmrugg avatar Jul 05 '19 01:07 nmrugg