help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error: imread: invalid image file


From: Ben Abbott
Subject: Re: error: imread: invalid image file
Date: Sat, 01 Dec 2012 19:27:26 -0500

On Dec 1, 2012, at 7:09 PM, Seetha Parameswaran wrote:

> On Sun, Dec 2, 2012 at 5:34 AM, Ben Abbott <address@hidden> wrote:
> 
>> On Dec 1, 2012, at 6:53 PM, Ed Meyer wrote:
>> 
>> > On Sat, Dec 1, 2012 at 6:39 AM, Seetha Parameswaran <address@hidden> wrote:
>> > Hello,
>> >
>> >> The following error message was got when i compiled
>> >>
>> >> error: imread: invalid image file: imread: image reading capabilities 
>> >> were disabled when Octave was compiled
>> >> error: called from:
>> >> error:   /usr/local/share/octave/3.6.3/m/image/imread.m at line 74, 
>> >> column 7
>> >> error:   /home/compaq/project/octave/similaritymeasures.m at line 6, 
>> >> column 7
>> >>
>> >> The file similaritymeasures.m uses imread() to read an image.
>> >> The file was successfully compiled and running in previous version of 
>> >> Octave3.2 and Image toolbox 1.x
>> >>
>> >> Now I have upgraded to Octave3.6.1 and Image2.0.0.
>> >>
>> >> The OS is Ubuntu 12.04 in both cases.
>> >>
>> >>
>> >> How do I solve this.
>> >
>> > it sounds like this version of octave was built without graphicsmagick or 
>> > imagemagick - did you
>> > build it yourself? if so do you have either of these libraries?
>> 
>> You can check this from Octave's command line by ...
>> 
>>         octave_config_info ().MAGICK_LIBS
>>         ans = -lGraphicsMagick++ -lGraphicsMagick
>> 
>> Ben
> 
> octave:2>  octave_config_info ().MAGICK_LIBS
> ans = 

Looks like your Octave wasn't built with the libraries you need.  From my 
Ubuntu VirtualBOX ...

        $ apt-cache depends octave | grep -i magick
          Depends: libgraphicsmagick++3
          Depends: libgraphicsmagick3

You'll need to install these two packages and then rebuild.  Since you may be 
missing other dependencies ...

        sudo apt-get build-dep octave

Ben



reply via email to

[Prev in Thread] Current Thread [Next in Thread]