lukasmonk / lucaschess

Chess GUI
http://lucaschess.pythonanywhere.com/
GNU General Public License v2.0
339 stars 76 forks source link

Can't install on Debian Bullseye #113

Open RagingFlames opened 4 years ago

RagingFlames commented 4 years ago

I'm trying to run the xlinux_install script but it isn't working. I manually found and installed all the dependencies. This is what it return when I try to install.

lc.c:169:13: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  169 |             if( promotion ) sprintf(pv, "%s%c", pv, promotion);
      |             ^~
lc.c: In function ‘getMove’:
lc.c:211:5: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  211 |     if( move.promotion ) sprintf(pv, "%s%c", pv, tolower(NAMEPZ[move.promotion]));
      |     ^~
lc.c: In function ‘getMoveEx’:
lc.c:255:5: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  255 |     sprintf(info, "%s%c%c%c", info, promotion, castle, en_passant);
      |     ^~~~~~~
lc.c: In function ‘toSan’:
lc.c:288:13: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  288 |             sprintf(sanMove, "%s=%c", sanMove, toupper(NAMEPZ[move.promotion]));
      |             ^~~~~~~
lc.c:306:9: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  306 |         if( is_amb_ah ) sprintf(sanMove,"%s%c", sanMove, POS_AH[move.from][0]);
      |         ^~
lc.c:307:9: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  307 |         if( is_amb_18 ) sprintf(sanMove,"%s%c", sanMove, POS_AH[move.from][1]);
      |         ^~
lc.c:308:9: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  308 |         if(move.capture) sprintf(sanMove,"%sx", sanMove);
      |         ^~
lc.c:309:9: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  309 |         sprintf(sanMove,"%s%s", sanMove, POS_AH[move.to]);
      |         ^~~~~~~
lc.c:316:13: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  316 |             sprintf(sanMove,"%s#", sanMove);
      |             ^~~~~~~
lc.c:318:13: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  318 |             sprintf(sanMove,"%s+", sanMove);
      |             ^~~~~~~
board.c: In function ‘board_fen’:
board.c:250:5: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  250 |     sprintf(fen, "%s %d %d", fen, board.fifty, board.fullmove);
      |     ^~~~~~~
rm: cannot remove 'LCEngine2.so': No such file or directory
running build_ext
x86_64
cp: cannot stat 'LCEngine2.so': No such file or directory
cp: cannot stat 'LCEngine2.so': No such file or directory

From looking online, the latest guide on how to install this on linux is from 5 years ago, is it possible to get a new guide?

xaizek commented 4 years ago

It works for me if I change LCEngine2.so to LCEngine4.so in LCEngine/xcython_linux.sh.

RagingFlames commented 4 years ago

Are there any plans to update the instructions or change that by default? It also still doesn't work, with a similar error.

lc.c: In function ‘pgn2pv’:
lc.c:169:13: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  169 |             if( promotion ) sprintf(pv, "%s%c", pv, promotion);
      |             ^~
lc.c: In function ‘getMove’:
lc.c:211:5: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  211 |     if( move.promotion ) sprintf(pv, "%s%c", pv, tolower(NAMEPZ[move.promotion]));
      |     ^~
lc.c: In function ‘getMoveEx’:
lc.c:255:5: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  255 |     sprintf(info, "%s%c%c%c", info, promotion, castle, en_passant);
      |     ^~~~~~~
lc.c: In function ‘toSan’:
lc.c:288:13: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  288 |             sprintf(sanMove, "%s=%c", sanMove, toupper(NAMEPZ[move.promotion]));
      |             ^~~~~~~
lc.c:306:9: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  306 |         if( is_amb_ah ) sprintf(sanMove,"%s%c", sanMove, POS_AH[move.from][0]);
      |         ^~
lc.c:307:9: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  307 |         if( is_amb_18 ) sprintf(sanMove,"%s%c", sanMove, POS_AH[move.from][1]);
      |         ^~
lc.c:308:9: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  308 |         if(move.capture) sprintf(sanMove,"%sx", sanMove);
      |         ^~
lc.c:309:9: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  309 |         sprintf(sanMove,"%s%s", sanMove, POS_AH[move.to]);
      |         ^~~~~~~
lc.c:316:13: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  316 |             sprintf(sanMove,"%s#", sanMove);
      |             ^~~~~~~
lc.c:318:13: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  318 |             sprintf(sanMove,"%s+", sanMove);
      |             ^~~~~~~
board.c: In function ‘board_fen’:
board.c:250:5: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
  250 |     sprintf(fen, "%s %d %d", fen, board.fifty, board.fullmove);
      |     ^~~~~~~
rm: cannot remove 'LCEngine4.so': No such file or directory
running build_ext
x86_64
cp: cannot stat 'LCEngine4.so': No such file or directory
cp: cannot stat 'LCEngine4.so': No such file or directory
xaizek commented 4 years ago

Have no idea why @lukasmonk hasn't updated that script yet.

Are you running the script while inside LCEngine/ directory? running build_ext should be followed by LCEngine4.so being build (invocations of gcc).

lukasmonk commented 4 years ago

Changed 2 with 4. All my efforts at the moment are focused on the new version of the program with python 3.7 and pyside2 / qt5 In the new program I would like to create a version of Linux / 64. For now I will settle for this new version to work for Windows32.

RagingFlames commented 4 years ago

Is there a time line for the Linux version? Is it worth just waiting, or should I keep googling these errors?

lukasmonk commented 4 years ago

I would like to publish the windows version after summer, and from that moment, once it stabilizes, I will try to work the Linux version. All my efforts are dedicated to this new version (LucasChessR).

RagingFlames commented 4 years ago

Alright, I understand. If there is nothing more that can be done at the moment to make this work on Linux you can close this issue if you want, or leave it open until its working for reference.

xaizek commented 4 years ago

It works on Linux. Look through scripts and files in LCEngine/ directory, maybe you'll figure it out. For example xcython_linux.sh invokes python command. Is that python2 on your system? If not, you should change that to python2.