bugGNU Octave - Bugs: bug #56315, unable to configure build 5.1 to...

 
 

bug #56315: unable to configure build 5.1 to work with ImageMagick q=16

Submitter:  None
Submitted:  Sun 12 May 2019 10:34:28 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Need Info Assigned to:  None
Originator Name:  Emmanuel Brandt Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 5.1.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 29 May 2019 05:28:35 PM UTC, comment #3: 

There was a reply, but posted to the mailing list instead of here on the tracker:


My bad, this is not an Octave bug (therefore to be closed)> Missing key
information from the wiki was pre -req to install
libgraphicsmagick++1-dev. Once done ./configure (no switch) then make
compiles and excute with support of quantum=16.

Wiki can be modified.

many thanks Mike ;)


John W. Eaton <jwe>
Group administrator
Mon 27 May 2019 06:46:03 PM UTC, comment #2: 

Assume using GraphicsMagick-dev package works since there is no response to comment #1.

Rik <rik5>
Group administrator
Sun 12 May 2019 11:04:31 PM UTC, comment #1: 

It looks like you are conflating a few different issues together into this bug report. Can you please revise and clarify what bug you are reporting? Or are you asking for help or support?

If your system is a recent Ubuntu version, you should be able to use libgraphicsmagick++1-dev from the Ubuntu repositories, it is built with 16 bit quantum depth. If you didn't understand that, maybe this should be fixed on the wiki.

If the problem you are reporting is that you are unable to build and use GraphicsMagick from source, that's surely not an Octave bug.

If the problem is that Octave does not build with ImageMagick as opposed to GraphicsMagick, that may indeed be a separate Octave bug. But do you have a strong reason to want to use ImageMagick? Octave definitely recommends and assumes GraphicsMagick by default, and it does work very well out of the box on most systems these days.

Mike Miller <mtmiller>
Group Member
Sun 12 May 2019 10:34:28 PM UTC, original submission:  

Octave 5.1 build from source as instructed in https://wiki.octave.org/GraphicsMagick

./configure --with-quantum-depth=16 --enable-shared --disable-static --with-magick-plus-plus=yes
make

imwrite is limited to 8 bit tif and reporting
Software = GraphicsMagick 1.3.31 2018-11-17
and BitDepth =  8

but ImageMagick on system is 
imagemagick/disco,now 8:6.9.10.14+dfsg-7ubuntu2 amd64 [installed]


Cannot configure 5.1.0 build to use most recent ImageMagic therefore allow imwrite to write 16 bit

when using
./configure --with-magick="ImageMagick" doesn't work

In file included from /usr/include/ImageMagick-6/Magick++/Include.h:14,
                 from /usr/include/ImageMagick-6/Magick++.h:10,
                 from libinterp/corefcn/__magick_read__.cc:42:
/usr/include/ImageMagick-6/magick/magick-config.h:29:3: warning: #warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default" [-Wcpp]
 # warning "you should set MAGICKCORE_QUANTUM_DEPTH to sensible default set it to configure time default"
   ^~~~~~~
/usr/include/ImageMagick-6/magick/magick-config.h:30:3: warning: #warning "this is an obsolete behavior please fix your makefile" [-Wcpp]
 # warning "this is an obsolete behavior please fix your makefile"
   ^~~~~~~
/usr/include/ImageMagick-6/magick/magick-config.h:52:3: warning: #warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default" [-Wcpp]
 # warning "you should set MAGICKCORE_HDRI_ENABLE to sensible default set it to configure time default"
   ^~~~~~~
/usr/include/ImageMagick-6/magick/magick-config.h:53:3: warning: #warning "this is an obsolete behavior please fix yours makefile" [-Wcpp]
 # warning "this is an obsolete behavior please fix yours makefile"
   ^~~~~~~
  CXX      libinterp/corefcn/libcorefcn_la-__pchip_deriv__.lo
  CXX      libinterp/corefcn/libcorefcn_la-__qp__.lo
  CXX      libinterp/corefcn/libcorefcn_la-balance.lo
In file included from /usr/include/ImageMagick-6/magick/MagickCore.h:76,
                 from /usr/include/ImageMagick-6/Magick++/Include.h:42,
                 from /usr/include/ImageMagick-6/Magick++.h:10,
                 from libinterp/corefcn/__magick_read__.cc:42:
/usr/include/ImageMagick-6/Magick++/Color.h: In static member function ‘static MagickCore::Quantum Magick::Color::scaleDoubleToQuantum(double)’:
/usr/include/ImageMagick-6/magick/magick-type.h:86:34: warning: use of old-style cast to ‘MagickCore::Quantum’ {aka ‘short unsigned int’} [-Wold-style-cast]
 #define QuantumRange  ((Quantum) 65535)
                                  ^~~~~
/usr/include/ImageMagick-6/Magick++/Color.h:116:52: note: in expansion of macro ‘QuantumRange’
       return (static_cast<Magick::Quantum>(double_*QuantumRange));
                                                    ^~~~~~~~~~~~
/usr/include/ImageMagick-6/Magick++/Color.h: In static member function ‘static double Magick::Color::scaleQuantumToDouble(MagickCore::Quantum)’:
/usr/include/ImageMagick-6/magick/magick-type.h:86:34: warning: use of old-style cast to ‘MagickCore::Quantum’ {aka ‘short unsigned int’} [-Wold-style-cast]
 #define QuantumRange  ((Quantum) 65535)
                                  ^~~~~
/usr/include/ImageMagick-6/Magick++/Color.h:123:45: note: in expansion of macro ‘QuantumRange’
       return (static_cast<double>(quantum_)/QuantumRange);
                                             ^~~~~~~~~~~~
/usr/include/ImageMagick-6/Magick++/Color.h: In member function ‘void Magick::Color::initPixel()’:
/usr/include/ImageMagick-6/magick/magick-type.h:86:34: warning: use of old-style cast to ‘MagickCore::Quantum’ {aka ‘short unsigned int’} [-Wold-style-cast]
 #define QuantumRange  ((Quantum) 65535)
                                  ^~~~~
/usr/include/ImageMagick-6/magick/image.h:28:30: note: in expansion of macro ‘QuantumRange’
 #define TransparentOpacity  (QuantumRange)
                              ^~~~~~~~~~~~
/usr/include/ImageMagick-6/Magick++/Color.h:440:19: note: in expansion of macro ‘TransparentOpacity’
   _pixel->opacity=TransparentOpacity;
                   ^~~~~~~~~~~~~~~~~~
/usr/include/ImageMagick-6/Magick++/Image.h: At global scope:
/usr/include/ImageMagick-6/magick/magick-type.h:86:34: warning: use of old-style cast to ‘MagickCore::Quantum’ {aka ‘short unsigned int’} [-Wold-style-cast]
 #define QuantumRange  ((Quantum) 65535)
                                  ^~~~~
/usr/include/ImageMagick-6/Magick++/Image.h:1399:29: note: in expansion of macro ‘QuantumRange’
       const double midpoint=QuantumRange/2.0);
                             ^~~~~~~~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:86:34: warning: use of old-style cast to ‘MagickCore::Quantum’ {aka ‘short unsigned int’} [-Wold-style-cast]
 #define QuantumRange  ((Quantum) 65535)
                                  ^~~~~
/usr/include/ImageMagick-6/Magick++/STL.h:1791:31: note: in expansion of macro ‘QuantumRange’
       const double midpoint = QuantumRange / 2.0 );
                               ^~~~~~~~~~~~
In file included from /usr/include/ImageMagick-6/Magick++.h:15,
                 from libinterp/corefcn/__magick_read__.cc:42:
/usr/include/ImageMagick-6/Magick++/STL.h: In function ‘void Magick::appendImages(Magick::Image*, InputIterator, InputIterator, bool)’:
/usr/include/ImageMagick-6/Magick++/STL.h:2020:40: warning: use of old-style cast to ‘enum MagickCore::MagickBooleanType’ [-Wold-style-cast]
                    (MagickBooleanType) stack_,
                                        ^~~~~~
/usr/include/ImageMagick-6/Magick++/STL.h: In function ‘void Magick::coderInfoList(Container*, Magick::CoderInfo::MatchType, Magick::CoderInfo::MatchType, Magick::CoderInfo::MatchType)’:
/usr/include/ImageMagick-6/Magick++/STL.h:2143:42: warning: use of old-style cast to ‘ssize_t’ {aka ‘long int’} [-Wold-style-cast]
     for ( ::ssize_t i=0; i < (::ssize_t) number_formats; i++)
                                          ^~~~~~~~~~~~~~
/usr/include/ImageMagick-6/Magick++/STL.h:2148:61: warning: use of old-style cast to ‘char*’ [-Wold-style-cast]
           MagickCore::RelinquishMagickMemory( coder_list[i] );
                                                             ^
/usr/include/ImageMagick-6/Magick++/STL.h:2184:73: warning: use of old-style cast to ‘char**’ [-Wold-style-cast]
     coder_list=(char **) MagickCore::RelinquishMagickMemory( coder_list );
                                                                         ^
/usr/include/ImageMagick-6/Magick++/STL.h: In function ‘void Magick::colorHistogram(Container*, Magick::Image)’:
/usr/include/ImageMagick-6/Magick++/STL.h:2246:74: warning: use of old-style cast to ‘size_t’ {aka ‘long unsigned int’} [-Wold-style-cast]
           ( Color(histogram_array[i].pixel), (size_t) histogram_array[i].count) );
                                                                          ^~~~~
/usr/include/ImageMagick-6/Magick++/STL.h:2251:57: warning: use of old-style cast to ‘MagickCore::ColorPacket*’ {aka ‘struct MagickCore::_ColorPacket*’} [-Wold-style-cast]
       MagickCore::RelinquishMagickMemory(histogram_array);
                                                         ^
/usr/include/ImageMagick-6/Magick++/STL.h: In function ‘void Magick::smushImages(Magick::Image*, InputIterator, InputIterator, ssize_t, bool)’:
/usr/include/ImageMagick-6/Magick++/STL.h:2797:27: warning: use of old-style cast to ‘enum MagickCore::MagickBooleanType’ [-Wold-style-cast]
       (MagickBooleanType) stack_,offset_,exceptionInfo);
                           ^~~~~~
In file included from /usr/include/ImageMagick-6/magick/MagickCore.h:76,
                 from /usr/include/ImageMagick-6/Magick++/Include.h:42,
                 from /usr/include/ImageMagick-6/Magick++.h:10,
                 from libinterp/corefcn/__magick_read__.cc:42:
libinterp/corefcn/__magick_read__.cc: In function ‘octave_value_list read_images(std::vector<Magick::Image>&, const Array<long int>&, const octave_idx_type&, const octave_scalar_map&)’:
/usr/include/ImageMagick-6/magick/magick-type.h:86:25: error: ‘Quantum’ was not declared in this scope
 #define QuantumRange  ((Quantum) 65535)
                         ^~~~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:417:15: note: in expansion of macro ‘MaxRGB’
     divisor = MaxRGB / ((uint64_t (1) << imvec[def_elem].depth ()) - 1);
               ^~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:86:25: note: suggested alternatives:
 #define QuantumRange  ((Quantum) 65535)
                         ^~~~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:417:15: note: in expansion of macro ‘MaxRGB’
     divisor = MaxRGB / ((uint64_t (1) << imvec[def_elem].depth ()) - 1);
               ^~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:85:24: note:   ‘MagickCore::Quantum’
 typedef unsigned short Quantum;
                        ^~~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:85:24: note:   ‘MagickCore::Quantum’
/usr/include/ImageMagick-6/magick/magick-type.h:86:34: error: expected ‘)’ before numeric constant
 #define QuantumRange  ((Quantum) 65535)
                       ~          ^~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:417:15: note: in expansion of macro ‘MaxRGB’
     divisor = MaxRGB / ((uint64_t (1) << imvec[def_elem].depth ()) - 1);
               ^~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:86:25: error: ‘Quantum’ was not declared in this scope
 #define QuantumRange  ((Quantum) 65535)
                         ^~~~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:553:38: note: in expansion of macro ‘MaxRGB’
                     a_fvec[idx]   = (MaxRGB - pix->opacity) / divisor;
                                      ^~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:86:25: note: suggested alternatives:
 #define QuantumRange  ((Quantum) 65535)
                         ^~~~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:553:38: note: in expansion of macro ‘MaxRGB’
                     a_fvec[idx]   = (MaxRGB - pix->opacity) / divisor;
                                      ^~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:85:24: note:   ‘MagickCore::Quantum’
 typedef unsigned short Quantum;
                        ^~~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:85:24: note:   ‘MagickCore::Quantum’
/usr/include/ImageMagick-6/magick/magick-type.h:86:34: error: expected ‘)’ before numeric constant
 #define QuantumRange  ((Quantum) 65535)
                       ~          ^~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:553:38: note: in expansion of macro ‘MaxRGB’
                     a_fvec[idx]   = (MaxRGB - pix->opacity) / divisor;
                                      ^~~~~~
libinterp/corefcn/__magick_read__.cc:553:70: error: expected ‘)’ before ‘;’ token
                     a_fvec[idx]   = (MaxRGB - pix->opacity) / divisor;
                                     ~                                ^
                                                                      )
In file included from /usr/include/ImageMagick-6/magick/MagickCore.h:76,
                 from /usr/include/ImageMagick-6/Magick++/Include.h:42,
                 from /usr/include/ImageMagick-6/Magick++.h:10,
                 from libinterp/corefcn/__magick_read__.cc:42:
/usr/include/ImageMagick-6/magick/magick-type.h:86:25: error: ‘Quantum’ was not declared in this scope
 #define QuantumRange  ((Quantum) 65535)
                         ^~~~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:634:40: note: in expansion of macro ‘MaxRGB’
                     a_fvec[a_idx++] = (MaxRGB - pix->opacity) / divisor;
                                        ^~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:86:25: note: suggested alternatives:
 #define QuantumRange  ((Quantum) 65535)
                         ^~~~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:634:40: note: in expansion of macro ‘MaxRGB’
                     a_fvec[a_idx++] = (MaxRGB - pix->opacity) / divisor;
                                        ^~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:85:24: note:   ‘MagickCore::Quantum’
 typedef unsigned short Quantum;
                        ^~~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:85:24: note:   ‘MagickCore::Quantum’
/usr/include/ImageMagick-6/magick/magick-type.h:86:34: error: expected ‘)’ before numeric constant
 #define QuantumRange  ((Quantum) 65535)
                       ~          ^~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:634:40: note: in expansion of macro ‘MaxRGB’
                     a_fvec[a_idx++] = (MaxRGB - pix->opacity) / divisor;
                                        ^~~~~~
libinterp/corefcn/__magick_read__.cc:634:72: error: expected ‘)’ before ‘;’ token
                     a_fvec[a_idx++] = (MaxRGB - pix->opacity) / divisor;
                                       ~                                ^
                                                                        )
In file included from /usr/include/ImageMagick-6/magick/MagickCore.h:76,
                 from /usr/include/ImageMagick-6/Magick++/Include.h:42,
                 from /usr/include/ImageMagick-6/Magick++.h:10,
                 from libinterp/corefcn/__magick_read__.cc:42:
/usr/include/ImageMagick-6/magick/magick-type.h:86:25: error: ‘Quantum’ was not declared in this scope
 #define QuantumRange  ((Quantum) 65535)
                         ^~~~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:723:40: note: in expansion of macro ‘MaxRGB’
                     a_fvec[a_idx++] = (MaxRGB - *apix) / divisor;
                                        ^~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:86:25: note: suggested alternatives:
 #define QuantumRange  ((Quantum) 65535)
                         ^~~~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:723:40: note: in expansion of macro ‘MaxRGB’
                     a_fvec[a_idx++] = (MaxRGB - *apix) / divisor;
                                        ^~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:85:24: note:   ‘MagickCore::Quantum’
 typedef unsigned short Quantum;
                        ^~~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:85:24: note:   ‘MagickCore::Quantum’
/usr/include/ImageMagick-6/magick/magick-type.h:86:34: error: expected ‘)’ before numeric constant
 #define QuantumRange  ((Quantum) 65535)
                       ~          ^~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:723:40: note: in expansion of macro ‘MaxRGB’
                     a_fvec[a_idx++] = (MaxRGB - *apix) / divisor;
                                        ^~~~~~
libinterp/corefcn/__magick_read__.cc:723:65: error: expected ‘)’ before ‘;’ token
                     a_fvec[a_idx++] = (MaxRGB - *apix) / divisor;
                                       ~                         ^
                                                                 )
In file included from /usr/include/ImageMagick-6/magick/MagickCore.h:76,
                 from /usr/include/ImageMagick-6/Magick++/Include.h:42,
                 from /usr/include/ImageMagick-6/Magick++.h:10,
                 from libinterp/corefcn/__magick_read__.cc:42:
libinterp/corefcn/__magick_read__.cc: In function ‘void encode_uint_image(std::vector<Magick::Image>&, const T&, const T&)’:
/usr/include/ImageMagick-6/magick/magick-type.h:86:25: error: ‘Quantum’ was not declared in this scope
 #define QuantumRange  ((Quantum) 65535)
                         ^~~~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:1166:28: note: in expansion of macro ‘MaxRGB’
                          / MaxRGB;
                            ^~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:86:25: note: suggested alternatives:
 #define QuantumRange  ((Quantum) 65535)
                         ^~~~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:1166:28: note: in expansion of macro ‘MaxRGB’
                          / MaxRGB;
                            ^~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:85:24: note:   ‘MagickCore::Quantum’
 typedef unsigned short Quantum;
                        ^~~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:85:24: note:   ‘MagickCore::Quantum’
/usr/include/ImageMagick-6/magick/magick-type.h:86:34: error: expected ‘)’ before numeric constant
 #define QuantumRange  ((Quantum) 65535)
                       ~          ^~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:1166:28: note: in expansion of macro ‘MaxRGB’
                          / MaxRGB;
                            ^~~~~~
/usr/include/ImageMagick-6/magick/magick-type.h:86:34: error: expected ‘)’ before numeric constant
 #define QuantumRange  ((Quantum) 65535)
                       ~          ^~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:1221:38: note: in expansion of macro ‘MaxRGB’
                                      MaxRGB - octave::math::round (double (*a_fvec) / divisor));
                                      ^~~~~~
libinterp/corefcn/__magick_read__.cc:1221:96: error: expected ‘)’ before ‘;’ token
                                      MaxRGB - octave::math::round (double (*a_fvec) / divisor));
                                                                                                ^
                                                                                                )
libinterp/corefcn/__magick_read__.cc:1220:37: note: to match this ‘(’
                     Magick::Color c (grey, grey, grey,
                                     ^
In file included from /usr/include/ImageMagick-6/magick/MagickCore.h:76,
                 from /usr/include/ImageMagick-6/Magick++/Include.h:42,
                 from /usr/include/ImageMagick-6/Magick++.h:10,
                 from libinterp/corefcn/__magick_read__.cc:42:
/usr/include/ImageMagick-6/magick/magick-type.h:86:34: error: expected ‘)’ before numeric constant
 #define QuantumRange  ((Quantum) 65535)
                       ~          ^~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:1294:38: note: in expansion of macro ‘MaxRGB’
                                      MaxRGB - octave::math::round (double (*a_fvec) / divisor));
                                      ^~~~~~
libinterp/corefcn/__magick_read__.cc:1294:96: error: expected ‘)’ before ‘;’ token
                                      MaxRGB - octave::math::round (double (*a_fvec) / divisor));
                                                                                                ^
                                                                                                )
libinterp/corefcn/__magick_read__.cc:1291:37: note: to match this ‘(’
                     Magick::Color c (octave::math::round (double (*img_fvec)          / divisor),
                                     ^
In file included from /usr/include/ImageMagick-6/magick/MagickCore.h:76,
                 from /usr/include/ImageMagick-6/Magick++/Include.h:42,
                 from /usr/include/ImageMagick-6/Magick++.h:10,
                 from libinterp/corefcn/__magick_read__.cc:42:
/usr/include/ImageMagick-6/magick/magick-type.h:86:34: error: expected ‘)’ before numeric constant
 #define QuantumRange  ((Quantum) 65535)
                       ~          ^~~~~
/usr/include/ImageMagick-6/magick/deprecate.h:59:17: note: in expansion of macro ‘QuantumRange’
 #define MaxRGB  QuantumRange  /* deprecated */
                 ^~~~~~~~~~~~
libinterp/corefcn/__magick_read__.cc:1374:35: note: in expansion of macro ‘MaxRGB’
                     ind[GM_idx] = MaxRGB - octave::math::round (double (*a_fvec) / divisor);
                                   ^~~~~~
  CXX      libinterp/corefcn/libcorefcn_la-besselj.lo
libinterp/corefcn/__magick_read__.cc: In instantiation of ‘octave_value_list read_images(std::vector<Magick::Image>&, const Array<long int>&, const octave_idx_type&, const octave_scalar_map&) [with T = boolNDArray; octave_idx_type = long int]’:
libinterp/corefcn/__magick_read__.cc:906:79:   required from here
libinterp/corefcn/__magick_read__.cc:706:40: warning: unused variable ‘apix’ [-Wunused-variable]
             const Magick::IndexPacket *apix
                                        ^~~~
libinterp/corefcn/__magick_read__.cc: In instantiation of ‘octave_value_list read_images(std::vector<Magick::Image>&, const Array<long int>&, const octave_idx_type&, const octave_scalar_map&) [with T = intNDArray<octave_int<unsigned char> >; octave_idx_type = long int]’:
libinterp/corefcn/__magick_read__.cc:908:79:   required from here
libinterp/corefcn/__magick_read__.cc:706:40: warning: unused variable ‘apix’ [-Wunused-variable]
libinterp/corefcn/__magick_read__.cc: In instantiation of ‘octave_value_list read_images(std::vector<Magick::Image>&, const Array<long int>&, const octave_idx_type&, const octave_scalar_map&) [with T = intNDArray<octave_int<short unsigned int> >; octave_idx_type = long int]’:
libinterp/corefcn/__magick_read__.cc:910:79:   required from here
libinterp/corefcn/__magick_read__.cc:706:40: warning: unused variable ‘apix’ [-Wunused-variable]
libinterp/corefcn/__magick_read__.cc: In instantiation of ‘octave_value_list read_images(std::vector<Magick::Image>&, const Array<long int>&, const octave_idx_type&, const octave_scalar_map&) [with T = FloatNDArray; octave_idx_type = long int]’:
libinterp/corefcn/__magick_read__.cc:912:79:   required from here
libinterp/corefcn/__magick_read__.cc:706:40: warning: unused variable ‘apix’ [-Wunused-variable]
make[2]: * [Makefile:18197: libinterp/corefcn/libcorefcn_la-__magick_read__.lo] Error 1
make[2]: * Waiting for unfinished jobs....
make[2]: Leaving directory '/home/manu/octave-5.1.0'
make[1]: * [Makefile:27052: all-recursive] Error 1
make[1]: Leaving directory '/home/manu/octave-5.1.0'
make: * [Makefile:10872: all] Error 2



Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-05-27 rik5 Open/ClosedOpen Closed
    2019-05-12 mtmiller StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code