On Aug 5, 2008, at 11:21 PM, John W. Eaton wrote:
On 5-Aug-2008, Thomas L. Scofield wrote:
| Quoting Ben Abbot:
| > Have you installed imagemagick using FInk?
|
| I believe imagemagick is irrelevant here, as we are using the
| GraphicsMagick fork off of ImageMagick. I was able to compile after
| making a couple of changes to __magick_read__.cc. The changeset is
| included below.
|
| Thomas L. Scofield
| --------------------------------------------------------
| Associate Professor
| Department of Mathematics and Statistics
| Calvin College
| --------------------------------------------------------
|
| # HG changeset patch
| # User scofield 'AT' calvin 'DOT' edu
| # Date 1217961952 14400
| # Node ID 2489a9e459ffad937b3abe2e8d894b12ef733e17
| # Parent 4363bc94171ac18fa0ce5ccf6a7550712b9c1ca4
| Add explicit conversions from octave_int<uint8_t> to MagickLib::Quantum
|
| diff -r 4363bc94171a -r 2489a9e459ff src/DLD-FUNCTIONS/
| __magick_read__.cc
| --- a/src/DLD-FUNCTIONS/__magick_read__.cc Mon Aug 04 14:33:38 2008
| -0400
| +++ b/src/DLD-FUNCTIONS/__magick_read__.cc Tue Aug 05 14:45:52 2008
| -0400
| @@ -487,9 +487,9 @@ write_image (const std::string& filename
| {
| for (int x = 0; x < columns; x++)
| {
| - pix[i].red = m(y,x,0);
| - pix[i].green = m(y,x,1);
| - pix[i].blue = m(y,x,2);
| + pix[i].red = m(y, x, 0).value ();
| + pix[i].green = m(y, x, 1).value ();
| + pix[i].blue = m(y, x, 2).value ();
| i++;
| }
| }
This change is probably OK, but I want to undersnand why I'm not
seeing the error. What version of GCC are you using?
jwe