Thomas Seilund skrev: > Dear All > > Thanks for a wonderful tool! > > I embed ImageMagickWand in a my own modified version of ffmpeg, see > http://ffmpeg.org/ > > Ffmpeg is a 'standard tool' that you install using ./configure, make, > install > > Now, I include some ImageMagick header files in one of the files from > the ffmpeg package, file ffmpeg.c. It looks like this: > > #include <wand/MagickWand.h> > #include <wand/magick-property.h> > #include <wand/pixel-wand.h> > > When I compile the ffmpeg project with the standard make command I get: > > ffmpeg.c:51:29: error: wand/MagickWand.h: No such file or directory > > Now I try to change the include statements in ffmpeg.c so now I have: > > #include <ImageMagick/wand/MagickWand.h> > #include <wand/magick-property.h> > #include <wand/pixel-wand.h> > > I run make and I get: > > In file included from ffmpeg.c:50: > /usr/include/ImageMagick/wand/MagickWand.h:29:36: error: > magick/magick-config.h: No such file or directory > > I think it all boils down to where include files are found. > > I note that ImageMagic uses MagickWand-config. Here is output from > MagickWand-config --cflags -cppflags: > > -I/usr/include/ImageMagick -fopenmp > -I/usr/include/ImageMagick > > Any ideas on how to compile ffmpeg with embedded ImageMagick ? > > Thomas S > > _______________________________________________ > Magick-users mailing list > [email protected] > http://studio.imagemagick.org/mailman/listinfo/magick-users >
I found a way to compile ffmpeg with embeded ImageMagick. First I do the standard ./configure in the ffmpeg directory. Then I open up the fle that is created, config.mak Here is a reference to the compiler to use, i.e. CC=gcc I change that line to include call to MagickWand-config: CC=gcc `MagickWand-config --cflags --cppflags` `MagickWand-config --ldflags --libs` After that I can do a make and I get no errors! Thomas S _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
