Page 2 of 4

Re: Processing for print

Posted: 2015-02-18T16:09:46-07:00
by afre
Yeah, kept on typing the extra "s" 8) .

Re: Processing for print

Posted: 2015-02-18T22:32:57-07:00
by afre
snibgo: Good, analyze is on the list now. A lot is going on here. Correct me if I am wrong: All I need to do is copy Makefile.am and the *.c files to filters; the rest is just to explain what modules, etc., are. If that's the case, then I just need to rebuild %im32f%. For my PC, it takes a very long time to build, so I want to make sure I don't have to do it unnecessarily anymore :? .

Re: Processing for print

Posted: 2015-02-19T00:12:44-07:00
by snibgo
afre wrote:Correct me if I am wrong: All I need to do is copy Makefile.am and the *.c files to filters ...
You can get all the C sources from one zip file, see http://im.snibgo.com/zipbats.htm

Annoyingly, makefle.am doesn't get stuffed into the zip [I'll correct this], so you'll have to copy-paste it from the website.

Yes, just copy those, then the five commands: "automake" to "make install".

[If I've missed a step, please tell me, and I'll correct the web page.]

A full IM build takes my laptop about 30 minutes. If I've only changed a process module, I only need "make install" which is about 10 minutes.

On the web page, I say:
snibgo wrote:Edit magick/module.c and magick/static.c. In these source files, search for analyze, and add code for any other modules. This is only needed if we link the modules into a single library or binary. If we configure if with --with-modules=yes, we don't need to change these source files (I think).
My current practice is to use --with-modules=yes, so I don't modify magick/module.c and magick/static.c.

Re: Processing for print

Posted: 2015-02-19T15:02:48-07:00
by afre
Makes sense. Will give it a try sometime. BTW—is analyze.c legit or just a dummy module? It's included in your Makefile.am; however,
[i]snibgo[/i] wrote:The numbers are clearly wrong (the mean lightness isn't that low) but the point is that the analyze module does run.

Re: Processing for print

Posted: 2015-02-19T15:16:12-07:00
by snibgo
I dunno. When I wrote that page, I thought the numbers were clearly wrong. But now they are not. 2e9 is a reasonable number for the mean, as 2^32 = 4e9. I'll remove the comment about it being wrong.

Re: Processing for print

Posted: 2015-02-19T19:04:45-07:00
by fmw42
analyze.c was the original template example at http://www.imagemagick.org/script/archi ... hp#filters

Re: Processing for print

Posted: 2015-02-20T01:17:17-07:00
by afre
snibgo, it takes my PC much longer to build IM :(. Current errors:

Code: Select all

  CC       filters/filters_hellow_la-hellow.lo
filters/hellow.c: In function 'hellowImage':
filters/hellow.c:12:5: warning: unused variable 'image_info' [-Wunused-variable]
     image_info;
     ^
  CCLD     filters/hellow.la
...

Code: Select all

make[1]: *** No rule to make target 'filters/onewhite.c', needed by 'filters/filters_onewhite_la-onewhite.lo'.  Stop.

Re: Processing for print

Posted: 2015-02-20T01:25:18-07:00
by snibgo
afre wrote:warning: unused variable ...
Don't worry about warnings.
afre wrote:target 'filters/onewhite.c'
If you haven't got a .c file (probably because I forgot to include it), remove all references to that module from makefile.am.

Re: Processing for print

Posted: 2015-02-20T09:55:43-07:00
by afre
snibgo wrote:Don't worry about warnings.
Guess it wouldn't matter esp. since it's a hellow :lol:. BTW eqfish2rect.c onewhite.c segscanmerge.c sortlines.c don't exist. Any of them needed by your scripts? If not, I will remove their references, build and hope for the best 8).

Re: Processing for print

Posted: 2015-02-20T11:58:29-07:00
by snibgo
eqfish2rect.c segscanmerge.c sortlines.c aren't used in my scripts. I'll remove them from makefile.am.

onewhite.c is used by eqLimit.bat and nLightest.bat.

I've uploaded a new copy of the zip file, containing onewhite.c, to http://snibgo.com/imforums/imsnibgoBats.zip

Re: Processing for print

Posted: 2015-02-20T12:47:47-07:00
by afre
Thanks. The makefile.am in your new zip file still contains entries for eqfish2rect.c segscanmerge.c sortlines.c but I'll remove them.

Re: Processing for print

Posted: 2015-02-20T13:50:54-07:00
by snibgo
Yeah, I created that new version of the zip especially for you, because I (accidentally) hadn't published the source to onewhite.c. I have to think more carefully about the superfluous entries in makefile.am, but you can easily remove those for yourself.

Re: Processing for print

Posted: 2015-02-20T21:12:58-07:00
by afre
Which package does chklist.h come from?

Code: Select all

  CC       filters/filters_geodist_la-geodist.lo
filters/geodist.c:9:21: fatal error: chklist.h: No such file or directory
 #include "chklist.h"
                     ^
compilation terminated.
Makefile:9118: recipe for target 'filters/filters_geodist_la-geodist.lo' failed
make[1]: *** [filters/filters_geodist_la-geodist.lo] Error 1
Edit: found it here: do I place it in filters?

Re: Processing for print

Posted: 2015-02-21T04:39:05-07:00
by snibgo
Yes, in filters.

Re: Processing for print

Posted: 2015-02-21T21:37:51-07:00
by afre
snibgo: Good news. It took me a while to get there but, after some attempts, this thread and a series of tweaks, eqLimit finally works for me :D.