Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support newer versions of imagemagick #13

Open
XenGi opened this issue Jan 15, 2018 · 4 comments
Open

Support newer versions of imagemagick #13

XenGi opened this issue Jan 15, 2018 · 4 comments

Comments

@XenGi
Copy link

XenGi commented Jan 15, 2018

Compilation fails with imagemagick 7.

gcc -O2 -Wall -D_GNU_SOURCE -D_DEFAULT_SOURCE -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-7 -D_FORTIFY_SOURCE=2  -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -fopenmp -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/ImageMagick-7 -o img2xterm img2xterm.c -s -lMagickWand-7.Q16HDRI -lMagickCore-7.Q16HDRI -lm -lncursesw -lMagickWand-7.Q16HDRI -lMagickCore-7.Q16HDRI
img2xterm.c:12:0: warning: "_GNU_SOURCE" redefined
 #define _GNU_SOURCE
 
<command-line>:0:0: note: this is the location of the previous definition
img2xterm.c:18:10: fatal error: wand/MagickWand.h: No such file or directory
 #include <wand/MagickWand.h>
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:46: img2xterm] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
@0xspade
Copy link

0xspade commented Apr 1, 2018

following 😄

@0xspade
Copy link

0xspade commented Apr 1, 2018

still cant run this thing even i change the
#include <wand/MagickWand.h> to #include <MagickWand/MagickWand.h>

@XenGi
Copy link
Author

XenGi commented Apr 1, 2018

That worked for me: #14

@Foro38
Copy link

Foro38 commented Apr 25, 2021

If you're on fedora, try installing ImageMagick-devel, that worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants