ImageMagick No such file or directory -
i trying screen shot using following code;
#include <stdio.h> #include </wand/magickwand.h> int main(int argc, char **argv) { magickwandgenesis(); magickwand *wand = null; wand = newmagickwand(); magickreadimage(wand,"x:root"); // <-- invoke importimagecommand magickwriteimage(wand,"screen_shot.png"); if(wand)wand = destroymagickwand(wand); magickwandterminus(); return 0; } however getting following error message, magick-config.h in specified folder 'magick/magick-config.h' , not understand problem is;
$ make screenshot cc screenshot.c -o screenshot in file included /wand/magickwand.h:29:0, screenshot.c:2: /magick/magick-config.h:29:3: warning: #warning "you should set magickcore_quantum_depth sensible default set configure time default" /magick/magick-config.h:30:3: warning: #warning "this obsolete behavior please fix makefile" /magick/magick-config.h:52:3: warning: #warning "you should set magickcore_hdri_enable sensible default set configure time default" /magick/magick-config.h:53:3: warning: #warning "this obsolete behavior please fix yours makefile" in file included /wand/magickwand.h:70:0, screenshot.c:2: /magick/magickcore.h:29:36: fatal error: magick/magick-config.h: no such file or directory compilation terminated. <builtin>: recipe target `screenshot' failed make: *** [screenshot] error 1 any appreciated.
thanks
yes, had problem , fixed when installed package libmagickcore-dev following command:
sudo apt-get install libmagickcore-dev
through ubuntu repositories. :-)
also if did not work, try installing package called "graphicsmagick-libmagick-dev-compat". ac;
Comments
Post a Comment