Page 1 of 1

Missing iapi.h when executing BuildImageMagickObject release

Posted: 2007-07-13T15:10:14-07:00
by faacody
I'm attempting to add a compile definition to ImageMagick.dll to keep the error dialog from being presented (while keeping the error logging intact) since we are hoping to use it as part of a service.

I've successfully built the VisualStaticMT solution using VS C++ 2005. However, when I attempt to run the BuildImageMagickObject command, I get (from magick/delegate.h(26)) the fatal error:

C1083: Cannot open include file: 'ghostscript/iapi.h': No such file or directory.

How do I obtain iapi.h? I have ghostscript and gsview installed but cannot locate iapi.h on my system. Have I missed a step somewhere?

Missing iapi.h and ierrors.h Ghostscript files

Posted: 2007-09-16T00:32:30-07:00
by dannyyy
I'm having the same problem. Here is the output:

Code: Select all

:: === CORE_magick, Release Win32 ===
..\..\magick\delegate.h:26: ghostscript/iapi.h: No such file or directory
..\..\magick\delegate.h:27: ghostscript/ierrors.h: No such file or directory
:: === Build finished: 2 errors, 0 warnings ===
Where can I get these files ? And where to place them ?

Re: Missing iapi.h when executing BuildImageMagickObject release

Posted: 2007-09-16T07:16:09-07:00
by magick
Looks like you need to install Ghostscript.

Re: Missing iapi.h when executing BuildImageMagickObject release

Posted: 2007-09-16T08:18:56-07:00
by dannyyy
Yes, I know that, but the Ghostscript package doesn't contains the headers I mentioned.

I got it from the website http://pages.cs.wisc.edu/~ghost/ and choose the GPL Ghostscript 8.60 package. This is the right file I need ?

Re: Missing iapi.h when executing BuildImageMagickObject release

Posted: 2007-09-16T08:24:54-07:00
by magick
Is there a Ghostscript development package? It would include the required headers. If you do not want to include Ghostscript support, edit magick-config.h and uncomment the HasGS define.

Re: Missing iapi.h when executing BuildImageMagickObject release

Posted: 2007-09-16T12:32:36-07:00
by dannyyy
I guess it is a development package, because I found a link for it on ImageMagick website, on the "Introducing Image Formats" page (http://www.imagemagick.org/script/formats.php).

I need Postscript and PDF support on my project, so I can't disable Ghostscript.

After a search on Google, I noticed that more people are having the same problem.

Edit: I found the headers after searching the development package. Sorry.

But where I need to put the "ghostscript-8.60" directory, and how do I integrate it with ImageMagick ?