Windows X Server and display

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
cgroer

Windows X Server and display

Post by cgroer »

Successfully built version 6.3.6 on my Windows XP laptop using VisualStudio 8. Everything works fine except for image.display() when I get the dreaded

"unable to open X server `(null)' [no such file or directory]" error.

I have read suggestions to set the environment variable DISPLAY to :0 or localhost:0.0 but I have had no success (I typed "set DISPLAY= ..." at the command prompt.) I have tried this while running cygwin/x and also xming and get the same results. I also get the same result when I try to pass in -display at the command line for commands such as animate, but I get the same message. I'd rather not admit how long I've been banging my head on this, so I'm open to any and all suggestions! Thanks very much.

Chris Groer
University of Maryland
cgroer

Re: Windows X Server and display

Post by cgroer »

Here is an update on this. I have problems with the Multithreaded Static build. However, I built the Multithreaded DLL, and it works. Same machine, same x server, same configuration settings other than the DLL vs. static... Any ideas? Thanks

Chris
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Windows X Server and display

Post by anthony »

"unable to open X server `(null)'
Either use -display ':0' on the display command line.
Or better still set a DISPLAY environment variable.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
jimsteed

Re: Windows X Server and display

Post by jimsteed »

I am having the same problem with Windows and the Exceed X server. I run other X server programs from the commandline that also require DISPLAY to be set correctly and they still work.

Is there any chance the binaries on imagemagick.org were built without X11 support? Can anyone point me to Windows binaries that they have used successfully with an X server?

I am using VC Express so I also am handicapped in that I can't build the configure program since it requires MFC.
jimsteed

Re: Windows X Server and display

Post by jimsteed »

I don't know why but 6.3.7-2 works but 6.3.7-1 doesn't work.
Post Reply