[Nexus-developers] pkg-config and NeXus

Peterson, Peter F. petersonpf at ornl.gov
Thu May 13 15:39:56 BST 2004


Jens,

I prefer a nexus-config util to be written. I've found similar tools in other libraries (libxml2) and it is much easier to have "nexus-config --libs" in a makefile than all of the appropriate libraries listed which need to be modified by end-users that don't have the same configuration. Also, nexus-config could use pkg-config if it was detected by automake.

P^2

-----Original Message-----
From: nexus-developers-bounces at anl.gov on behalf of Jens Krüger
Sent: Thu 5/13/2004 9:29 AM
To: Akeroyd, FA (Freddie) ; 'nexus-developers at anl.gov'
Subject: Re: [Nexus-developers] pkg-config and NeXus
 
You are right, at the moment it is no good idea to remove the nxbuild, but with 
the help of some automake macros you may remove this (?).  

Other ways are:
	- extend nxbuild
	- write a script similar to pkg-config called nexus-config to do the same
	  like pkg-config (I prefer this)

Jens

Am Donnerstag, 13. Mai 2004 13:06 schrieb Akeroyd, FA (Freddie):
> Pkg-config looks very elegant to use for Makefiles etc. but I think that
> nxbuild may live on as you cannot be sure that pkg-config will be available
> on the system; also a user may install nexus to their own area and not be
> able to update the global pkg-config configuration area. Though you can get
> round the latter problem by something like
>
> env PKG_CONFIG_PATH=/my/pkgconfig/area cc myproc.c 'pkg-config --cflags
> --libs nexus'
>
> using
>
> nxbuild program.c
>
> might seem preferable to them; of course nxbuild itself can check for and
> use pkg-config if it is available and so serve as an example of how to use
> it
>
> Regards,
>
> Freddie
>
> > You are right, that nxbuild may go away in the future.
> >
> > > I assume that this also means that "nxbuild" will also go away.
> > >
> > > P^2
> > > --
>
> _______________________________________________
> NeXus-developers mailing list
> NeXus-developers at anl.gov
> http://www.neutron.anl.gov/mailman/listinfo/nexus-developers

-- 

Jens Krüger

Technische Universität München
ZWE FRM-II
Lichtenberg-Str. 1
D-85747 Garching

Tel: + 49 89 289 14 716
Fax: + 49 89 289 14 666
mailto:jens.krueger at frm2.tum.de
http://www.frm2.tum.de/


_______________________________________________
NeXus-developers mailing list
NeXus-developers at anl.gov
http://www.neutron.anl.gov/mailman/listinfo/nexus-developers










More information about the NeXus-developers mailing list