how to get ImageMagick work in Cygwin under Win Xp

I tried to 3 methods, only one works well (without too much trouble) with Cygwin:

1. install the binary windows version directly ( ftp://ftp.imagemagick.org/pub/ImageMagick/binaries/). This works in Windows, but not in the cygwin flavor: the display.exe does not work under mintty or other bash shells. Even after I setup export DISPLAY=localhost:0.0, it still complains about: “display.exe: unable to open X server `(null)’ @ display.”

2. build from source code using the ImageMagick’s package (ftp://ftp.imagemagick.org/pub/ImageMagick/), but it seemed that there are some packages, such as QLR, are missing. And after configuration the “make” step failed.

3. searched if cygwin contains a ImageMagick package from the online cygwin package list (http://www.cygwin.com/packages/), it turn out to be in the “graphics” category. After installing it, display.exe was still not working. Then I started the X-Server, and included

export DISPLAY=localhost:0.0

into ~/.bashrc. Then it works.

Advertisements

One thought on “how to get ImageMagick work in Cygwin under Win Xp

  1. Pingback: MAFRI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s