WinBoard-4.4.0beta2 Installer

Discussions about the WinBoard protocol. Here you can also report bugs and request new features.

Moderators: hgm, Andres Valverde

WinBoard-4.4.0beta2 Installer

Postby Charles Browne » 31 Aug 2009, 02:09

I won't be around much to test this later but thought I would let you know that this dialog box pops up for me when using the installer (Windows Me).

If I choose the full install selections the box pops up. If I install just what I would normally install, the non-variant things, the box doesn't pop up.

When I click ok the installation continues.


Image
Charles Browne
 
Posts: 209
Joined: 26 May 2008, 00:30

Re: WinBoard-4.4.0beta2 Installer

Postby H.G.Muller » 31 Aug 2009, 10:40

It seems the install hangs when it tres to place the font in C:\WINDOWS\Fonts. Is this indeed the correct name where the fonts have to be installed on your system?
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: WinBoard-4.4.0beta2 Installer

Postby matematiko » 31 Aug 2009, 13:18

Looks like C:\WINDOWS\Fonts holds true for Windows XP,

According to Font installation instructions I found in one site:
Code: Select all
How to install a font

Unzip the files you have downloaded, then :

Windows Vista : Right-click on the font files (.ttf, .otf, .fon) then click Install
Windows XP : Put the font files (.ttf, .otf, .fon) into “C:\Windows\Fonts” or in the font folder in control panel.
Mac OS X : Put the font files (.ttf, .otf) into /Library/Fonts


Looks like in vista there is not a directory to copy the fonts to, but rather the fonts need to be installed.
One that does not live to serve, does not deserve to live.
matematiko
 
Posts: 219
Joined: 07 Dec 2008, 17:11
Location: Texas

Re: WinBoard-4.4.0beta2 Installer

Postby Charles Browne » 31 Aug 2009, 22:02

H.G.Muller wrote:It seems the install hangs when it tres to place the font in C:\WINDOWS\Fonts. Is this indeed the correct name where the fonts have to be installed on your system?


Yes, (Windows Me) all fonts are installed to C:\WINDOWS\Fonts.
Charles Browne
 
Posts: 209
Joined: 26 May 2008, 00:30

Re: WinBoard-4.4.0beta2 Installer

Postby Mathieu » 31 Aug 2009, 22:43

Don't know if it's useful to tell, but all works fine with my WinXP SP3... so maybe a WinMe problem?
Mathieu
 
Posts: 26
Joined: 08 Sep 2008, 22:42

Re: WinBoard-4.4.0beta2 Installer

Postby Charles Browne » 31 Aug 2009, 23:42

I downloaded the 4.4.0beta2 installer again and the dialog box shown in the above graphic does not pop up now. Yesterday the dialog box popped up on various (many) attempts at installing but now it does not ever pop up. This might have been some fluke on this specific computer.

In the future if anyone says the dialog box pops up for them, at least you will know you have seen it before.
Charles Browne
 
Posts: 209
Joined: 26 May 2008, 00:30

Re: WinBoard-4.4.0beta2 Installer

Postby matematiko » 01 Sep 2009, 03:38

Were you admin all the times?

Just curious.

Cheers,
One that does not live to serve, does not deserve to live.
matematiko
 
Posts: 219
Joined: 07 Dec 2008, 17:11
Location: Texas

Re: WinBoard-4.4.0beta2 Installer

Postby Charles Browne » 01 Sep 2009, 03:43

matematiko wrote:Were you admin all the times?

Just curious.

Cheers,



This Windows Me since I've had it the last eight years is always installed for all users to use the same settings. So in that sense there is no admin stuff :) here.
Charles Browne
 
Posts: 209
Joined: 26 May 2008, 00:30

Re: WinBoard-4.4.0beta2 Installer

Postby H.G.Muller » 01 Sep 2009, 07:55

The second font (XIANGQI.ttf in the Xiangqi optional files) often gives me trouble. On Vista it was unpacked in the Windows\Fonts folder, and when I clicked it there it showed all the characters, but it was not installed and other applications did not recognize the font. I had to move it elsewhere, then right-click it and select "install" to get it working. No such problems with the ChessMark font.

I also got into a situation where on my XP the font woud install, but show up as all spaces. (No matter how I installed it, by hand or through the installer.) This was cured by rebooting the system. Aso there, no problems with ChessMark.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: WinBoard-4.4.0beta2 Installer

Postby Charles Browne » 01 Sep 2009, 11:10

H.G.Muller wrote:The second font (XIANGQI.ttf in the Xiangqi optional files) often gives me trouble.


I'm not going to say that this font is what caused the dialog box to pop up for me but looking in the font folder here can be seen no font with the name XIANGQI. What I do have is a font file with absolutely no filename, just a font file in the folder. When this no name font file is clicked on and opened, I see the word "XIANGQI" inside the file and the graphics inside this file look normal enough. If I copy the no name - XIANGQI - font file to the desktop and then delete the font file from the font folder, and then install the font from the desktop copy, the name XIANGQI does appear under the font file in the font folder.

I'm afraid I cannot be of much help to you further as this is a very old operating system I am using and you should be more concerned with what happens on Windows XP and higher, and rightly so.

Even the next released Cygwin is going to leave me behind, and I just learned how to use some of it last year. :(
Charles Browne
 
Posts: 209
Joined: 26 May 2008, 00:30

Re: WinBoard-4.4.0beta2 Installer

Postby H.G.Muller » 01 Sep 2009, 11:43

Weird. This really looks like a system error, like something was crashing during the extraction of the font file. The error occurred while the install ws busy in the C:\WINDOWS\Fonts folder, and there are only two fonts included in the package, so it does seem very likely that it must have been the XIANGQI font.

On my XP I have the strange phenomenon that it seems to want internet access to install the fonts. If I have Internet Explorers open, the install often hangs at a font, causing an IE dialog to pop up asking me if I want to work off line or try again. And the install won't continue before I answer that...
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: WinBoard-4.4.0beta2 Installer

Postby Charles Browne » 01 Sep 2009, 11:54

H.G.Muller wrote:If I have Internet Explorers open, the install often hangs at a font, causing an IE dialog to pop up asking me if I want to work off line or try again. And the install won't continue before I answer that...


Well Harm, I can honestly say that I have never ever had a browser open while trying to install any program :). That is a new one on me. But you know way more about computers than I ever will. :)

Take it easy,
Charles Browne
 
Posts: 209
Joined: 26 May 2008, 00:30

Re: WinBoard-4.4.0beta2 Installer

Postby matematiko » 02 Sep 2009, 03:27

I have tried 2 compilation methods to no avail:

cygwin reports this:

Image

Additionally, if somebody can please tell me the command or arguments that need to be passed in the command line in order to make the resulting Winboard.exe non-cygwin1.dll dependent.


When trying Dev-C (version 4.9.9.2), opening Winboard.dev and trying Execute-Compile, I get the next log:

Code: Select all
Compiler: Default compiler
Building Makefile: "C:\xboard-4.4.0.beta2\winboard\Makefile.win"
Executing  make...
make.exe -f "C:\xboard-4.4.0.beta2\winboard\Makefile.win" all
gcc.exe ./objs/wsockerr.o ./objs/parser.o ./objs/wclipbrd.o ./objs/wedittags.o ./objs/wengineo.o ./objs/wevalgraph.o ./objs/wgamelist.o ./objs/whistory.o ./objs/winboard.o ./objs/wlayout.o ./objs/woptions.o ./objs/wsnap.o ./objs/uci.o ./objs/backend.o ./objs/book.o ./objs/gamelist.o ./objs/lists.o ./objs/moves.o ./objs/pgntags.o ./objs/zippy.o ./objs/help.o ./objs/Winboard_private.res -o "Winboard.exe" -L"C:/Dev-Cpp/lib" -mwindows -fpic -s -mwindows -lwsock32 -lwinmm -lcomctl32  -s

./objs/winboard.o(.text+0x1b070):winboard.c: undefined reference to `EngineOptionsPopup'
./objs/winboard.o(.text+0x1b089):winboard.c: undefined reference to `EngineOptionsPopup'
collect2: ld returned 1 exit status

make.exe: *** [Winboard.exe] Error 1

Execution terminated


Thanks for the help

matematiko,

EDIT: Forgot to mention I was using as source: unstable version: 4.4.0.beta2 (2009-08-31) found at:
ftp://alpha.gnu.org/gnu/xboard/xboard-4.4.0.beta2.tar.gz
One that does not live to serve, does not deserve to live.
matematiko
 
Posts: 219
Joined: 07 Dec 2008, 17:11
Location: Texas

Re: WinBoard-4.4.0beta2 Installer

Postby H.G.Muller » 02 Sep 2009, 08:56

You seem to have installed only the part of the sources tht were in the winboard directory. So many source files (including backend.c) are missing, and you cannot compile without them. These files have to be in the parent directory of the one where you compile.

The command you give to compile is the correct one. Just make sure you have all the files.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: WinBoard-4.4.0beta2 Installer

Postby matematiko » 02 Sep 2009, 13:06

H.G.Muller wrote:You seem to have installed only the part of the sources tht were in the winboard directory. So many source files (including backend.c) are missing, and you cannot compile without them. These files have to be in the parent directory of the one where you compile.

The command you give to compile is the correct one. Just make sure you have all the files.


You are absolutly right Mr. Muller, I tought that was all I needed....I'll try again.

Thanks,
One that does not live to serve, does not deserve to live.
matematiko
 
Posts: 219
Joined: 07 Dec 2008, 17:11
Location: Texas

Re: WinBoard-4.4.0beta2 Installer

Postby matematiko » 03 Sep 2009, 04:20

I missunderstood the statement, I tought you meant Mr. Muller that I needed to copy files from the parent directory to the winboard directory.

I did and have the same result. Then after re-reading your post it came to me that maybe you thougth I had moved the Winboard directory to another location and then tried to compile from there without the parent directory, but that is not the case. I unzipped the downloaded file to c:\ and did not change/moved anything.

Anyway, the thing is that I am still getting the same error while trying to compile:
Code: Select all
Compiler: Default compiler
Building Makefile: "C:\xboard-4.4.0.beta2\winboard\Makefile.win"
Executing  make...
make.exe -f "C:\xboard-4.4.0.beta2\winboard\Makefile.win" all
gcc.exe -c wsockerr.c -o ./objs/wsockerr.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c parser.c -o ./objs/parser.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c wclipbrd.c -o ./objs/wclipbrd.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c wedittags.c -o ./objs/wedittags.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c wengineo.c -o ./objs/wengineo.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c wevalgraph.c -o ./objs/wevalgraph.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c wgamelist.c -o ./objs/wgamelist.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c whistory.c -o ./objs/whistory.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c winboard.c -o ./objs/winboard.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c wlayout.c -o ./objs/wlayout.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c woptions.c -o ./objs/woptions.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c wsnap.c -o ./objs/wsnap.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c ../uci.c -o ./objs/uci.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c ../backend.c -o ./objs/backend.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

../backend.c:13826:2: warning: no newline at end of file
In file included from ../backend.c:12518:
../backend.c: In function `ParseFeatures':
../backend.c:12385: warning: passing arg 3 of `StringFeature' from incompatible pointer type

In file included from ../backend.c:12526:
../backend.c:12385: warning: passing arg 3 of `StringFeature' from incompatible pointer type

In file included from ../backend.c:12550:
../backend.c:12385: warning: passing arg 3 of `StringFeature' from incompatible pointer type

In file included from ../backend.c:12551:
../backend.c:12385: warning: passing arg 3 of `StringFeature' from incompatible pointer type

gcc.exe -c ../book.c -o ./objs/book.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c ../gamelist.c -o ./objs/gamelist.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c ../lists.c -o ./objs/lists.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c ../moves.c -o ./objs/moves.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c ../pgntags.c -o ./objs/pgntags.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c ../zippy.c -o ./objs/zippy.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

gcc.exe -c help.c -o ./objs/help.o -I"C:/Dev-Cpp/include"  -I.. -I. -DNDEBUG   -O3

windres.exe -i Winboard_private.rc --input-format=rc -o ./objs/Winboard_private.res -O coff  --include-dir ..

gcc.exe ./objs/wsockerr.o ./objs/parser.o ./objs/wclipbrd.o ./objs/wedittags.o ./objs/wengineo.o ./objs/wevalgraph.o ./objs/wgamelist.o ./objs/whistory.o ./objs/winboard.o ./objs/wlayout.o ./objs/woptions.o ./objs/wsnap.o ./objs/uci.o ./objs/backend.o ./objs/book.o ./objs/gamelist.o ./objs/lists.o ./objs/moves.o ./objs/pgntags.o ./objs/zippy.o ./objs/help.o ./objs/Winboard_private.res -o "Winboard.exe" -L"C:/Dev-Cpp/lib" -mwindows -fpic -s -mwindows -lwsock32 -lwinmm -lcomctl32  -s

./objs/winboard.o(.text+0x1b070):winboard.c: undefined reference to `EngineOptionsPopup'
./objs/winboard.o(.text+0x1b089):winboard.c: undefined reference to `EngineOptionsPopup'
collect2: ld returned 1 exit status

make.exe: *** [Winboard.exe] Error 1

Execution terminated



This time I included the warnings, the above compilation attempt was using Dev-C++

After this, I figured that my problem might be that I am in Vista x64, so, I launched my Windows XP 32 Virtual Machine, installed latest version of cygwin with all the development tools, perl, editors and what not.

Downloaded and decompressed ftp://alpha.gnu.org/gnu/xboard/xboard-4 ... ta2.tar.gz to my home directory and tried again to compaile from there, now these are the warnings and errors I am getting:

Image


I will trying on my own, but any help will be appreciated.

Cheers,

EDIT: Dev-C++ In my VM Windows XP 32 rendered exactly the same compilation log as in Windows Vista x64.
Last edited by matematiko on 03 Sep 2009, 04:46, edited 1 time in total.
One that does not live to serve, does not deserve to live.
matematiko
 
Posts: 219
Joined: 07 Dec 2008, 17:11
Location: Texas

Re: WinBoard-4.4.0beta2 Installer

Postby Charles Browne » 03 Sep 2009, 04:45

matematiko wrote:
Downloaded and decompressed ftp://alpha.gnu.org/gnu/xboard/xboard-4 ... ta2.tar.gz to my home directory and tried again to compaile from there, now these are the warnings and errors I am getting:

Image


I will trying on my own, but any help will be appreciated.

Cheers,



You are almost finished.

This is what you need to do now. Others may offer an alternative way of doing it but this works for me.

1). Open the makefile.gcc file with a text editor and find these lines. All of the lines will be together.

Code: Select all
# Update the help file if necessary
$(PROJ).hlp : $(PROJ).rtf
   $(HC) $(PROJ).hpj
   @cat $(PROJ).err
   @mv $(PROJ).hlp tmp.hlp
   @mv tmp.hlp $(PROJ).hlp # these moves to get the case right



Then "comment out" the additional three lines as shown below.

Code: Select all
# Update the help file if necessary
#$(PROJ).hlp : $(PROJ).rtf
#   $(HC) $(PROJ).hpj
#   @cat $(PROJ).err
   @mv $(PROJ).hlp tmp.hlp
   @mv tmp.hlp $(PROJ).hlp # these moves to get the case right



Close the text editor and if it ask if you want to save the changes click "yes".


Additionally you will need to find a help file (file with a .hlp extension) and put it in the "winboard" folder where the makefile.gcc file is located. Do a search on your computer and you should be able to easily locate a .hlp file. You can use any other programs help file it does not matter, when compiling the source files a .hlp file just needs to be sensed in the folder.

Other's may give other advice but the above works for me. What your above graphic shows I have seen before, and what I have described is how I overcome it.
Charles Browne
 
Posts: 209
Joined: 26 May 2008, 00:30

Re: WinBoard-4.4.0beta2 Installer

Postby matematiko » 03 Sep 2009, 05:08

It worked.....thank you very much Mr. Browne

I am a happy camper now.

Cheers,
One that does not live to serve, does not deserve to live.
matematiko
 
Posts: 219
Joined: 07 Dec 2008, 17:11
Location: Texas

Re: WinBoard-4.4.0beta2 Installer

Postby Charles Browne » 03 Sep 2009, 05:50

matematiko,

A couple of last tips that I learned from this forum when I was learning to compile Winboard using Cygwin.


1). Suppose you now want to compile Winboard again using the source files that you have now used on your computer.

Since you have already compiled Winboard already, the source files will now have residual files in them from that previous compile.

To remove these residual files from the source files.

When you have changed directory to the "winboard" folder in the Cygwin console.

Before typing:

make -f makefile.gcc

You would instead type:

rm *.o

Doing this will remove all of the .o extension (object files) that were created during the previous Winboard compile. In essence you will be starting off with a clean slate by removing these .o extension files. If you keep the .o files in the source files, then the compiler will just use these .o files from the previous compilation to compile Winboard with.

After I have compiled Winboard. When the Cygwin prompt appears again I just type - rm *.o - to remove the object files.



******************************************************


2). When the you have successfully compiled Winboard and the Cygwin prompt appears again type:

strip winboard.exe

and press enter.

Doing this will remove unnecessary information from the executable file, resulting in a much smaller executable file.

Someone else would need to explain to you exactly what the strip command does, but I use it when compiling Winboard and I learned about it from this forum.


******************************************************

So typically this is the order I do things in the Cygwin console when I have changed directory to the winboard source files directory.


1). Type:

make -f makefile.gcc

2). If the compile was successful, when the Cygwin prompt appears, I would then type:

strip winboard.exe


3). When the Cygwin prompt appears again I would then type:

rm *.o

and then when the Cygwin prompt appears again I would close the Cygwin console window.


Now if the compile was not successful, such as error messages appearing. I would then type - rm *.o - when the Cygwin prompt appears again so that when I go to compile again, none of the previously created .o (object files) would be interferring with my next compile attempt.



Hope all of this wasn't too confusing.


As far as the parser warnings in your graphic go, H.G. Muller is aware of these warnings.
Charles Browne
 
Posts: 209
Joined: 26 May 2008, 00:30

Re: WinBoard-4.4.0beta2 Installer

Postby H.G.Muller » 03 Sep 2009, 10:33

Some remarks to this:

I think the new makefile (Makefile.gcc; the previous one was called cygwin.mak) automatically strips the winboard.exe it builds, so there is no need for stripping it afterwards. You could confirm this by looking at the file size before and after stripping.

The makefile also contains descriptions for other actions (following the conventions for this). To get rid of all the temporary files a normal build would leave (e.g. *.o), you can type "make clean". (It also removes the .exe, I think.) An even more rigorous cleanup would be done by "make dist-clean": it would not only remove temporaries from compiling / linking, but everything that is not strictly source. Even if it needs unusual utlities to build it. For WinBoard "make dist-clean" would also remove parser.c, for example, which then needs to be re-built from parser.l by flex. Which would be done automatically when you "make -f", but would put you in a spot if you did not have flex installed on your system. ("dist" stands for "distribution".)
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Next

Return to WinBoard development and bugfixing

Who is online

Users browsing this forum: No registered users and 7 guests