![]() Now, before compiling, we need one last piece : the net file (technical, net = networks = neural network = the weights file of the neural network Stockfish operates with). If you have an android phone with another android version, adapt the lines consequently.) It is because the Samung Galaxy s21 Ultra runs Android 11 whose real version number is android30. (Note that there was the initial android21 in the CXX line that I replaced with android30. STRIP=AndroidNdkDir\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android-strip.exe Second, we locate the occurence of armv8 (it is the ARCH of the Samsung Galaxy S21 Ultra if you have another Android phone, maybe you should look for 'armv7' and adapt consequently what follows) concerning the compiler : namely, we replace the bit ifeq ($(arch),armv8)ĬXX=AndroidNdkDir\toolchains\llvm\prebuilt\windows-x86_64\bin\aarch64-linux-android30-clang .cmd Into EXE = stockfish_13_armv8_xcomp_win10圆4 Now we look at the MakeFile from StockFishDIr\src we will modify it slightly.įirst we change the executable name by changine the line EXE = stockfish Analyzing the MakeFile linearly show that the cross-compilation boils down to only one command line provided some file is downloaded, and to another "optimizing" command line. Just get it from GnuWin32 and note MakeDir the installation directory on you PC, the one containg the bin folder containing make.exe. We download the "Latest Stable Version" r22 (as of the moment I am writing these lines) and unzip it to a folder on the PC I call "AndroidNdkDir" the full path to this directory (containing build, meta, prebuilt, toolchains etc folders) on the PC.įinally, as in Stockfish's source code there is only a Makefile, we are going to need make under windows. We are going to use Android-NDK, which contains toolchains and cross-compilers. cross-compile (!) the source-code on the PC into an executable targeting the Android OS, meaning : being executable on the ANdroid OS, i.e. (You need the command line utilities of Tortois Git for instance.) Let's call StockFishDIr the full path to the StockFish folder (that contains src as subfolder) on the PC. We are going to need the source code : git clone (see the right address at Stockfish's github as this address could change) somewhere on your PC.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |