Page 1 of 1

wand/deprecate.c: In function 'MagickColorFloodfillImage': w

Posted: 2013-11-18T05:17:06-07:00
by cybergrrl
Hi,
T ry to compile ImageMagick on RedHat Linux 64Bit, but I always get errors relating to wand:
  • wand/deprecate.c: In function 'MagickColorFloodfillImage':
    wand/deprecate.c:1176: warning: 'ColorFloodfillImage' is deprecated (declared at ./magick/deprecate.h:178)
    wand/deprecate.c: In function 'MagickFlattenImages':
    wand/deprecate.c:1246: warning: 'FlattenImages' is deprecated (declared at ./magick/deprecate.h:136)
    wand/deprecate.c: In function 'MagickMapImage':
    wand/deprecate.c:1570: warning: 'MapImage' is deprecated (declared at ./magick/deprecate.h:201)
    wand/deprecate.c: In function 'MagickMatteFloodfillImage':
    wand/deprecate.c:1642: warning: 'MatteFloodfillImage' is deprecated (declared at ./magick/deprecate.h:205)
The content of test-suite.log:

Code: Select all

[root@BHF6L207 ImageMagick-6.8.7-5]# more /tmp/test-suite.log 
=========================================
   ImageMagick 6.8.7: ./test-suite.log
=========================================
 
# TOTAL: 40
# PASS:  39
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
 
.. contents:: :depth: 2
 
FAIL: tests/wandtest
====================
 
lt-wandtest: delegate library support not built-in `/usr/local/share/fonts/n019003l.pfb' (Freetype) @ warning/annotate.c/RenderFreetype/1533.
lt-wandtest: no decode delegate for this image format `/tmp/magick-28766z_GNz-jxZPIB1' @ error/constitute.c/ReadImage/552.
lt-wandtest: Postscript delegate failed `/tmp/magick-28766NMXpw2At66AA': No such file or directory @ error/ps.c/ReadPSImage/837.
lt-wandtest: delegate library support not built-in `/usr/local/share/fonts/n019003l.pfb' (Freetype) @ warning/annotate.c/RenderFreetype/1533.
lt-wandtest: no decode delegate for this image format `/tmp/magick-287663pfdZvYvAZJZ1' @ error/constitute.c/ReadImage/552.
lt-wandtest: Postscript delegate failed `/tmp/magick-28766VYx3jg2l81dX': No such file or directory @ error/ps.c/ReadPSImage/837.
tests/wandtest.c main 5323 non-conforming drawing primitive definition `text' @ error/draw.c/DrawImage/3168
1..1
Reading images...
Iterate forward...
index 0 scene 0
index 1 scene 1
index 2 scene 2
index 3 scene 3
index 4 scene 4
Iterate reverse...
index 4 scene 4
index 3 scene 3
index 2 scene 2
index 1 scene 1
index 0 scene 0
Remove scene 1...
index 0 scene 0
index 1 scene 2
index 2 scene 3
index 3 scene 4
Insert scene 1 back in sequence...
index 0 scene 0
index 1 scene 1
index 2 scene 2
index 3 scene 3
index 4 scene 4
Set scene 2 to scene 1...
index 0 scene 0
index 1 scene 1
index 2 scene 1
index 3 scene 3
index 4 scene 4
Apply image processing options...
not ok
FAIL: tests/wandtest.tap 1
the command looks as follows:
  • ./configure --with-gslib=/usr/local/share/ghostscript/9.10/lib --with-gs-font-dir=/usr/local/share/fonts --without-freetype
I also set LD_LIBRARY_PATH to MAgick_home/lib

Does someone have an idea how to resolve this error?

Re: wand/deprecate.c: In function 'MagickColorFloodfillImage

Posted: 2013-11-18T07:38:11-07:00
by dlemstra
The test fails because you did not compile ImageMagick with freetype support. The other messages are warnings instead of errors. You can ignore them.

Re: wand/deprecate.c: In function 'MagickColorFloodfillImage

Posted: 2013-11-19T02:25:14-07:00
by cybergrrl
Hi,
does anyone have an idea, what is going wrong?
regards
cybergrrl

Re: wand/deprecate.c: In function 'MagickColorFloodfillImage

Posted: 2013-11-19T03:01:33-07:00
by dlemstra
Can you specify what you think is going wrong? Is there something you don't understand in my previous post?

Re: wand/deprecate.c: In function 'MagickColorFloodfillImage

Posted: 2013-11-19T03:27:25-07:00
by cybergrrl
Hi,
I executed the configure command with the option --with-freetype=yes and thought it will be compiled with freetype support.
I also executed the command: identify -list format and see, that there is no read and write support for these fonts:
TTC* --- TrueType font collection
TTF* --- TrueType font
Perhaps some fonts are missing?
regards
cybergrrl

Re: wand/deprecate.c: In function 'MagickColorFloodfillImage

Posted: 2013-11-19T04:10:29-07:00
by cybergrrl
I'm completely helpless, do you have another idea, what is going wrong?

Re: wand/deprecate.c: In function 'MagickColorFloodfillImage

Posted: 2013-11-19T04:54:40-07:00
by dlemstra
It looks like configure could not find freetype. If ImageMagick could find freetype you should see this in the output:

Code: Select all

FreeType          --with-freetype=yes           yes

Re: wand/deprecate.c: In function 'MagickColorFloodfillImage

Posted: 2013-11-19T05:25:24-07:00
by cybergrrl
in the output apperas:
FreeType --with-freetype=yes no
freetype is installed in this directories:
/usr/local/lib/pkgconfig/freetype2.pc
/usr/local/bin/freetype-config
/usr/local/include/freetype2
/usr/local/include/freetype2/freetype
/usr/local/include/freetype2/freetype/freetype.h
/usr/local/share/aclocal/freetype2.m4
/usr/share/doc/freetype-2.3.11
is it possible to set a apth to freetype directory as a compiling option?

Re: wand/deprecate.c: In function 'MagickColorFloodfillImage

Posted: 2013-11-19T06:49:21-07:00
by cybergrrl
in config.log it says:
configure:29154: $PKG_CONFIG --exists --print-errors "freetype2"
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'

Re: wand/deprecate.c: In function 'MagickColorFloodfillImage

Posted: 2013-11-19T08:05:55-07:00
by dlemstra
You should set the PKG_CONFIG_PATH environment variable to /usr/local/lib/pkgconfig and ensure the directory permissions are readable and rerun the configure command-line.

Re: wand/deprecate.c: In function 'MagickColorFloodfillImage

Posted: 2013-11-19T08:26:04-07:00
by magick
Also, try
  • yum install ImageMagick-devel
Now reconfigure / rebuild ImageMagick source.