GediminasMasaitis / chess-dot-cpp

GNU General Public License v3.0
17 stars 3 forks source link

compilation fails on Linux #1

Open tissatussa opened 1 year ago

tissatussa commented 1 year ago

some file 'texel.h' is missing ?

roelof@roelof-HP-Elite-x2-1012-G2:~/Compiled$ git clone https://github.com/GediminasMasaitis/chess-dot-cpp.git --recursive
Cloning into 'chess-dot-cpp'...
remote: Enumerating objects: 2007, done.
remote: Counting objects: 100% (272/272), done.
remote: Compressing objects: 100% (186/186), done.
remote: Total 2007 (delta 185), reused 154 (delta 85), pack-reused 1735
Receiving objects: 100% (2007/2007), 985.23 KiB | 2.71 MiB/s, done.
Resolving deltas: 100% (1572/1572), done.

roelof@roelof-HP-Elite-x2-1012-G2:~/Compiled$ cd chess-dot-cpp/
roelof@roelof-HP-Elite-x2-1012-G2:~/Compiled/chess-dot-cpp$ cd src/
roelof@roelof-HP-Elite-x2-1012-G2:~/Compiled/chess-dot-cpp/src$ cmake .
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/roelof/Compiled/chess-dot-cpp/src

roelof@roelof-HP-Elite-x2-1012-G2:~/Compiled/chess-dot-cpp/src$ make
[  5%] Building CXX object ChessDotCpp/CMakeFiles/ChessDotCpp.dir/ChessDotCpp.cpp.o
/home/roelof/Compiled/chess-dot-cpp/src/ChessDotCpp/ChessDotCpp.cpp:8:10: fatal error: texel.h: No such file or directory
    8 | #include "texel.h"
      |          ^~~~~~~~~
compilation terminated.
make[2]: *** [ChessDotCpp/CMakeFiles/ChessDotCpp.dir/build.make:76: ChessDotCpp/CMakeFiles/ChessDotCpp.dir/ChessDotCpp.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:98: ChessDotCpp/CMakeFiles/ChessDotCpp.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
tissatussa commented 1 year ago

the new v4.0 does NOT have this issue : compiling went well on Xubuntu 22.04 (using make)

now another question arises : the file size of the NNUE version is 6.3 Mb and i find the networks/default.nnue file of 6.0 Mb .. i guess this .nnue is embedded, so there's no need to set its path by the concerning UCI option ? What about the Classical version : why is it ALSO 6.3 Mb ?