1

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?

2
  • looks, from the error message, that it is trying to exec glib-2.0 >= 2.32. Commented Jan 17, 2016 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. Commented Jan 17, 2016 at 22:22

1 Answer 1

3

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.

6
  • 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. Commented Jan 18, 2016 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... Commented Jan 19, 2016 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(). Commented Jan 20, 2016 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 Commented Jan 21, 2016 at 20:54
  • 1
    Working now: see edit above Commented Jan 25, 2016 at 7:42

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.