[Magic-dev] Magic 7.2 & Magic 7.3: Couldn't open display; check DISPLAY variable (fwd)

R. Timothy Edwards tim at multigig.com
Thu Aug 11 13:17:07 EDT 2005


Dear David,

> Magic works just fine with "magic -w". However, I am more interested in
> getting 3D view of my layouts, so when I key in " magic -d OGL" following is
> the status:
> 
> Magic 7.3 revision 93 - Compiled on Wed Aug 10 18:10:20 IST 2005.
> Couldn't open display; check DISPLAY variable
> The graphics display couldn't be correctly initialized.
> Use '-d NULL' if you don't need graphics.

> Cygwin Package Information
> Package                 Version
> opengl                  1.1.0-7
> xorg-x11-xwin-gl        6.8.2.0-4

 From the above package information, it looks like you have the
relevant packages for OpenGL.  If you didn't, magic probably
would not have made it as far as it did.

Here are the possibilities:

1) check DISPLAY variable, as it says.  The script /usr/local/bin/magic
    in the Cygwin version should set DISPLAY to ":0".  In the tkcon
    console of magic ("magic -d OGL -w"), you can query the variable
    using the Tcl command "echo $env(DISPLAY)".  It may be that the
    script does not set the environment variable correctly for some
    command-line options, such as having no "-w" in the command line.
    You can always try "export DISPLAY=:0" in the Cygwin terminal
    before running magic.

2) If Xwin_GL is available, it should be run instead of Xwin.  I'm
    not sure of the current status of Xwin_GL, whether it exists or
    if it just installs a variant of the Xwin server that handles
    OpenGL calls.

I expect any problem with the OpenGL version has a trivial solution,
provided that we understand the problem properly.

					Regards,
					Tim

+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim)   | email: tim.edwards at multigig.com     |
| MultiGiG, Inc.                 | web:   http://www.multigig.com      |
| 100 Enterprise Way, Suite A-3  | phone: (831) 621-3283               |
| Scotts Valley, CA 95066        | cell:  (240) 401-0616               |
+--------------------------------+-------------------------------------+


More information about the magic-dev mailing list