Can nobody compile Rodent IV for Android?
Peter
Can nobody compile Roden IV?
Moderators: hgm, Rebel, chrisw
-
- Posts: 1871
- Joined: Sat Nov 25, 2017 2:28 pm
- Location: France
Re: Can nobody compile Roden IV?
Shall be possible, for now just miss some header in android build tool
I'll get back with it soon
Code: Select all
util.cpp:26:14: fatal error: 'wordexp.h' file not found
#include <wordexp.h>
-
- Posts: 215
- Joined: Sun Jul 31, 2016 6:35 pm
Re: Can nobody compile Roden IV?
GREAT!!!
I love Rodent IV because you can chose diffent personalities and create new personalities!!!
Thanks for your help!
Peter
I love Rodent IV because you can chose diffent personalities and create new personalities!!!
Thanks for your help!
Peter
-
- Posts: 1871
- Joined: Sat Nov 25, 2017 2:28 pm
- Location: France
Re: Can nobody compile Roden IV?
but will you be able to download and use personality file under android ? using which GUI ?
-
- Posts: 1871
- Joined: Sat Nov 25, 2017 2:28 pm
- Location: France
Re: Can nobody compile Roden IV?
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
3°) if your ndk is recent enough it will say
4°) use it ! For RodentIV, I did a little script
5°) One thing was missing in that case
so, being lazy, I just make function ChDirEnv always return false ! Thus be warned that personalities can not be set by environment variables.
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
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
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
Code: Select all
util.cpp:26:14: fatal error: 'wordexp.h' file not found
#include <wordexp.h>
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");
-
- Posts: 215
- Joined: Sun Jul 31, 2016 6:35 pm
Re: Can nobody compile Roden IV?
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
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
-
- Posts: 1871
- Joined: Sat Nov 25, 2017 2:28 pm
- Location: France
Re: Can nobody compile Roden IV?
What is your android version?
Did you download the dropbox link? No need to understand the whole post.
Did you download the dropbox link? No need to understand the whole post.
-
- Posts: 20
- Joined: Sat Aug 31, 2019 10:38 pm
- Full name: Mariusz Jankowski
Re: Can nobody compile Roden IV?
Thank you but I can't load this engine in DroidFish on Galaxy S7 with Android 7. Perhaps it's for newer versions.
-
- Posts: 1871
- Joined: Sat Nov 25, 2017 2:28 pm
- Location: France
Re: Can nobody compile Roden IV?
Used api level 21 so should work more or less everywhere. Seems find on my a40 with android 9.
-
- Posts: 1871
- Joined: Sat Nov 25, 2017 2:28 pm
- Location: France
Re: Can nobody compile Roden IV?
[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]
[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]