Hi All,
I'm new to Magic++ but would like to use the shared libs to determine the size and format of images. I have compile Magic++ from source and when I run make check two tests failed, I was wondering whether anyone can help before I start using the libs and encounter unexplained problems. I have included below the out of the test and identify -list configure:
Path: /home/admin/build/lib/ImageMagick-6.6.8/config/configure.xml
Name Value
-------------------------------------------------------------------------------
CC gcc -std=gnu99 -std=gnu99
CFLAGS -g -O2 -Wall -pthread
CONFIGURE ./configure '--prefix=/home/admin/build' 'CXX=g++' '--without-perl'
COPYRIGHT Copyright (C) 1999-2011 ImageMagick Studio LLC
CPPFLAGS -I/home/admin/build/include/ImageMagick
CXX g++
CXXFLAGS -g -O2 -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES bzlib zlib
DISTCHECK_CONFIG_FLAGS 'CXX=g++' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fontconfig=no --with-gslib=no --with-fontpath= --with-rsvg=no --with-xml=no --with-perl=no
EXEC-PREFIX /home/admin/build
FEATURES
HOST i686-pc-linux-gnu
LDFLAGS -L/home/admin/build/lib
LIB_VERSION 0x668
LIB_VERSION_NUMBER 6,6,8,0
LIBS -lMagickCore -lbz2 -lz -lm -lpthread
NAME ImageMagick
PCFLAGS
PREFIX /home/admin/build
QuantumDepth 16
RELEASE_DATE 2011-03-06
VERSION 6.6.8
WEBSITE http://www.imagemagick.org
Path: [built-in]
Name Value
-------------------------------------------------------------------------------
NAME ImageMagick
make check-am
make[1]: Entering directory `/home/admin/build-src/ImageMagick-6.6.8-0'
make tests/validate Magick++/demo/analyze Magick++/demo/button Magick++/demo/demo Magick++/demo/detrans Magick++/demo/flip Magick++/demo/gravity Magick++/demo/piddle Magick++/demo/shapes Magick++/demo/zoom Magick++/tests/appendImages Magick++/tests/attributes Magick++/tests/averageImages Magick++/tests/coalesceImages Magick++/tests/coderInfo Magick++/tests/color Magick++/tests/colorHistogram Magick++/tests/exceptions Magick++/tests/montageImages Magick++/tests/morphImages Magick++/tests/readWriteBlob Magick++/tests/readWriteImages wand/drawtest wand/wandtest
make[2]: Entering directory `/home/admin/build-src/ImageMagick-6.6.8-0'
make[2]: `Magick++/demo/analyze' is up to date.
make[2]: `Magick++/demo/button' is up to date.
make[2]: `Magick++/demo/demo' is up to date.
make[2]: `Magick++/demo/detrans' is up to date.
make[2]: `Magick++/demo/flip' is up to date.
make[2]: `Magick++/demo/gravity' is up to date.
make[2]: `Magick++/demo/piddle' is up to date.
make[2]: `Magick++/demo/shapes' is up to date.
make[2]: `Magick++/demo/zoom' is up to date.
make[2]: `Magick++/tests/appendImages' is up to date.
make[2]: `Magick++/tests/attributes' is up to date.
make[2]: `Magick++/tests/averageImages' is up to date.
make[2]: `Magick++/tests/coalesceImages' is up to date.
make[2]: `Magick++/tests/coderInfo' is up to date.
make[2]: `Magick++/tests/color' is up to date.
make[2]: `Magick++/tests/colorHistogram' is up to date.
make[2]: `Magick++/tests/exceptions' is up to date.
make[2]: `Magick++/tests/montageImages' is up to date.
make[2]: `Magick++/tests/morphImages' is up to date.
make[2]: `Magick++/tests/readWriteBlob' is up to date.
make[2]: `Magick++/tests/readWriteImages' is up to date.
make[2]: `wand/drawtest' is up to date.
make[2]: `wand/wandtest' is up to date.
make[2]: Leaving directory `/home/admin/build-src/ImageMagick-6.6.8-0'
make check-TESTS check-local
make[2]: Entering directory `/home/admin/build-src/ImageMagick-6.6.8-0'
make[3]: Entering directory `/home/admin/build-src/ImageMagick-6.6.8-0'
PASS: tests/validate-compare.sh
PASS: tests/validate-composite.sh
PASS: tests/validate-convert.sh
PASS: tests/validate-identify.sh
PASS: tests/validate-import.sh
PASS: tests/validate-montage.sh
PASS: tests/validate-pipe.sh
PASS: tests/validate-stream.sh
PASS: tests/validate-formats-in-memory.sh
PASS: tests/validate-formats-on-disk.sh
PASS: Magick++/tests/exceptions.sh
PASS: Magick++/tests/appendImages.sh
FAIL: Magick++/tests/attributes.sh
PASS: Magick++/tests/averageImages.sh
PASS: Magick++/tests/coalesceImages.sh
PASS: Magick++/tests/coderInfo.sh
PASS: Magick++/tests/colorHistogram.sh
PASS: Magick++/tests/color.sh
PASS: Magick++/tests/montageImages.sh
PASS: Magick++/tests/morphImages.sh
PASS: Magick++/tests/readWriteBlob.sh
PASS: Magick++/tests/readWriteImages.sh
PASS: Magick++/demo/analyze.sh
PASS: Magick++/demo/button.sh
PASS: Magick++/demo/demo.sh
PASS: Magick++/demo/flip.sh
PASS: Magick++/demo/gravity.sh
PASS: Magick++/demo/piddle.sh
PASS: Magick++/demo/shapes.sh
PASS: Magick++/demo/zoom_bessel.sh
PASS: Magick++/demo/zoom_blackman.sh
PASS: Magick++/demo/zoom_box.sh
PASS: Magick++/demo/zoom_catrom.sh
PASS: Magick++/demo/zoom_cubic.sh
PASS: Magick++/demo/zoom_gaussian.sh
PASS: Magick++/demo/zoom_hamming.sh
PASS: Magick++/demo/zoom_hanning.sh
PASS: Magick++/demo/zoom_hermite.sh
PASS: Magick++/demo/zoom_lanczos.sh
PASS: Magick++/demo/zoom_mitchell.sh
PASS: Magick++/demo/zoom_point.sh
PASS: Magick++/demo/zoom_quadratic.sh
PASS: Magick++/demo/zoom_sample.sh
PASS: Magick++/demo/zoom_scale.sh
PASS: Magick++/demo/zoom_sinc.sh
PASS: Magick++/demo/zoom_triangle.sh
PASS: wand/drawtest.sh
FAIL: wand/wandtest.sh
===========================================
2 of 48 tests failed
See ./test-suite.log
Please report to http://www.imagemagick.org
===========================================
make[3]: Leaving directory `/home/admin/build-src/ImageMagick-6.6.8-0'
make[2]: Leaving directory `/home/admin/build-src/ImageMagick-6.6.8-0'
make[1]: Leaving directory `/home/admin/build-src/ImageMagick-6.6.8-0'
Thanks
OB
Failed tests
Re: Failed tests
Post the output of Magick++/tests/attributes.log and wand/wandtest.log. It tells us why the unit test fails.
Re: Failed tests
OK here we are:
FAIL: Magick++/tests/attributes.sh (exit: 139)
==============================================
./Magick++/tests/attributes.sh: line 20: 52820 Segmentation fault ${MEMCHECK} "./${executable}" 2>&1 >$outfile
FAIL: wand/wandtest.sh (exit: 255)
==================================
sh: gs: command not found
sh: gs: command not found
lt-wandtest: delegate library support not built-in `none' (Freetype) @ warning/annotate.c/RenderFreetype/1508.
lt-wandtest: Postscript delegate failed `/tmp/magick-3RNLZF2Q': @ error/ps.c/ReadPSImage/806.
sh: gs: command not found
sh: gs: command not found
lt-wandtest: delegate library support not built-in `none' (Freetype) @ warning/annotate.c/RenderFreetype/1508.
lt-wandtest: Postscript delegate failed `/tmp/magick-OZjABMl4': @ error/ps.c/ReadPSImage/806.
sh: gs: command not found
sh: gs: command not found
lt-wandtest: delegate library support not built-in `none' (Freetype) @ warning/annotate.c/RenderFreetype/1508.
lt-wandtest: Postscript delegate failed `/tmp/magick-EV9od9ri': @ error/ps.c/ReadPSImage/806.
sh: gs: command not found
sh: gs: command not found
lt-wandtest: delegate library support not built-in `none' (Freetype) @ warning/annotate.c/RenderFreetype/1508.
lt-wandtest: Postscript delegate failed `/tmp/magick-p378BWCw': @ error/ps.c/ReadPSImage/806.
wand/wandtest.c main 532
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...
FAIL: Magick++/tests/attributes.sh (exit: 139)
==============================================
./Magick++/tests/attributes.sh: line 20: 52820 Segmentation fault ${MEMCHECK} "./${executable}" 2>&1 >$outfile
FAIL: wand/wandtest.sh (exit: 255)
==================================
sh: gs: command not found
sh: gs: command not found
lt-wandtest: delegate library support not built-in `none' (Freetype) @ warning/annotate.c/RenderFreetype/1508.
lt-wandtest: Postscript delegate failed `/tmp/magick-3RNLZF2Q': @ error/ps.c/ReadPSImage/806.
sh: gs: command not found
sh: gs: command not found
lt-wandtest: delegate library support not built-in `none' (Freetype) @ warning/annotate.c/RenderFreetype/1508.
lt-wandtest: Postscript delegate failed `/tmp/magick-OZjABMl4': @ error/ps.c/ReadPSImage/806.
sh: gs: command not found
sh: gs: command not found
lt-wandtest: delegate library support not built-in `none' (Freetype) @ warning/annotate.c/RenderFreetype/1508.
lt-wandtest: Postscript delegate failed `/tmp/magick-EV9od9ri': @ error/ps.c/ReadPSImage/806.
sh: gs: command not found
sh: gs: command not found
lt-wandtest: delegate library support not built-in `none' (Freetype) @ warning/annotate.c/RenderFreetype/1508.
lt-wandtest: Postscript delegate failed `/tmp/magick-p378BWCw': @ error/ps.c/ReadPSImage/806.
wand/wandtest.c main 532
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...
Re: Failed tests
Either install Ghostscript program, ghostscript development library, or the Freetype library (and then reconfigure / reinstall ImageMagick). ImageMagick requires at least one method to render fonts before the regression tests will pass.
Re: Failed tests
Hi magick,
I downloaded ghostscript http://ghostscript.com/releases/ghostscript-8.70.tar.gz installed this correctly, I was ask to also install libjpeg and libpng before I could complete the installation of ghostscript libgs.so. I followed the directions you gave which was to reconfigure, compile and re-run make check and I got the same failed results?
Only the attribute test not working the wand test works fine.
I have run the attribute test program from the prompt and this is the output I get:
Testing throwing and catching exceptions. A program crash or a message
that the exception was not caught indicates a test failure. A properly
formatted exception message indicates success:
Caught exception, good!:
"lt-attributes: no decode delegate for this image format `foo' @ error/constitute.c/ReadImage/532"
Segmentation fault
OB
I downloaded ghostscript http://ghostscript.com/releases/ghostscript-8.70.tar.gz installed this correctly, I was ask to also install libjpeg and libpng before I could complete the installation of ghostscript libgs.so. I followed the directions you gave which was to reconfigure, compile and re-run make check and I got the same failed results?
Only the attribute test not working the wand test works fine.
I have run the attribute test program from the prompt and this is the output I get:
Testing throwing and catching exceptions. A program crash or a message
that the exception was not caught indicates a test failure. A properly
formatted exception message indicates success:
Caught exception, good!:
"lt-attributes: no decode delegate for this image format `foo' @ error/constitute.c/ReadImage/532"
Segmentation fault
OB
Re: Failed tests
I have the same failures with IM 6.6.9-4 Q16
just without the attributes problems because I compile with "--without-magick-plus-plus".
"gs" is reachable through $PATH.
Can anybody say which delegate is needed?
freetype.dylib is available.
Regards, Axel.
Code: Select all
lt-wandtest: delegate library support not built-in `none' (Freetype) @ warning/annotate.c/RenderFreetype/1508.
lt-wandtest: Postscript delegate failed `/tmp/magick-p378BWCw': @ error/ps.c/ReadPSImage/806.
wand/wandtest.c main 532
Reading images...
"gs" is reachable through $PATH.
Can anybody say which delegate is needed?
freetype.dylib is available.
Regards, Axel.
Re: Failed tests
found it myself
I compile "--with-x"
This lead somehow to usage of an old libfreetype.
Recompiling "--without-x" cured it.
Cheers, Axel.
I compile "--with-x"
This lead somehow to usage of an old libfreetype.
Recompiling "--without-x" cured it.
Cheers, Axel.