[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49653] Build failure with ImageMagick
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #49653] Build failure with ImageMagick |
Date: |
Fri, 12 Nov 2021 03:42:47 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36 Edg/95.0.1020.44 |
Follow-up Comment #18, bug #49653 (project octave):
Trying to configure with the ImageMagick libraries using our "--with-magick="
configure flag didn't work for me.
Currently we are adding "++" to the end of the package name that we query from
pkg-config. That doesn't work with the naming convention of that package on
Ubuntu 21.10 (and possibly other distributions) where it is named e.g.
"Magick++-6.Q16HDRI" (other variants can also be installed).
Additionally, we are currently ignoring all pre-processor flags but "-I" from
the Magick++ libraries. There is a comment at the configure check that says
that some extra flags might break Octave compilation. That comment is from
more than 10 years ago:
http://hg.savannah.gnu.org/hgweb/octave/rev/55ecaefb7d0f
Maybe that's no longer an issue?
With the attached patch, I can configure with:
../configure CPPFLAGS="-I/usr/include/hdf5/serial -I/usr/include/suitesparse"
LDFLAGS="-L/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH)/hdf5/serial"
--prefix=${HOME}/usr --with-magick=Magick++-6.Q16HDRI
Octave compiles and links correctly for me.
The tests involving alpha channels and greyscale images in `imwrite` are
failing. But that is probably a different issue.
(file #52257)
_______________________________________________________
Additional Item Attachment:
File name: bug49653-magick-pkg-config.patch Size:2 KB
<https://file.savannah.gnu.org/file/bug49653-magick-pkg-config.patch?file_id=52257>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?49653>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick, John W. Eaton, 2021/11/10
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick, Markus Mützel, 2021/11/11
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick, Markus Mützel, 2021/11/11
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick, John W. Eaton, 2021/11/11
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick,
Markus Mützel <=
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick, John W. Eaton, 2021/11/12
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick, Markus Mützel, 2021/11/12
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick, John W. Eaton, 2021/11/12
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick, Markus Mützel, 2021/11/14