Sat 18 Jul 2015 04:19:52 PM UTC, comment #1:
I installed the:
GraphicsMagick-1.3.20-3
GraphicsMagick-devel-1.3.20-3
GraphicsMagick-c++-1.3.20-3
GraphicsMagick-c++-devel-1.3.20-3
and have the libs:
libGraphicsMagick.so.3.12.0
libGraphicsMagick++.so.3.7.0
The system is Scientific Linux 6 32-bit.
I re-installed Octave from source using a g++ 5.1 compiler (the previous build was with g++ 4.4.7) as follows:
./config --prefix=dir
make
make install
the make check gives:
scripts/image/imfinfo.m ....... PASS 0/1
scripts/image/imformats.m ..... PASS 5/5
scripts/image/imread.m ........ PASS 2/4
scripts/image/imshow.m ........ PASS 6/6
scripts/image/imwrite.m ....... PASS 9/19
and then build image-2.4.0 as follows:
setenv CPPFLAGS -D_GLIBCXX_USE_CXX11_ABI=1
(NOTE: with setenv CPPFLAGS -D_GLIBCXX_USE_CXX11_ABI=0 it failed, but worked with the octave that was built with g++ 4.4.7)
pkg install image-2.4.0
a = imread(fname); gives the error:
error: default_formats: /usr/.../octave-4.0.0_g++_5.1/lib/octave/4.0.0/oct/i686-pc-linux-gnu/__magick_read__.oct: failed to load: /usr/.../octave-4.0.0_g++_5.1/lib/octave/4.0.0/oct/i686-pc-linux-gnu/__magick_read__.oct: undefined symbol: _ZNK6Magick5Image7commentB5cxx11Ev
error: called from
imformats>default_formats at line 256 column 11
imformats at line 79 column 3
imageIO at line 106 column 11
imread at line 106 column 30
In http://wiki.octave.org/GraphicsMagick it says:
./configure --with-quantum-depth=16 --enable-shared --disable-static --with-magick-plus-plus=yes
make
make check
sudo make install
is the above relevant to this bug please? do I have to re-install octave from source (with g++ 5.1 ?)? Do I have to do something before that, about "GraphicsMagick"? Thank you.
|