bugGNU Octave - Bugs: bug #45569, support for Image IO was disabled...

 
 

bug #45569: support for Image IO was disabled when Octave was built. but it was not reported in the summary of ./config

Submitted by:  -Deleted Account- <ckp>
Submitted on:  Fri 17 Jul 2015 06:29:10 PM UTC  
 
Category: DocumentationSeverity: 2 - Minor
Priority: 3 - LowItem Group: Documentation
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.0.0Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Fri 09 Sep 2016 04:03:47 AM UTC, comment #8:

Octave's configure script now mentions missing support for GraphicsMagick correctly when it is not found, and the rest of this bug turned into an evaporated support request, closing as fixed.

Mike Miller <mtmiller>
Project Administrator
Mon 20 Jul 2015 07:59:21 PM UTC, comment #7:

Please ask on the help mailing list if you continue to need help building GraphicsMagick and Octave together. This bug report is not the place for continuing this discussion.

See the following thread for a similar question and answer that may help (or may help you ask your questions): http://octave.1599824.n4.nabble.com/error-imread-invalid-image-file-tp4647455p4652875.html

Mike Miller <mtmiller>
Project Administrator
Mon 20 Jul 2015 06:41:26 PM UTC, comment #6:

I added the link into the folder "/usr/.../graphics_magick-1.3.21_g++_5.1/lib":
libGraphicsMagick++.so.3 -> libGraphicsMagick++.so

and octave prompts:

>> a=imread(fname)

error: _imread_: /usr/.../octave/4.0.0/oct/i686-pc-linux-gnu/__magick_read__.oct: failed to load: /usr/.../octave/4.0.0/oct/i686-pc-linux-gnu/__magick_read__.oct: undefined symbol: _ZN6Magick5ColorC1Ehhh
error: called from
_imread_ at line 86 column 10
imageIO at line 117 column 26
imread at line 106 column 30

-Deleted Account- <ckp>
Mon 20 Jul 2015 06:30:44 PM UTC, comment #5:

The distro "libGraphicsMagick" was removed and left only the new g++5.1 build. The error from Octave is now:

>> a=imread(fname)

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: libGraphicsMagick++.so.3: cannot open shared object file: No such file or directory
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

with the following information:

ldd /usr/.../lib/octave/4.0.0/oct/i686-pc-linux-gnu/__magick_read__.oct| grep -i magick
libGraphicsMagick++.so.3 => not found
libGraphicsMagick.so.3 => /usr/.../graphics_magick-1.3.21_g++_5.1/lib/libGraphicsMagick.so.3 (0x001b3000)

The folder "/usr/.../graphics_magick-1.3.21_g++_5.1/lib" contains the following libs:

libGraphicsMagick++.so.11.0.0
libGraphicsMagick++.la
libGraphicsMagick.la
libGraphicsMagick.so -> libGraphicsMagick.so.3.13.0
libGraphicsMagick++.so.11 -> libGraphicsMagick++.so.11.0.0
libGraphicsMagickWand.so.2 -> libGraphicsMagickWand.so.2.7.1
libGraphicsMagickWand.so -> libGraphicsMagickWand.so.2.7.1
libGraphicsMagick.so.3 -> libGraphicsMagick.so.3.13.0
libGraphicsMagick++.so -> libGraphicsMagick++.so.11.0.0
libGraphicsMagickWand.so.2.7.1
libGraphicsMagickWand.la
libGraphicsMagick.so.3.13.0

-Deleted Account- <ckp>
Sun 19 Jul 2015 04:20:31 PM UTC, comment #4:

After setting LD_LIBRARY_PATH, what does `ldd /usr/.../octave-4.0.0_g++_5.1/lib/octave/4.0.0/oct/i686-pc-linux-gnu/__magick_read__.oct | grep -i magick` show?

For me it's

Do you see the GraphicsMagick libraries you just built or still the system libraries?

I think we might move this to the help mailing list as I think this has now turned into a support discussion. The bug that you reported that ImageIO is not mentioned in the configure summary is valid, I think that could be fixed easily. Retagging as ducumentation, but could easily be patched for 4.0.1.

Mike Miller <mtmiller>
Project Administrator
Sun 19 Jul 2015 12:11:54 AM UTC, comment #3:

Thank you for your comments.
I built and installed the "GraphicsMagick" from source with g++5.1 in a separate directory:
./configure --prefix=/dir --with-quantum-depth=16 --enable-shared --disable-static (--with-magick-plus-plus=yes by default)

and without any set of D_GLIBCXX_USE_CXX11_ABI, which I think the default is 1.

Then I added into "LD_LIBRARY_PATH" the new lib-path and I run again octave. The imread() gives the same error. I re-build the "image-2.4.0" and it gives again the same error.
Do I have please to re-install octave from start (octave was built with the distro GraphicsMagick)?
If yes, shall I add any special flags in "./config"? Thank you.

-Deleted Account- <ckp>
Sat 18 Jul 2015 09:12:43 PM UTC, comment #2:

This looks like the same mismatch in your other bug report. This time it is the GraphicsMagick provided by your distro, which was built with gcc 4.4.7, vs your upgraded compiler you are using to compile Octave and the image package.

If you want to use the distro supplied GraphicsMagick, you will have to build Octave and all Forge packages with -D_GLIBCXX_USE_CXX11_ABI=0.

Or use the new ABI and you will have to compile and install GraphicsMagick from source.

Tip for the future: if you see "cxx11" in an undefined symbol error, it means you are hitting this C++11 ABI issue again.

Mike Miller <mtmiller>
Project Administrator
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.

-Deleted Account- <ckp>
Fri 17 Jul 2015 06:29:10 PM UTC, original submission:

After installing image-2.4.0, I tried:
a = imread(fname) and complains:

error: imformats: support for Image IO was disabled when Octave was built
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 3

I searched in the web and says that probably the "graphicsMagick-dev" was missing, and indeed was missing and it suggests to check the "config.log". I installed the library but still image IO is disabled in octave.

The BUG that I report is the fact that in the final summary of the "./config" that shows any missing libraries, the library "graphicsMagick" was not shown as missing. Actually I installed all the libraries that were shown as missing at the summary after running "config" and only then I proceeded for the build. Now that I looked in "config.log" somewhere in the middle it mentions:

Package GraphicsMagick++ was not found in the pkg-config search path.
Perhaps you should add the directory containing `GraphicsMagick++.pc'
to the PKG_CONFIG_PATH environment variable
No package 'GraphicsMagick++' found

I think the purpose of the final summary in the console from "./config" is to report all the missing libraries and it must be sufficient instead for the user to have to read all small letters in log files.

Now that installed the "graphicsMagick", do I have to re-install octave from the start or there is a way to enable "image IO"?
if I have to re-install octave, how can I be sure that something else again would be missing again that was not reported in the summary of "./config"?

-Deleted Account- <ckp>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by ckp (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 09 Sep 2016 04:03:47 AM UTCmtmillerStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Sun 19 Jul 2015 04:20:31 PM UTCmtmillerCategoryConfiguration and Build System=>Documentation
      Severity3 - Normal=>2 - Minor
      Priority5 - Normal=>3 - Low
      Item GroupOther=>Documentation
      StatusNeed Info=>Confirmed
      Operating SystemGNU/Linux=>Any
    Sat 18 Jul 2015 09:12:43 PM UTCmtmillerStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1