hgm wrote:The following three commands did it for me, starting from a virgin download:
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