Code: Select all
~ $ ls -a
. .. .bash_history .termux Stockfish-Polyglot storage
Archimedes wrote: ↑27/01/2022, 9:10 Look for .bashrc in your home directory and add the line with the export command to it.
Moderators: Elijah, Igbo, timetraveller
Code: Select all
~ $ ls -a
. .. .bash_history .termux Stockfish-Polyglot storage
Archimedes wrote: ↑27/01/2022, 9:10 Look for .bashrc in your home directory and add the line with the export command to it.
Why not create '.bashrc' in the home-directory with an editor and write this export line in it? It will work!
Code: Select all
search.cpp:46:10: fatal error: curl/curl.h: No such file or directory
46 | #include <curl/curl.h>
| ^~~~~~~~~~~~~
leonhurricaneX wrote: ↑08/11/2021, 2:41 Static version of curl is already available in Termux.
Use pkg install libcurl-static
kramnik wrote: ↑06/05/2022, 17:50 Trying to compile BrainLearn 17 on Termux with GCC. It looks lile this system doesn't work...
Code: Select all
search.cpp:46:10: fatal error: curl/curl.h: No such file or directory 46 | #include <curl/curl.h> | ^~~~~~~~~~~~~
leonhurricaneX wrote: ↑08/11/2021, 2:41 Static version of curl is already available in Termux.
Use pkg install libcurl-static
Code: Select all
#include "/data/data/com.termux/files/usr/include/curl/curl.h"
Code: Select all
mcts/montecarlo.cpp: In member function 'bool Stockfish::MonteCarlo::computational_budget() const':
mcts/montecarlo.cpp:229:6: error: 'dynamic_cast' not permitted with '-fno-rtti'
229 | dynamic_cast<MainThread*>(pos.this_thread())->check_time();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [<builtin>: montecarlo.o] Error 1
Archimedes wrote: ↑06/05/2022, 20:23Code: Select all
#include "/data/data/com.termux/files/usr/include/curl/curl.h"
Code: Select all
/data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/../../../../aarch64-linux-android/bin/ld: cannot find -ldl
/data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/../../../../aarch64-linux-android/bin/ld: cannot find -lcrypto
/data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/../../../../aarch64-linux-android/bin/ld: cannot find -lnghttp2
/data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/../../../../aarch64-linux-android/bin/ld: cannot find -lssh2
/data/data/com.termux/files/cctools-toolchain/lib/gcc/aarch64-linux-android/10/../../../../aarch64-linux-android/bin/ld: cannot find -lssl
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:925: stockfish] Error 1
make[2]: Leaving directory '/data/data/com.termux/files/home/brainlearn'
make[1]: *** [Makefile:942: gcc-profile-make] Error 2
make[1]: Leaving directory '/data/data/com.termux/files/home/brainlearn'
make: *** [Makefile:797: profile-build] Error 2
Archimedes wrote: ↑07/05/2022, 10:13 You are one step further. Now add -frtti to CXXFLAGS.
By the way, you will find a working makefile for BrainLearn in my CECSA script. Compare it with the original makefile.
Sir,Archimedes wrote: ↑07/05/2022, 14:36 Now you must install all the missing static libraries. Don't know all package names. "pkg search" is your friend.
One of the needed package was ndk-multilib. Another needed package was openssl-static. And another were libnghttp2-static and libssh2-static. Install it and see what libraries are still missing during compilation. We will find the missing libraries.
https://gcc.gnu.org/superbatil wrote: ↑10/05/2022, 10:23Where can I find complete list or tutorial of CXXFLAG, CFLAG, LDFLAG?
Code: Select all
#include "syzygy/tbprobe.h"
extern "C" void __gcov_dump();
Code: Select all
cerr << "\n==========================="
<< "\nTotal time (ms) : " << elapsed
<< "\nNodes searched : " << nodes
<< "\nNodes/second : " << 1000 * nodes / elapsed << endl;
__gcov_dump();