This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Very basic version command


Ugh, top-posting.  Reformatted...

On Mon, 5 Sep 2005, Barry Demchak wrote:

> At 03:31 PM 9/5/2005, Igor Pechtchanski wrote:
> > On Mon, 5 Sep 2005, Barry Demchak wrote:
> >
> > > Hi, all --
> > >
> > > Sorry for submitting something so silly.
> > >
> > > Question: What is the command for finding out the version of a
> > > library installed on Cygwin?
> >
> > It's easy to find out the version of an official Cygwin package that
> > supplies a given library.  If you know the name of the package (say,
> > "libfoo"), simply run "cygcheck -cd libfoo".  If you don't know the
> > package that supplies it, but know the name of the library (say,
> > /usr/lib/libfoo.a), run "cygcheck -f /usr/lib/libfoo.a" -- it will
> > tell you both the package and the version.
> >
> > > I'm trying to find out what version of the librsvg library I'm
> > > using.
> >
> > AFAICS, there is no librsvg in the cygwin distribution.  If it was a
> > typo, the above recipe should work for the actual library name.  If
> > you actually do have a librsvg on your machine, I don't know of a
> > general way to do what you want.
>
> Thanks, Igor --
>
> I have not yet been able to make cygcheck work,

Huh?  Out of curiosity, exactly what kinds of problems did you have with
cygcheck?

> [snip pkg-config info]
> $ pkg-config --cflags librsvg-2.0
> -I/usr/local/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Bingo!  It's not a standard Cygwin package, and thus cygcheck will not
help you here...

> Anything is easy once we already know the answer.
> Woof.
>
> I'm guessing that cygcheck couldn't work for librsvg because it's not a
> cygwin library and not in the cygwin registry ... a naive guess ...
> maybe it's right??

Yep, cygcheck's "-c" and "-f" flags only work for packages installed with
the Cygwin installer.  Anything you compile from source is not going to be
visible to cygcheck.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]