Test-suite on Ubuntu 18.04 of 7.0.7 returns two fails, questions about use

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
briligg
Posts: 32
Joined: 2018-05-28T15:31:02-07:00
Authentication code: 1152

Test-suite on Ubuntu 18.04 of 7.0.7 returns two fails, questions about use

Post by briligg »

After a new install of IM 7.0.7-37 Q16HDRI , I ran "make check". The results had 2 fails:

FAIL: tests/wandtest.tap 1
FAIL: Magick++/demo/demos.tap 6

I have opened an issue on the GitHub repo, as the read-out requested - it's here, and includes the test-suite.log - https://github.com/ImageMagick/ImageMagick/issues/1161

What I'm wondering here is, can I go ahead and use IM?

It seems to be missing a shared library, actually. I just tried "identify -version" and got an error:

Code: Select all

magick: error while loading shared libraries: libMagickCore-7.Q16HDRI.so.6: cannot open shared object file: No such file or directory
Should I add that to the bug report? How can I get that library?

EDIT - Scratch the last part, about that shared library error. I just needed to run

Code: Select all

sudo ldconfig /usr/local/lib
, which the instructions on installing from source said might be necessary. My bad.
Last edited by briligg on 2018-05-31T10:32:18-07:00, edited 1 time in total.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Test-suite on Ubuntu 18.04 of 7.0.7 returns two fails, questions about use

Post by snibgo »

The main command for IM v7 is "magick", not "convert" or "identify". (However, your build might have installed these as symbolic links.)

I suggest you try "magick identify -version". If that complains it can't load a library, then there was a build problem. What does config.log say about it?
snibgo's IM pages: im.snibgo.com
briligg
Posts: 32
Joined: 2018-05-28T15:31:02-07:00
Authentication code: 1152

Re: Test-suite on Ubuntu 18.04 of 7.0.7 returns two fails, questions about use

Post by briligg »

Yeah, I just caught that the instructions for installing from source said it might be necessary to run that extra command i just added to the original post.

I am now running make check again.

Before this install Ubuntu expected me to not use 'magick'. It would say the command wasn't recognized if I did that. I got used to that.
briligg
Posts: 32
Joined: 2018-05-28T15:31:02-07:00
Authentication code: 1152

Re: Test-suite on Ubuntu 18.04 of 7.0.7 returns two fails, questions about use

Post by briligg »

Okay, the test-suite still fails twice, on the same tests.

Config.log is pretty long. Shall i post it somewhere so you can look at it? Is there something in particular in it i can post here?
briligg
Posts: 32
Joined: 2018-05-28T15:31:02-07:00
Authentication code: 1152

Re: Test-suite on Ubuntu 18.04 of 7.0.7 returns two fails, questions about use

Post by briligg »

Code: Select all

$ magick identify --version
Version: ImageMagick 7.0.7-37 Q16 x86_64 2018-05-31 https://www.imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: https://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP 
Delegates (built-in): 
$ magick identify LOLA-Center-Modulus.tif 
identify: no decode delegate for this image format `TIFF' @ error/constitute.c/ReadImage/512.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Test-suite on Ubuntu 18.04 of 7.0.7 returns two fails, questions about use

Post by fmw42 »

Delegates (built-in):
You have no delegates in your install. How did you install? If from source, you must install all your needed delegates first. If from binary, then the delegates most used should come with it. Typically, you need delegates for JPG, TIFF, PNG as well as fontconfig and free type and lcms2 at a minimum as well as ghostscript and rsvp or inkscape for vector files.

See http://www.imagemagick.org/download/delegates/

Here are my delegates, though you do not need all of them.

Version: ImageMagick 7.0.7-37 Q16 x86_64 2018-05-30 https://www.imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: https://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib gvc jbig jng jp2 jpeg lcms lqr ltdl lzma openexr png ps raw rsvg tiff webp x xml zlib
briligg
Posts: 32
Joined: 2018-05-28T15:31:02-07:00
Authentication code: 1152

Re: Test-suite on Ubuntu 18.04 of 7.0.7 returns two fails, questions about use

Post by briligg »

Code: Select all

sudo ldconfig -v | grep libtiff

Code: Select all

libtiff.so.5 -> libtiff.so.5.3.0
Oh, just saw your latest reply. Let me work through that.
briligg
Posts: 32
Joined: 2018-05-28T15:31:02-07:00
Authentication code: 1152

Re: Test-suite on Ubuntu 18.04 of 7.0.7 returns two fails, questions about use

Post by briligg »

Do I need to uninstall it then, or can I now install the delegates after the fact?

Alright, you said i must install them first, so i'm taking it i should uninstall IM, get the delegates i need, and then reinstall it.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Test-suite on Ubuntu 18.04 of 7.0.7 returns two fails, questions about use

Post by fmw42 »

No, I do not think you need to uninstall ImageMagick. You can just re-install after loading your delegates. Or you can recompile pointing to where you put your delegates. I am not an expert on this, but see the configure section of https://www.imagemagick.org/script/adva ... lation.php
briligg
Posts: 32
Joined: 2018-05-28T15:31:02-07:00
Authentication code: 1152

Re: Test-suite on Ubuntu 18.04 of 7.0.7 returns two fails, questions about use

Post by briligg »

Some help with installing delegates on Ubuntu was in this answer - https://askubuntu.com/a/746195/364597 - but it is outdated now. There still is no TIFF delegate, and many other gaps. This is proving difficult, i've been at it all day.

I am going to work on it for another half-day or so, and if there isn't a break on this, i'll roll back to the version that comes with Ubuntu 18.04, and start working with .mpc files. I'll probably start working with .mpc files anyhow, but this seemed to hold promise for speeding up processing, since Snibgo said v. 7 could probably process a grayscale image using 2 byte processing instead of 8.
briligg
Posts: 32
Joined: 2018-05-28T15:31:02-07:00
Authentication code: 1152

Re: Test-suite on Ubuntu 18.04 of 7.0.7 returns two fails, questions about use

Post by briligg »

This issue has now been completely resolved with an answer to my question about it on AskUbuntu.SE, here - https://askubuntu.com/a/1042482/364597.
Post Reply