From: joakim@verona.se
To: Emacs Development <emacs-devel@gnu.org>
Subject: how to resolve namespace issues between imagemagick and gif libraries?
Date: Fri, 31 Jul 2009 20:02:32 +0200 [thread overview]
Message-ID: <m3k51ozq6f.fsf@verona.se> (raw)
I've made a patch that makes it possible to load an image file using
the imagemagick library. However, I cant compile in imagemagick and gif
support at the same time due to namespace collisions.
When compiling image.c:
gcc -c -D_BSD_SOURCE -Demacs -DHAVE_CONFIG_H -I. -I/mnt/data/build/emacsnew/emacs/src -D_BSD_SOURCE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/alsa -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -fopenmp -I/usr/include/ImageMagick -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -Wno-pointer-sign image.c
In file included from /usr/include/ImageMagick/wand/deprecate.h:28,
from /usr/include/ImageMagick/wand/MagickWand.h:154,
from image.c:7865:
/usr/include/ImageMagick/wand/drawing-wand.h:172: error: conflicting types for ‘DrawRectangle’
/usr/include/gif_lib.h:324: note: previous declaration of ‘DrawRectangle’ was here
make[1]: *** [image.o] Error 1
make[1]: Leaving directory `/mnt/data/build/emacsnew/emacs/src'
make: *** [src] Error 2
If I leave out gif support it compiles and works well enough to load a
djvu file in emacs like this:
(insert-image (create-image "/tmp/tst.djvu" 'imagemagick) )
Any hints how to fix this in a manner acceptable for Emacs code?
--
Joakim Verona
next reply other threads:[~2009-07-31 18:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-31 18:02 joakim [this message]
2009-08-01 7:10 ` how to resolve namespace issues between imagemagick and gif libraries? Eli Zaretskii
2009-08-01 16:57 ` joakim
2009-08-01 17:12 ` Eli Zaretskii
2009-08-02 14:18 ` Chong Yidong
2009-08-04 16:54 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3k51ozq6f.fsf@verona.se \
--to=joakim@verona.se \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).