Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661378 - sci-mathematics/octave-4.4.0 - missing support for Image IO
Summary: sci-mathematics/octave-4.4.0 - missing support for Image IO
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: imagemagick-7 663390
  Show dependency tree
 
Reported: 2018-07-17 10:07 UTC by Helmut Jarausch
Modified: 2019-06-03 12:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (xz-compressed) (octave.info.xz,7.04 KB, application/x-xz)
2018-07-17 10:07 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2018-07-17 10:07:49 UTC
Created attachment 539782 [details]
emerge --info  (xz-compressed)

with octave-4.4.0  built either with Imagemagick or Graphicsmagick gives

IMG=imread('HSTgray.jpg') 
error: imfinfo: support for Image IO was unavailable or disabled when Octave was built
error: called from
    __imread__ at line 80 column 10
    imageIO at line 118 column 26
    imread at line 106 column 30
Comment 1 Helmut Jarausch 2018-07-18 11:37:44 UTC
First, Octave does not work with ImageMagick-7 !

With the configure option  --with-magick=ImageMagick
we have in configure

magick="$withval" in configure which results in
magick=ImageMagick

lateron it executes

$PKG_CONFIG --exists --print-errors "$magick++"

which is equivalent to

pkg_config --exists --print-errors ImageMagick++

but media-gfx/imagemagick-7.0.8.6 installs
/usr/lib64/pkgconfig/Magick++.pc

but not

/usr/lib64/pkgconfig/ImageMagick++.pc

Therefore, configure says

configure: WARNING: ImageMagick++ library not found.  
 The imread, imwrite, and imfinfo functions for reading and writing image files
 will not be fully functional.

---

But even worse

if changing the ebuild to use the configure option --with-magick=Magick

configure finds ImageMagick but compilation fails, since there isn't

Magick::IndexPacket    anymore
see
www.imagemagick.org/script/porting.php

----

Unfortunately, octave fails to compile with the USE flags graphicsmagick, as well

I getlibinterp/corefcn/__magick_read__.cc: In function 
'void maybe_initialize_magick()':
libinterp/corefcn/__magick_read__.cc:801:11: error: 'MAGICKCORE_QUANTUM_DEPTH' was not declared in this scope
       if (MAGICKCORE_QUANTUM_DEPTH < 16)

and media-gfx/graphicsmagick-1.3.30
doesn't define 'MAGICKCORE_QUANTUM_DEPTH' in any of its header files.

---


The patch
octave-4.4.0-imagemagick.patch

must NOT be applied if one uses the USE flag graphicsmagick

To sum up
currently,

octave-4.4.0 can only be built with the graphicsmagick USE flags and a modified
ebuild which omits the octave-4.4.0-imagemagick.patch patch.
Comment 2 Pacho Ramos gentoo-dev 2019-03-15 10:21:58 UTC
what is the status with 4.4.1? It should work with imagemagick >= 7