On Fri, 06 Mar 2015 16:59:10 +0200, Graham Inggs <gra...@nerve.org.za> wrote:
> On 06/03/2015 08:29, Stephen Kitt wrote:
> > Looking through all the headers in libmotif-dev, only headers from
> > libx11-dev, libxft-dev and libxt-dev are included in header files
> > provided by libmotif-dev, so you could provide a one-stop-shop with only
> > these three extra dependencies.
> 
> Thanks for doing this.  I note that libxft-dev and libxt-dev both depend 
> on libx11-dev.
> Do you think it would be safe to depend on libxft-dev and libxt-dev and 
> rely on them pulling in libx11-dev, or is it better to explicitly depend 
> on libx11-dev as well?

It would be better to depend explicitly on libx11-dev, but I doubt the
dependency in libxft-dev and libxt-dev on libx11-dev is going to disappear
any time soon...

> Just out of interest, I tried to find the minimum extra dependencies 
> (besides the current libmotif-dev) required to build all of the included 
> demos.
> I managed to build most of them by only adding libxt-dev.  The earth 
> demo required libxext-dev as well.
> This method missed out libxft-dev though, but it is needed by Xm/TextFP.h.

Right, and I see quite a few of the demo programs only include Motif headers,
not X11 headers, so they should really be able to build with only
libmotif-dev and its dependencies. earth needs libxext-dev but it explicitly
includes X11/extensions/shape.h, so that's fine.

Regards,

Stephen

Attachment: pgpX1s6BGhsCf.pgp
Description: OpenPGP digital signature

Reply via email to