Compile WinBoard 4.9 on Linux
Posted: 06 Apr 2023, 07:23
Hello everybody.
I tried to build WinBoard on Linux.
Here the command that I used:
I had to remove this line from makefile.gcc,
because the option -mno-cygwin was not recognized.
First I got the following errors:
The solution was to replace W with w.
Then I got this error:
As I didn't really know how to fix it, I made the following quick and dirty modifications in help.c:
And after that I could compile WinBoard and run it with wine.
I could even build the help file like this:
I had downloaded hcrtf.exe from this page.
This line cannot work on Linux I believe:
I simply did this:
P.-S. Here is the content of winboard.err:
I tried to build WinBoard on Linux.
Here the command that I used:
- Code: Select all
make -f makefile.gcc CC=i686-w64-mingw32-gcc
I had to remove this line from makefile.gcc,
- Code: Select all
USE_MINGW=1
because the option -mno-cygwin was not recognized.
First I got the following errors:
wsettings.c:39:10: fatal error: Windowsx.h: No such file or directory
39 | #include <Windowsx.h>
| ^~~~~~~~~~~~
wchat.c:36:10: fatal error: Windowsx.h: No such file or directory
36 | #include <Windowsx.h>
| ^~~~~~~~~~~~
The solution was to replace W with w.
Then I got this error:
/usr/lib/gcc/i686-w64-mingw32/10.2.1/../../../../i686-w64-mingw32/bin/ld: help.o:help.c:(.bss+0x0): multiple definition of `debugFP'; backend.o:backend.c:(.bss+0x1c53a8): first defined here
As I didn't really know how to fix it, I made the following quick and dirty modifications in help.c:
- Code: Select all
//FILE *debugFP;
siStartInfo.hStdError = NULL;//debugFP;
And after that I could compile WinBoard and run it with wine.
I could even build the help file like this:
- Code: Select all
wine "hc/hcrtf.exe" -xn winboard.hpj
I had downloaded hcrtf.exe from this page.
This line cannot work on Linux I believe:
- Code: Select all
@mv $(PROJ).hlp tmp.hlp && @mv tmp.hlp $(PROJ).hlp
I simply did this:
- Code: Select all
mv WINBOARD.HLP winboard.hlp
P.-S. Here is the content of winboard.err:
Microsoft (R) Help Compiler
HCRTF 4.03.0002
Copyright (c) Microsoft Corp 1990 - 1995. All rights reserved.
winboard.hpj
HC3096: Warning: topic #1 of H:\echecs\sources\xboard-v4.9.x-167d205\winboard\winboard.rtf :
The font name "Franklin Gothic Medium Cond Greek" is longer than 31 characters.
HC3096: Warning: topic #1 of H:\echecs\sources\xboard-v4.9.x-167d205\winboard\winboard.rtf :
The font name "Franklin Gothic Medium Cond Baltic" is longer than 31 characters.
HC3096: Warning: topic #1 of H:\echecs\sources\xboard-v4.9.x-167d205\winboard\winboard.rtf :
The font name "Franklin Gothic Demi Cond Baltic" is longer than 31 characters.
541 Topics
204 Jumps
548 Keywords
0 Bitmaps
Created H:\echecs\sources\xboard-v4.9.x-167d205\winboard\winboard.hlp, 244,553 bytes
Compile time: 0 minutes, 0 seconds
0 notes, 3 warnings