I downloaded the source for rmlint and am trying to compile it on cygwin. When I run scons, it says Checking for glib-2.0 >= 2.32... Error: glib-2.0 >= 2.32 not found.

In the cygwin setup facility, it shows I have the libglib 2.0_0 2.46.2-1 package installed. I re-installed it for good measure, but no luck.

How could I try to find the library on my filesystem, and how do I tell scons where it's located?

  • looks, from the error message, that it is trying to exec glib-2.0 >= 2.32. – ctrl-alt-delor Jan 17 '16 at 21:12
  • @richard Yes, I am trying to figure out how to verify that it actually is installed, as the cygwin setup seems to claim, and then point scons to its location. – user394 Jan 17 '16 at 22:22

Hi I'm one of the rmlint dev's.

Unfortunately I don't think you'll be able to get rmlint running under cygwin (although happy to be proven wrong).

Edit: have been proven wrong. Now have more-or-less working command-line version of rmlint under cygwin. It requires:

  • gcc-core
  • pkg-config
  • libglib2.0-devel
  • libtool

and optionally:

  • libjson-glib 1.0-devel
  • libblkid-devel
  • libelf-devel

There seems to be no filemap support under cygwin so rmlint can't do its normal optimisation of file order to reduce seek times and thrash.

|improve this answer|||||
  • Hey, thanks for chiming in! : ) Would you care to comment on the technical details of why it probably won't work? I just assumed it was a problem with cygwin placing glib, not scons or your package. – user394 Jan 18 '16 at 18:30
  • Maybe I'm just being pessimistic but there are quite a few dependencies (python3-sphinx, gettext, json-glib, libblkid, elfutils, fts) and also some low-level system calls (eg stat), each of which would potentially need some debugging to get working. Would love to have a working Windows version of course... – thomas_d_j Jan 19 '16 at 23:47
  • 1
    Ok I may take a closer look. Elfutils is only used for non-stripped binaries so is not indispensable. Fts is used for directory traversal and looks like there is already a version in cygwin (cygwin.com/git/gitweb.cgi?p=newlib-cygwin.git;a=blob;f=winsup/…) although to be honest we have never liked fts so I'm tempted to replace it with a lower-level solution eg based on opendir()/readdir(). – thomas_d_j Jan 20 '16 at 7:21
  • 1
    If you install libglib2.0-devel in cygwin you will get past the pkg-config checks. Cygwin seems to be missing a few functions (preadv, realpath, fileno) but at least it's progress – thomas_d_j Jan 21 '16 at 20:54
  • 1
    Working now: see edit above – thomas_d_j Jan 25 '16 at 7:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.