[XForms] Version 1.0.90

Angus Leeming angus.leeming at btopenworld.com
Fri Jun 18 18:11:08 EDT 2004


On Friday 18 June 2004 9:32 pm, Gayle C Roth wrote:
> To subscribers of the xforms list
>
>
> Hi.
>
> I'm experiencing several problems as I try to build the demos on
> VMS.  There appear to be inconsistencies between struct definitions
> and usage in the source code.  This has happened already in 3
> cases, and I'm only up to demotest (I'm doing it in alphabetical
> order).  An example of this is while attempting to compile
> buttonall.c, the source file refers to members of the FD_buttform
> struct that appear not to exist -- for example, 'backface',
> 'objsgroup, 'done', 'pbutt', 'bbutt', and 'bw_obj' are referenced
> as members of FD_buttform, but in the file pallette.h, which has
> the definition of FD_buttform, these members do not exist!  Is
> there something I'm missing, or is this a mistake?

Given that buttonall.c has these #includes only:

#include "include/forms.h"
#include "fd/buttons_gui.h"   /* from fd/ directory */
#include <stdlib.h>

(note that pallette.h is not one of them), I'd guess that you are 
mistaken.

"fd/buttons_gui.h" is meant to be generated from fd/buttons_gui.fd 
during the build process. The relevant part of demos/Makefile.am is:

buttonall_SOURCES = buttonall.c
nodist_buttonall_SOURCES = fd/buttons_gui.c fd/buttons_gui.h
buttonall.$(OBJEXT): fd/buttons_gui.c

which says that "buttonall.o" depends on fd/buttons_gui.c.

At the the bottom of demos/Makefile.am is the make rule defining how 
to go from a .fd file to a .c one:

.fd.c: ../fdesign/fdesign
        ../fdesign/fdesign -dir fd -convert $<

The moral, go into demos/fd and run the equivalent of

#! /bin/sh
for file in *.fd
do
	${PATH TO FDESIGN}/fdesign -convert $file
done

which should give you the .[ch] files from the .fd ones.

HTH,
Angus



More information about the Xforms mailing list