git clone --recursive <this-repo>
Note, you'll need a working C++ compiler for this. In Ubuntu this is:
sudo apt install build-essential
Then you can build fairy-stockfish and the wrapper library.
cd thirdparty/Fairy-Stockfish-Lib/
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build
This should produce a library, like so:
➜ ls build/*.so
build/libfairystockfish.so
In the root dir:
./gradlew publishToMavenLocal
This should build and install the library in your local maven repository which is in:
~/.m2/repository/
You can check that this library is there with:
➜ find ~/.m2/repository/ -name "*.jar" | grep fairy
/home/lakin/.m2/repository/org/playstrategy/fairystockfish/0.0.11/fairystockfish-0.0.11-linux-x86_64.jar
/home/lakin/.m2/repository/org/playstrategy/fairystockfish/0.0.11/fairystockfish-0.0.11.jar