martinnovaak / motor

UCI chess engine written in C++
10 stars 2 forks source link

compile v0.4.0 on Linux : solved #82

Closed tissatussa closed 2 months ago

tissatussa commented 2 months ago

i just discovered your engine and i managed to compile v0.4.0 (github clone PR 81) on Linux, but i had to change one thing : add #include <climits> on top of the file search/time_keeper.hpp, otherwise INT_MAX was unknown ..

besides that, i needed to install cmake version >= 3.28 (i had v3.26.3), so i downloaded the newest 3.29.2 and copied the unpacked cmake folder into my /Apps folder - then i compiled like this :

/home/roelof/Apps/Cmake/cmake-3.29.2-linux-x86_64/bin/cmake -B Build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang-16 -DCMAKE_CXX_COMPILER=clang++-16 -G Ninja

/home/roelof/Apps/Cmake/cmake-3.29.2-linux-x86_64/bin/cmake --build Build --config Release

NOTE: i changed the version of both clang into v16.

the resulting binary is 1.9 Mb in size, and it runs fine in CuteChess !

[ i'm on Xubuntu 22.04 ]

martinnovaak commented 2 months ago

Thank you for compiling Motor on Linux. I will fix that include right away.

I just want to let you know that the current development version (PR 81) has bigger and stronger network than v0.4.0.

tissatussa commented 2 months ago

great! I will try to compile this new version ..

btw. in your README you could mention the needed cmake version, as i stated.