View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

X11Iraf v 1.32 and Cygwin

Andrew Farrow wrote on Feb 17, 2009

Running up against a wall here almost....
first off I have the working copy of xgterm.cygwin available so I can still use iraf. so I'm not S.O.L.

My boss asked me to get x11iraf(mainly ximtool) to run under cygwin, and as I try again and again, it's not working.

I picked out the last stable release of X11iraf from the ftp server
(http://iraf.net/ftp/iraf/x11iraf/v1.3.2/x11iraf-v1.3.2-bin.macintel.tar.gz) and followed the README.install, ran ./install and it placed all of the items in the right place. I ran chmod 777 (yea a little lazy) on the ximtool, xgterm, etc so I could run it as any user on the computer.

When I try to run ximtool or xgterm after the install, I get this message: (3628 is the pid)

$ ximtool
/usr/local/bin/ximtool: /usr/local/bin/ximtool: cannot execute binary file

$ xgterm&
[1] 3628

$ /usr/local/bin/xgterm: /usr/local/bin/xgterm: cannot execute binary file
[1]+ Exit 126 xgterm

Is ximtool not setup to run under cygwin? If not, will it ever be?

Andrew Farrow wrote on Feb 17, 2009

Well I just answered my own question, Just read through the documentation (NOTES-V2.0 and NOTES-V1.3) and saw that Cygwin is not yet supported. I'll be keeping my eye out for the 2.0 release that has support for cygwin.

Mike Fitzpatrick wrote on Feb 17, 2009

Andrew,

I just posted a binary distribution for Cygwin, see the link on the main page to get it. There are still some problems to be cleaned up in getting the package to build from a common source (particularly for xgterm), but the ximtool binary in this release appears to work fine. Things will all be normalized in the final version, until then let me know if you find problems.

Cheers,
-Mike

Andrew Farrow wrote on Feb 17, 2009

I think I'll add an issue I'm hitting right now.

I have the distrib and installed it using the ./install script with a minor mod so it would install even though I'm not root (I'm the sysadmin and I just don't another admin account on the machine).

xgterm: works fine in that I can Use IRAF and run it's items well
xtapemon: Works.
vximtool: receive the following and hangs xgterm, Ctl^C brings it out of hang.

Warning: cannot open /dev/imt10



ximtool: I receive the following, and Exit 1

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  91 (X_QueryColors)
  Value in failed request:  0xffffff
  Serial number of failed request:  268
  Current serial number in output stream:  268


Could it be that I need to again update the X11 Libaries?

{edit = Bad grammar}

Mike Fitzpatrick wrote on Feb 17, 2009


Warning: cannot open /dev/imt10


The fifo pipes aren't necessary for display and I missed the case for Cygwin that tells the code to ignore them (fixed for next release). For the moment you can just use

vximtool -unix_only


to avoid this, but note that VXIMTOOL is generally only used by developers. XImtool should complain but keep running.

As for the X error: This v2.0 version supports 24-bit displays but is a little weak in 8-bit support ironically. Be sure you aren't using just 256 colors for the main display.

-Mike

Andrew Farrow wrote on Feb 17, 2009

I'm Running this over Remote Desktop Connection right now, and I'm being limited to 16-bit. I also just updated the x11 packages in Cygwin... holy shi....

I am not happy...

I think I have to reinstall IRAF now x.x That or a system restore.

I'll get back to you on the issue.

Mike Fitzpatrick wrote on Feb 17, 2009

16-bit support is also not quite done yet.

Note that unless your expletive was for some other reason, you do NOT need to reinstall IRAF because of any problems in X11IRAF, they are entirely separate systems. Anyway, good luck on whatever the problem is.

-Mike

Andrew Farrow wrote on Feb 17, 2009

It was for two reasons, one, the scripts I made broke and it doesn't recognize cl, or ecl from the home directory where the login.cl is.I'll be cleaning up the mess.

Andrew Farrow wrote on Feb 17, 2009

What happened was the fact X11 moved from /usr/X11R6 to /usr/bin. this cause confusion in the shells... As well as the new version auto At least I can use ds9 with an xterm...

Now with iraf reset back to normal (almost).

I reinstalled xgterm, and no luck....

it gives me:
[code]
xgterm
xgterm: unable to find termcap entry.
[code]

This is the same for new and old versions of xgterm.

Andrew Farrow wrote on Feb 17, 2009

Warning, Wall of Text

This time I'm actually happy, I have ximtool running well. just had to use a different remote admin software that wouldn't limit me to 16 bit.

I am getting some warnings and Errors now.
#1 not sure what's up here.

ximtool&
Warning: cannot open /dev/imt1o
ximtool: inet port 5137 already in use - disable


#2
Load file issue.
When I'm in root trying to get to the drive that has my images, clicking the folders results in an extra "/" on the front of the directory string which in turn keeps the system from finding the right folder.
What It looks for when I double click from the root folder

//cygdrive


What it should be

/cygdrive


I can type in

/cygdrive/e/images/TEST/

and it will go to it's proper destination, but if I type in

cygdrive/e/images/TEST/

it'll reproduce the errors as given in the first example of this error.

#3 (the big kahuna..... so far, not, LOTS of text below)
After pressing the V and H buttons, only once each.
For the V, ximtool kept running.

ximtool: warning, error event received:
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  105260
  Current serial number in output stream:  105262
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  70 (X_PolyFillRectangle)
  Resource id in failed request:  0xe00c8b
  Serial number of failed request:  105261
  Current serial number in output stream:  105262
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  62 (X_CopyArea)
  Resource id in failed request:  0xe00c8b
  Serial number of failed request:  105264
  Current serial number in output stream:  105276
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  62 (X_CopyArea)
  Resource id in failed request:  0xe00c8b
  Serial number of failed request:  105266
  Current serial number in output stream:  105276
ximtool: warning, error event received:
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  105269
  Current serial number in output stream:  105276
ximtool: warning, error event received:
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  105271
  Current serial number in output stream:  105276
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  62 (X_CopyArea)
  Resource id in failed request:  0xe00c8b
  Serial number of failed request:  105977
  Current serial number in output stream:  106020
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  62 (X_CopyArea)
  Resource id in failed request:  0xe00c8b
  Serial number of failed request:  105981
  Current serial number in output stream:  106020


for the H, ximtool stopped after the undepressing of the button

 ximtool: warning, error event received:
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  107318
  Current serial number in output stream:  107320
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  70 (X_PolyFillRectangle)
  Resource id in failed request:  0xe00cce
  Serial number of failed request:  107319
  Current serial number in output stream:  107320
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  14 (X_GetGeometry)
  Resource id in failed request:  0xe00c8b
  Serial number of failed request:  107320
  Current serial number in output stream:  107320
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  62 (X_CopyArea)
  Resource id in failed request:  0xe00cce
  Serial number of failed request:  107322
  Current serial number in output stream:  107336
ximtool: warning, error event received:
X Error of failed request:  BadPixmap (invalid Pixmap parameter)
  Major opcode of failed request:  54 (X_FreePixmap)
  Resource id in failed request:  0xe00c8b
  Serial number of failed request:  107323
  Current serial number in output stream:  107336
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  62 (X_CopyArea)
  Resource id in failed request:  0xe00cce
  Serial number of failed request:  107324
  Current serial number in output stream:  107336
ximtool: warning, error event received:
X Error of failed request:  BadPixmap (invalid Pixmap parameter)
  Major opcode of failed request:  54 (X_FreePixmap)
  Resource id in failed request:  0xe00c8c
  Serial number of failed request:  107325
  Current serial number in output stream:  107336
ximtool: warning, error event received:
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  107326
  Current serial number in output stream:  107336
ximtool: warning, error event received:
X Error of failed request:  BadPixmap (invalid Pixmap parameter)
  Major opcode of failed request:  54 (X_FreePixmap)
  Resource id in failed request:  0xe00c8d
  Serial number of failed request:  107327
  Current serial number in output stream:  107336
ximtool: warning, error event received:
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  107328
  Current serial number in output stream:  107336
ximtool: warning, error event received:
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  110718
  Current serial number in output stream:  110720
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  70 (X_PolyFillRectangle)
  Resource id in failed request:  0xe00ce5
  Serial number of failed request:  110719
  Current serial number in output stream:  110720
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  14 (X_GetGeometry)
  Resource id in failed request:  0xe00cce
  Serial number of failed request:  110720
  Current serial number in output stream:  110720
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  62 (X_CopyArea)
  Resource id in failed request:  0xe00ce5
  Serial number of failed request:  110722
  Current serial number in output stream:  110733
ximtool: warning, error event received:
X Error of failed request:  BadPixmap (invalid Pixmap parameter)
  Major opcode of failed request:  54 (X_FreePixmap)
  Resource id in failed request:  0xe00cce
  Serial number of failed request:  110723
  Current serial number in output stream:  110733
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  62 (X_CopyArea)
  Resource id in failed request:  0xe00ce5
  Serial number of failed request:  110724
  Current serial number in output stream:  110733
ximtool: warning, error event received:
X Error of failed request:  BadPixmap (invalid Pixmap parameter)
  Major opcode of failed request:  54 (X_FreePixmap)
  Resource id in failed request:  0xe00ccf
  Serial number of failed request:  110725
  Current serial number in output stream:  110733
ximtool: warning, error event received:
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  110726
  Current serial number in output stream:  110733
ximtool: warning, error event received:
X Error of failed request:  BadPixmap (invalid Pixmap parameter)
  Major opcode of failed request:  54 (X_FreePixmap)
  Resource id in failed request:  0xe00cd0
  Serial number of failed request:  110727
  Current serial number in output stream:  110733
ximtool: warning, error event received:
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  110728
  Current serial number in output stream:  110733
ximtool: warning, error event received:
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  111049
  Current serial number in output stream:  111051
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  70 (X_PolyFillRectangle)
  Resource id in failed request:  0xe00cf5
  Serial number of failed request:  111050
  Current serial number in output stream:  111051
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  14 (X_GetGeometry)
  Resource id in failed request:  0xe00ce5
  Serial number of failed request:  111051
  Current serial number in output stream:  111051
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  62 (X_CopyArea)
  Resource id in failed request:  0xe00cf5
  Serial number of failed request:  111053
  Current serial number in output stream:  111064
ximtool: warning, error event received:
X Error of failed request:  BadPixmap (invalid Pixmap parameter)
  Major opcode of failed request:  54 (X_FreePixmap)
  Resource id in failed request:  0xe00ce5
  Serial number of failed request:  111054
  Current serial number in output stream:  111064
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  62 (X_CopyArea)
  Resource id in failed request:  0xe00cf5
  Serial number of failed request:  111055
  Current serial number in output stream:  111064
ximtool: warning, error event received:
X Error of failed request:  BadPixmap (invalid Pixmap parameter)
  Major opcode of failed request:  54 (X_FreePixmap)
  Resource id in failed request:  0xe00ce6
  Serial number of failed request:  111056
  Current serial number in output stream:  111064
ximtool: warning, error event received:
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  111057
  Current serial number in output stream:  111064
ximtool: warning, error event received:
X Error of failed request:  BadPixmap (invalid Pixmap parameter)
  Major opcode of failed request:  54 (X_FreePixmap)
  Resource id in failed request:  0xe00ce7
  Serial number of failed request:  111058
  Current serial number in output stream:  111064
ximtool: warning, error event received:
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  111059
  Current serial number in output stream:  111064
ximtool: warning, error event received:
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  111062
  Current serial number in output stream:  111064
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  70 (X_PolyFillRectangle)
  Resource id in failed request:  0xe00cf8
  Serial number of failed request:  111063
  Current serial number in output stream:  111064
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  62 (X_CopyArea)
  Resource id in failed request:  0xe00cf8
  Serial number of failed request:  111066
  Current serial number in output stream:  111075
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  62 (X_CopyArea)
  Resource id in failed request:  0xe00cf8
  Serial number of failed request:  111068
  Current serial number in output stream:  111075
ximtool: warning, error event received:
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  111072
  Current serial number in output stream:  111075
ximtool: warning, error event received:
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  111363
  Current serial number in output stream:  111365
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  70 (X_PolyFillRectangle)
  Resource id in failed request:  0xe00d02
  Serial number of failed request:  111364
  Current serial number in output stream:  111365
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  14 (X_GetGeometry)
  Resource id in failed request:  0xe00cf5
  Serial number of failed request:  111365
  Current serial number in output stream:  111365
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  62 (X_CopyArea)
  Resource id in failed request:  0xe00d02
  Serial number of failed request:  111367
  Current serial number in output stream:  111381
ximtool: warning, error event received:
X Error of failed request:  BadPixmap (invalid Pixmap parameter)
  Major opcode of failed request:  54 (X_FreePixmap)
  Resource id in failed request:  0xe00cf5
  Serial number of failed request:  111368
  Current serial number in output stream:  111381
ximtool: warning, error event received:
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  62 (X_CopyArea)
  Resource id in failed request:  0xe00d02
  Serial number of failed request:  111369
  Current serial number in output stream:  111381
ximtool: warning, error event received:
X Error of failed request:  BadPixmap (invalid Pixmap parameter)
  Major opcode of failed request:  54 (X_FreePixmap)
  Resource id in failed request:  0xe00cf6
  Serial number of failed request:  111370
  Current serial number in output stream:  111381
ximtool: warning, error event received:
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  53 (X_CreatePixmap)
  Serial number of failed request:  111371
  Current serial number in output stream:  111381
ximtool: warning, error event received:
X Error of failed request:  BadPixmap (invalid Pixmap parameter)
  Major opcode of failed request:  54 (X_FreePixmap)
  Resource id in failed request:  0xe00cf7
  Serial number of failed request:  111372
  Current serial number in output stream:  111381
[1]+  Exit 83                 ximtool  (wd: ~)

Mike Potter wrote on Feb 17, 2009


it gives me:
[code]
xgterm
xgterm: unable to find termcap entry.
[code]


I get the same thing so you're not alone. I'm using the newest cygwin downloads for both iraf and x11iraf.

Mike

Mike Potter wrote on Feb 17, 2009

Well, I just went do a different mirror site than the one I've been using to download cygwin and re-downloaded the entire X11 tree - and xgterm now works! I'm not sure why but when going to the different mirror site there WAS new stuff to download - whereas the other site didn't actually download or install anything. That is, after wrestling with this for a couple of days I decided to just try re-ownloading and installing so went to the same site I'd always gone to and the process went almost instantaneously to the dialog asking if I wanted icons on my desktop and/or start menu. So I decided on a whim to try the next mirror site up and this time it took about three minutes or so to download and install.

The mirror site that worked was:

ftp.fedoramd.org

the one that I'd used previously was

ftp.repo.fedoramd.org.

Being essentially ignorant of how all of that works I really don't know why there was a difference.

Mike Potter

winxp home sp3
cygwin
IRAF-PC 2.14.1
X11iraf ver 2.0BETA

Andrew Farrow wrote on Feb 17, 2009

Mike Potter

Well, I just went do a different mirror site than the one I've been using to download cygwin and re-downloaded the entire X11 tree - and xgterm now works! I'm not sure why but when going to the different mirror site there WAS new stuff to download - whereas the other site didn't actually download or install anything. That is, after wrestling with this for a couple of days I decided to just try re-ownloading and installing so went to the same site I'd always gone to and the process went almost instantaneously to the dialog asking if I wanted icons on my desktop and/or start menu. So I decided on a whim to try the next mirror site up and this time it took about three minutes or so to download and install.

The mirror site that worked was:

ftp.fedoramd.org

the one that I'd used previously was

ftp.repo.fedoramd.org.

Being essentially ignorant of how all of that works I really don't know why there was a difference.

Mike Potter

winxp home sp3
cygwin
IRAF-PC 2.14.1
X11iraf ver 2.0BETA


That fixed my xgterm.

Last post on Feb 17, 2009