How to integrate stockfish into an Android App? (Delphi, Firemonkey)

Discussion of chess software programming and technical issues.

Moderator: Ras

Morev
Posts: 4
Joined: Mon Oct 18, 2021 3:58 pm
Full name: Victor Morev

How to integrate stockfish into an Android App? (Delphi, Firemonkey)

Post by Morev »

Greetings to all,
I'm trying to create a simple Android app (using Delphi 10.4, Firemonkey) that will use stockfish engine (evaluate positions and suggest a best move).
I downloaded stockfish .so files (ELF) for Android 32/64bit, included them in my app. In my program I use LoadLibrary, it returns success (Result <>0). I read a lot about uci protocol (isready, ucinewgame, etc.), but now how will I call stockfish engine and pass a FEN to it? Should I use GetProcAddress? (if yes, then with which parameters?)
Has anyone a successful experience?

Thank you in advance.