[XForms] Adding source files to fdesign.

Angus Leeming angus.leeming at btopenworld.com
Mon May 17 03:24:07 EDT 2004


On Sunday 16 May 2004 10:04 am, jason cipriani wrote:
> To subscribers of the xforms list
>
>
> Ok. I've been struggling with this for a while now. I'm a bit lost
> when it comes to all this 'configure' stuff and, building Makefiles
> from other makefiles from other makefiles, and that kind of stuff.
> Could somebody please explain to me how to add a source file to the
> fdesign/spec directory, and actually get it to compile?

Ok. We don't actually compile anything in this directory, for reasons 
of historical laziness. Instead, what has happened is that we 
#include both the .h and the .c file in the 'parent' file in the 
fdesign directory. 

See, eg, sp_xyplot.c:

sp_xyplot.c:#include "spec/xyplot_spec.h"
sp_xyplot.c:#include "spec/xyplot_spec.c"

You should add your files to the EXTRA_DIST target in 
fdesign/spec/Makefile.am to ensure that they are distributed when the 
library is packaged as a tar file.

> I've got a working GLX context sharing patch, it's great.

Well done.

> Adding fdesign support for it... that seems to be the hard part.
> Here is what I have done as far as fdesign source files go:
>
> 1) Added fdesign/sp_glcanvas.c (and fdesign/.deps/sp_glcanvas.Po),
> it compiles, just fine.

Good. You've modified the generated Makefile it would appear. No 
problem, I can easily move this to Makefile.am.

> Added fdesign/spec/glcanvas_spec.fd/.c/.h. And I can't, for
> the life of me, convince make to compile glcanvas_spec.c.

See above.

> (Just to make it clear, the problem is that the source file isn't
> compiling at all; it's not a problem with actual compiler/linker
> errors aside from the obvious linker errors from undefined
> references to functions in that source file).
>
> I pretty much copied all the freeobj stuff, since that seemed to be
> the simplest. Still, I can't figure this out. Call me stupid.

Not today ;-)
Angus

> Thanks,
> Jason



More information about the Xforms mailing list