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

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
cybergrrl
Posts: 21
Joined: 2013-11-18T05:08:31-07:00
Authentication code: 6789

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

Post 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?
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

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

Post 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.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
cybergrrl
Posts: 21
Joined: 2013-11-18T05:08:31-07:00
Authentication code: 6789

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

Post by cybergrrl »

Hi,
does anyone have an idea, what is going wrong?
regards
cybergrrl
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

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

Post by dlemstra »

Can you specify what you think is going wrong? Is there something you don't understand in my previous post?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
cybergrrl
Posts: 21
Joined: 2013-11-18T05:08:31-07:00
Authentication code: 6789

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

Post 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
cybergrrl
Posts: 21
Joined: 2013-11-18T05:08:31-07:00
Authentication code: 6789

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

Post by cybergrrl »

I'm completely helpless, do you have another idea, what is going wrong?
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

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

Post 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
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
cybergrrl
Posts: 21
Joined: 2013-11-18T05:08:31-07:00
Authentication code: 6789

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

Post 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?
cybergrrl
Posts: 21
Joined: 2013-11-18T05:08:31-07:00
Authentication code: 6789

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

Post 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'
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

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

Post 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.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

Also, try
  • yum install ImageMagick-devel
Now reconfigure / rebuild ImageMagick source.
Post Reply