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
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.
what is the status with 4.4.1? It should work with imagemagick >= 7