Page 1 of 7
Can nobody compile Roden IV?
Posted: Wed Feb 19, 2020 6:02 pm
by PeterO
Can nobody compile Rodent IV for Android?
Peter
Re: Can nobody compile Roden IV?
Posted: Thu Feb 20, 2020 8:13 am
by xr_a_y
Shall be possible, for now just miss some header in android build tool
Code: Select all
util.cpp:26:14: fatal error: 'wordexp.h' file not found
#include <wordexp.h>
I'll get back with it soon
Re: Can nobody compile Roden IV?
Posted: Thu Feb 20, 2020 4:34 pm
by PeterO
GREAT!!!
I love Rodent IV because you can chose diffent personalities and create new personalities!!!
Thanks for your help!
Peter
Re: Can nobody compile Roden IV?
Posted: Thu Feb 20, 2020 6:01 pm
by xr_a_y
but will you be able to download and use personality file under android ? using which GUI ?
Re: Can nobody compile Roden IV?
Posted: Thu Feb 20, 2020 8:28 pm
by xr_a_y
Try it and tell me !
https://www.dropbox.com/s/dqs6i9jexbs3t ... droid?dl=0
For what it's worth cross platform build for android are quite easy for most engine
1°) download the NDK (
https://developer.android.com/ndk/downloads)
2°) install it
Code: Select all
$NDK/build/tools/make_standalone_toolchain.py --arch arm --api 21 --install-dir ./my_android
3°) if your ndk is recent enough it will say
Code: Select all
WARNING:__main__:make_standalone_toolchain.py is no longer necessary. The
$NDK/toolchains/llvm/prebuilt/linux-x86_64/bin directory contains target-specific scripts that perform
the same task. For example, instead of:
$ python $NDK/build/tools/make_standalone_toolchain.py \
--arch arm --api 21 --install-dir toolchain
$ toolchain/bin/clang++ src.cpp
Instead use:
$ $NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang++ src.cpp
4°) use it ! For RodentIV, I did a little script
Code: Select all
#!/bin/bash
exe=rodentIV_android
echo "Building $exe"
OPT="-s -Wall -Wno-char-subscripts -Wno-reorder -DNDEBUG -O3 -flto -std=c++14"
./android/bin/aarch64-linux-android21-clang++ $OPT *.cpp -o $exe
5°) One thing was missing in that case
Code: Select all
util.cpp:26:14: fatal error: 'wordexp.h' file not found
#include <wordexp.h>
so, being lazy, I just make function ChDirEnv always return false ! Thus be warned that personalities can not be set by environment variables.
Code: Select all
FILE *personalityFile = NULL;
if (isabsolute(fileName) // if known locations don't exist we want to load only from absolute paths
|| ChDirEnv("RIIIPERSONALITIES") // try `RIIIPERSONALITIES` env var first (26/08/17: linux only)
|| ChDir(_PERSONALITIESPATH)) // next built-in path
personalityFile = fopen(fileName, "r");
Re: Can nobody compile Roden IV?
Posted: Thu Feb 20, 2020 9:34 pm
by PeterO
Hi,
I always use the gui "chess for android" from Aart Bik.
With Rodent III I was able to chose the personality files.
Unfortunately I can not run/install the software you linked above.
I do not undertand this stuff - I am just an old chessplayer.
But I thank you very much my friend for trying!!!
Greetings from Austria
Peter
Re: Can nobody compile Roden IV?
Posted: Thu Feb 20, 2020 9:45 pm
by xr_a_y
What is your android version?
Did you download the dropbox link? No need to understand the whole post.
Re: Can nobody compile Roden IV?
Posted: Thu Feb 20, 2020 9:55 pm
by odyn1982
Thank you
but I can't load this engine in DroidFish on Galaxy S7 with Android 7. Perhaps it's for newer versions.
Re: Can nobody compile Roden IV?
Posted: Thu Feb 20, 2020 10:10 pm
by xr_a_y
Used api level 21 so should work more or less everywhere. Seems find on my a40 with android 9.
Re: Can nobody compile Roden IV?
Posted: Thu Feb 20, 2020 10:13 pm
by xr_a_y
[pgn]
[Event "Chess for Android Game"]
[Site "France"]
[Date "2020.02.20"]
[Round "?"]
[White "Self"]
[WhiteElo "-"]
[Black "rodentIV_android (terminated)"]
[BlackElo "-"]
[Result "0-1"]
[PlyCount "52"]
[TimeControl "-"]
[Device "SM-A405FN"]
1. f4 d5 {[6/10]8}
2. e3 Bf5 {[5/9]24}
3. Nf3 Nc6 {[5/8]22}
4. Bb5 {[6/11]-10} a6 {[6/9]-2}
5. Bxc6+ {[7/10]5} bxc6 {[6/10]-5}
6. d4 Be4 {[5/8]-5}
7. Qe2 Bxf3 {[5/8]8}
8. gxf3 h5 {[6/9]0}
9. Bd2 h4 {[6/9]-3}
10. Nc3 h3 {[6/9]-8}
11. O-O-O Nf6 {[6/9]-7}
12. Rdg1 a5 {[6/9]-17}
13. e4 dxe4 {[6/12]12}
14. fxe4 Qxd4 {[5/11]94}
15. e5 Nd5 {[5/11]112}
16. Nxd5 cxd5 {[5/11]116}
17. Be3 Qa4 {[5/11]123}
18. Kb1 Qd7 {[5/10]123}
19. Bd4 a4 {[5/10]125}
20. Rf1 e6 {[6/10]124}
21. Qg4 Rb8 {[5/9]139}
22. f5 exf5 {[6/11]126}
23. Rxf5 c5 {[5/11]223}
24. Rhf1 cxd4 {[5/10]422}
25. Rxf7 Qxg4 {[6/11]1237}
26. R1f4 Qd1# 0-1
[/pgn]