Updated April 2018
It's not hard, but requires a clear head when following the procedures.... (try not to do it at 1 am). You also need to be patient: one of the compiling steps take 20 minutes, another took 3h20m! If you miss removing one of the modules, it's another 4h before you can test. I need to thank snibgo for his generosity in helping me through the versioning issues I came across.
Snibgo's ImageMagick filters (http://im.snibgo.com/index.htm) are cool! Stick with his documentation and the extra pointers here and you might be lucky enough that it will be ready in a day. When dealing with linux-related installs, I have always missed something, had to chase down a library, modify a variable name, remove deprecated functions, update an old function call with a new one, so it is never an evening or two. Double your estimate and increase it by an order of magnitude.
Primary guide: http://im.snibgo.com/customim.htm#dev BUT BEFORE YOU FOLLOW THAT BLINDLY, compare it with what I had to do (in purple font). Snibgo is already modifying his pages/code, so you may not have to do much here after all. Some of the differences arise from ImageMagick 7 being a different version from snibgo's 6, some of it may be updated CygWin modules. I have NOT gone the linux route for running IM. This extra guide is as much for others as it will be to my future self the next time I change computers and have to do this again.
Okay so far I hope. Back to snibgo's http://im.snibgo.com/customim.htm#dev, recognizing that for him, this is the development environment, and for us, it is just the latest IM (which we did in step 2 above).
Once you get down to "Edit imdevsrc/filters/Makefile.am, replicating references to analyze. My current version of Makefile.am is shown below."
Use snibgo's version, but, until he has uploaded the following files into the batZip first edit his Makefile.am to remove references to:
Uunzip his Zipped BAT files into the filters directory
Modify these .inc files from "magick_threads" to "magick_number_threads":
filters/rmsealpha.inc line 269
filters/calcmnsd.inc: line 59
filters/whatrot.inc: line 253
compiler error: macro "VIRT_NONE" requires 2 arguments, but only 1 given
VIRT_NONE(cln); a few routines I had to add ", exception"
avgconcrings.inc: VIRT_NONE(cln);
virtnone.inc: #define VIRT_NONE(img)
whatrot.c: VIRT_NONE(sub_img);
whatrot.inc: VIRT_NONE(clnA);
whatrotscale.c: VIRT_NONE(main_ing);
whatrotscale.inc: VIRT_NONE(clnSub);
filters/cols2mat.inc:866:17: error: too few arguments to function 'AcquireKernelInfo'
c2m->kernel = AcquireKernelInfo ("6x6:1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1");
changed line 866 to read:
c2m->kernel = AcquireKernelInfo ("6x6:1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1", exception);
filters/cols2mat.c:247:57: error: 'image' undeclared (first use in this function)
ChannelType channel_mask = SetImageChannelMask (image, RedChannel);
changed lines 247, 253, 259, 265, "image" to "new_img"
Other notes:
automake - took ~5 minutes
autoconf - took ~5 minutes
./configure took ~15 minutes
make took ~ 3h20m !
make install
And.... does it work? YES!!!