Can nobody compile Roden IV?

Discussion of anything and everything relating to chess playing software and machines.

Moderators: Harvey Williamson, Dann Corbit, hgm

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
User avatar
PeterO
Posts: 163
Joined: Sun Jul 31, 2016 4:35 pm

Can nobody compile Roden IV?

Post by PeterO » Wed Feb 19, 2020 5:02 pm

Can nobody compile Rodent IV for Android? :?:

Peter :D

User avatar
xr_a_y
Posts: 1338
Joined: Sat Nov 25, 2017 1:28 pm
Location: France

Re: Can nobody compile Roden IV?

Post by xr_a_y » Thu Feb 20, 2020 7:13 am

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

User avatar
PeterO
Posts: 163
Joined: Sun Jul 31, 2016 4:35 pm

Re: Can nobody compile Roden IV?

Post by PeterO » Thu Feb 20, 2020 3:34 pm

GREAT!!! :D

I love Rodent IV because you can chose diffent personalities and create new personalities!!! :D :D :D

Thanks for your help!

Peter

User avatar
xr_a_y
Posts: 1338
Joined: Sat Nov 25, 2017 1:28 pm
Location: France

Re: Can nobody compile Roden IV?

Post by xr_a_y » Thu Feb 20, 2020 5:01 pm

but will you be able to download and use personality file under android ? using which GUI ?

User avatar
xr_a_y
Posts: 1338
Joined: Sat Nov 25, 2017 1:28 pm
Location: France

Re: Can nobody compile Roden IV?

Post by xr_a_y » Thu Feb 20, 2020 7:28 pm

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");

User avatar
PeterO
Posts: 163
Joined: Sun Jul 31, 2016 4:35 pm

Re: Can nobody compile Roden IV?

Post by PeterO » Thu Feb 20, 2020 8:34 pm

Hi,
I always use the gui "chess for android" from Aart Bik. :D
With Rodent III I was able to chose the personality files. :D :D
Unfortunately I can not run/install the software you linked above.
I do not undertand this stuff - I am just an old chessplayer. :oops:

But I thank you very much my friend for trying!!! :D

Greetings from Austria
Peter

User avatar
xr_a_y
Posts: 1338
Joined: Sat Nov 25, 2017 1:28 pm
Location: France

Re: Can nobody compile Roden IV?

Post by xr_a_y » Thu Feb 20, 2020 8:45 pm

What is your android version?

Did you download the dropbox link? No need to understand the whole post.

odyn1982
Posts: 15
Joined: Sat Aug 31, 2019 8:38 pm
Full name: Mariusz Jankowski

Re: Can nobody compile Roden IV?

Post by odyn1982 » Thu Feb 20, 2020 8:55 pm

Thank you :) but I can't load this engine in DroidFish on Galaxy S7 with Android 7. Perhaps it's for newer versions.

User avatar
xr_a_y
Posts: 1338
Joined: Sat Nov 25, 2017 1:28 pm
Location: France

Re: Can nobody compile Roden IV?

Post by xr_a_y » Thu Feb 20, 2020 9:10 pm

Used api level 21 so should work more or less everywhere. Seems find on my a40 with android 9.

User avatar
xr_a_y
Posts: 1338
Joined: Sat Nov 25, 2017 1:28 pm
Location: France

Re: Can nobody compile Roden IV?

Post by xr_a_y » Thu Feb 20, 2020 9:13 pm


Post Reply