veloce/capacitor-stockfish

Build failure

Closed this issue · 2 comments

jas14 commented
make -C node_modules/capacitor-stockfish/stockfish/src/ build
...
main.cpp:49:8: error: no member named 'loop' in namespace 'Stockfish::UCI'
  UCI::loop(argc, argv);
  ~~~~~^
1 error generated.
make[1]: *** [main.o] Error 1
make: *** [build] Error 2

I'm not sure how this happened, but it appears UCI::loop was renamed UCI::command, but is still expected to be the latter:

/// UCI::loop() waits for a command from stdin, parses it and calls the appropriate
/// function. Also intercepts EOF from stdin to ensure gracefully exiting if the
/// GUI dies unexpectedly. When called with some command line arguments, e.g. to
/// run 'bench', once the command is executed the function returns immediately.
/// In addition to the UCI ones, also some additional debug commands are supported.
void UCI::command(std::string cmd) {

jas14 commented

Ah, I see. This has been rewritten to take single commands from the caller instead of running a CLI loop.

You cannot directly build the project anymore from stockfish/src indeed, it has to be built from gradle and android ndk.