octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #49653] Build failure with ImageMagick


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick
Date: Wed, 10 Nov 2021 15:04:08 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #14, bug #49653 (project octave):

Looking at old bug reports...

On my Debian system with ImageMagick 8:6.9.11.60+dfsg-1.3, the following
change all I need to allow Octave's current __magick_read__.cc to compile:


diff --git a/libinterp/corefcn/__magick_read__.cc
b/libinterp/corefcn/__magick_read__.cc
--- a/libinterp/corefcn/__magick_read__.cc
+++ b/libinterp/corefcn/__magick_read__.cc
@@ -39,6 +39,8 @@
 #include "errwarn.h"
 
 #if defined (HAVE_MAGICK)
+#  define MAGICKCORE_QUANTUM_DEPTH 16
+#  define MAGICKCORE_HDRI_ENABLE 1
 #  include <Magick++.h>
 #  include <clocale>
 #endif


but linking fails with


/bin/ld: libinterp/.libs/liboctinterp.so: undefined reference to
`Magick::Color::Color(float, float, float)'
/bin/ld: libinterp/.libs/liboctinterp.so: undefined reference to
`Magick::Color::Color(float, float, float, float)'


I have no idea why that happens.  The Color class has constructors that accept
either 3 or 4 Quantum values and Quantum appears to be a typedef for
MagickFloatType which is a typedef for float.

I'm willing to fix if someone wants to explain how to get the constructor
defined.  Otherwise, maybe we should just require GraphicsMagick.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?49653>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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