UCI question - limiting search depth

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

User avatar
hgm
Posts: 28384
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: UCI question - limiting search depth

Post by hgm »

The following three commands did it for me, starting from a virgin download:

Code: Select all

./autogen.sh
./configure
make
I hardly know anything about Linux, let alone automake, but I think ./configure is supposed to create a Makefile from Makefile.in, while ./autogen.sh contains a whole load of commands that create a configure and config.h from config.in.

If the Makefile is not present after ./configure, the latter must have terminated with errors. (Perhaps because you are missing other required packages, like libraries.)
royb
Posts: 566
Joined: Thu Mar 09, 2006 12:53 am

Re: UCI question - limiting search depth

Post by royb »

hgm wrote:The following three commands did it for me, starting from a virgin download:

Code: Select all

./autogen.sh
./configure
make
I hardly know anything about Linux, let alone automake, but I think ./configure is supposed to create a Makefile from Makefile.in, while ./autogen.sh contains a whole load of commands that create a configure and config.h from config.in.

If the Makefile is not present after ./configure, the latter must have terminated with errors. (Perhaps because you are missing other required packages, like libraries.)
I got past that last problem thanks to your hint to look more closely for errors. I had to add another package to make the autogen.sh + ./configure work.

Now a Makefile is present. When I try to compile though with make, I get quite a few errors. It appears I am missing some files:

roy@roy-laptop:~/chess/xboard-4.4.0$ make
make all-am
make[1]: Entering directory `/home/roy/chess/xboard-4.4.0'
gcc -DHAVE_CONFIG_H -I. -DINFODIR='"/usr/local/share/info"' -MT xedittags.o -MD -MP -MF .deps/xedittags.Tpo -c -o xedittags.o xedittags.c
xedittags.c:65:28: error: X11/Xaw/Dialog.h: No such file or directory
xedittags.c:66:26: error: X11/Xaw/Form.h: No such file or directory
xedittags.c:67:26: error: X11/Xaw/List.h: No such file or directory
xedittags.c:68:27: error: X11/Xaw/Label.h: No such file or directory
xedittags.c:69:32: error: X11/Xaw/SimpleMenu.h: No such file or directory
xedittags.c:70:28: error: X11/Xaw/SmeBSB.h: No such file or directory
xedittags.c:71:29: error: X11/Xaw/SmeLine.h: No such file or directory
xedittags.c:72:25: error: X11/Xaw/Box.h: No such file or directory
xedittags.c:73:32: error: X11/Xaw/MenuButton.h: No such file or directory
xedittags.c:74:26: error: X11/Xaw/Text.h: No such file or directory
xedittags.c:75:31: error: X11/Xaw/AsciiText.h: No such file or directory
xedittags.c:76:30: error: X11/Xaw/Viewport.h: No such file or directory
xedittags.c:106: error: ‘XtNdefaultDistance’ undeclared here (not in a function)
xedittags.c: In function ‘TagsCreate’:
xedittags.c:177: error: ‘XtNresizable’ undeclared (first use in this function)
xedittags.c:177: error: (Each undeclared identifier is reported only once
xedittags.c:177: error: for each function it appears in.)
xedittags.c:177: warning: assignment from incompatible pointer type
xedittags.c:188: error: ‘formWidgetClass’ undeclared (first use in this function)
xedittags.c:189: warning: passing argument 2 of ‘XtCreateManagedWidget’ from incompatible pointer type
xedittags.c:193: warning: passing argument 2 of ‘XtCreateManagedWidget’ from incompatible pointer type
xedittags.c:197: error: ‘XawtextEdit’ undeclared (first use in this function)
xedittags.c:198: error: ‘XtNuseStringInPlace’ undeclared (first use in this function)
xedittags.c:198: warning: assignment from incompatible pointer type
xedittags.c:201: error: ‘XtChainTop’ undeclared (first use in this function)
xedittags.c:202: error: ‘XtNbottom’ undeclared (first use in this function)
xedittags.c:202: warning: assignment from incompatible pointer type
xedittags.c:202: error: ‘XtChainBottom’ undeclared (first use in this function)
xedittags.c:203: error: ‘XtNleft’ undeclared (first use in this function)
xedittags.c:203: warning: assignment from incompatible pointer type
xedittags.c:203: error: ‘XtChainLeft’ undeclared (first use in this function)
xedittags.c:204: error: ‘XtNright’ undeclared (first use in this function)
xedittags.c:204: warning: assignment from incompatible pointer type
xedittags.c:204: error: ‘XtRubber’ undeclared (first use in this function)
xedittags.c:205: warning: assignment from incompatible pointer type
xedittags.c:212: error: ‘XtNscrollVertical’ undeclared (first use in this function)
xedittags.c:212: warning: assignment from incompatible pointer type
xedittags.c:212: error: ‘XawtextScrollAlways’ undeclared (first use in this function)
xedittags.c:214: error: ‘XtNautoFill’ undeclared (first use in this function)
xedittags.c:214: warning: assignment from incompatible pointer type
xedittags.c:216: error: ‘asciiTextWidgetClass’ undeclared (first use in this function)
xedittags.c:216: warning: passing argument 2 of ‘XtCreateManagedWidget’ from incompatible pointer type
xedittags.c:220: error: ‘XtNfromVert’ undeclared (first use in this function)
xedittags.c:220: warning: assignment from incompatible pointer type
xedittags.c:222: warning: assignment from incompatible pointer type
xedittags.c:223: warning: assignment from incompatible pointer type
xedittags.c:224: warning: assignment from incompatible pointer type
xedittags.c:224: error: ‘XtChainRight’ undeclared (first use in this function)
xedittags.c:226: error: ‘XtJustifyLeft’ undeclared (first use in this function)
xedittags.c:229: error: ‘labelWidgetClass’ undeclared (first use in this function)
xedittags.c:229: warning: passing argument 2 of ‘XtCreateManagedWidget’ from incompatible pointer type
xedittags.c:235: warning: assignment from incompatible pointer type
xedittags.c:237: warning: assignment from incompatible pointer type
xedittags.c:238: warning: assignment from incompatible pointer type
xedittags.c:239: warning: assignment from incompatible pointer type
xedittags.c:241: error: ‘commandWidgetClass’ undeclared (first use in this function)
xedittags.c:241: warning: passing argument 2 of ‘XtCreateManagedWidget’ from incompatible pointer type
xedittags.c:245: warning: assignment from incompatible pointer type
xedittags.c:246: error: ‘XtNfromHoriz’ undeclared (first use in this function)
xedittags.c:246: warning: assignment from incompatible pointer type
xedittags.c:248: warning: assignment from incompatible pointer type
xedittags.c:249: warning: assignment from incompatible pointer type
xedittags.c:250: warning: assignment from incompatible pointer type
xedittags.c:252: warning: passing argument 2 of ‘XtCreateManagedWidget’ from incompatible pointer type
xedittags.c:269: warning: assignment from incompatible pointer type
xedittags.c:271: warning: assignment from incompatible pointer type
xedittags.c:272: warning: assignment from incompatible pointer type
xedittags.c:273: warning: assignment from incompatible pointer type
xedittags.c:275: warning: passing argument 2 of ‘XtCreateManagedWidget’ from incompatible pointer type
xedittags.c:279: warning: assignment from incompatible pointer type
xedittags.c:280: warning: assignment from incompatible pointer type
xedittags.c:282: warning: assignment from incompatible pointer type
xedittags.c:283: warning: assignment from incompatible pointer type
xedittags.c:284: warning: assignment from incompatible pointer type
xedittags.c:286: warning: passing argument 2 of ‘XtCreateManagedWidget’ from incompatible pointer type
xedittags.c: In function ‘TagsPopUp’:
xedittags.c:362: error: ‘XtNleftBitmap’ undeclared (first use in this function)
xedittags.c:362: warning: assignment from incompatible pointer type
xedittags.c: In function ‘EditTagsPopUp’:
xedittags.c:394: error: ‘XtNleftBitmap’ undeclared (first use in this function)
xedittags.c:394: warning: assignment from incompatible pointer type
xedittags.c: In function ‘TagsPopDown’:
xedittags.c:420: error: ‘XtNleftBitmap’ undeclared (first use in this function)
xedittags.c:420: warning: assignment from incompatible pointer type
make[1]: *** [xedittags.o] Error 1
make[1]: Leaving directory `/home/roy/chess/xboard-4.4.0'
make: *** [all] Error 2

As an example, X11/Xaw/... in /etc/X11 there is no Xaw directory (if that is where it is expecting to find X11/Xaw)

Roy
User avatar
hgm
Posts: 28384
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: UCI question - limiting search depth

Post by hgm »

Indeed, it seems you are missing the Xaw library (libXaw). All later errors are a likely a consequence of that.

I am not sure how the ./configure could fail to miss that. On my Ubuntu I would try something like "sudo apt-get install libXaw". But I am afraid this is about where my *nix knowledge ends; you would need a real *nix gru to help you here. Perhaps if you post the question in the programmers section, you would have better chances to attract the attention of such a person.
royb
Posts: 566
Joined: Thu Mar 09, 2006 12:53 am

Re: UCI question - limiting search depth

Post by royb »

hgm wrote:Indeed, it seems you are missing the Xaw library (libXaw). All later errors are a likely a consequence of that.

I am not sure how the ./configure could fail to miss that. On my Ubuntu I would try something like "sudo apt-get install libXaw". But I am afraid this is about where my *nix knowledge ends; you would need a real *nix gru to help you here. Perhaps if you post the question in the programmers section, you would have better chances to attract the attention of such a person.
I got it. I had to install some xaw packages (did search in Synaptic) and ultimately a program called "flex" and then the ./autogen.sh ; ./configure; make worked.

I now have a 64-bit Xboard 4.4.0. I am not sure how to build a 64-bit .deb package of that yet, so that will be my next task. If successful, I will let you know so you can post that to your website for 64-bit Ubuntu users to download/install.

Roy
User avatar
hgm
Posts: 28384
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: UCI question - limiting search depth

Post by hgm »

I guess the quickest way would be to unpack an existing package for the i386 architecture (like the xboard-4.4.0~hgm-8_i386.deb obtainable from the WB forum) with the archive manager, rather than feeding it to the package installer.

A debian package contains two zipped folders, control and data. When you extract the files in the control section to a folder foo/DEBIAN, and the ./usr tree in the data section to foo/usr, you can then re-package with the command

dpkg -b foo NEWNAME.deb

Before you do that, you would have to replace the xboard binary foo/usr/games/xboard by an x64 compile, and update the md5 checksum for it in foo/DEBIAN/md5sums. (Be careful to throw away any backup files *~ gedit might leave behind.)