delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/21/17:14:12

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <A5AF6F04CF7FD311BC5700902773DDC730F083@exchange13.rl.ac.uk>
From: "Adye, TJ (Tim) " <T DOT J DOT Adye AT rl DOT ac DOT uk>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: True Cygwin Tcl/Tk without X?
Date: Wed, 21 Mar 2001 22:12:43 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

Hi,

I have a Tcl/Tk (wish) application that I want to run in the Cygwin
environment. I tried cygwish80 (which works fine for the Tk stuff), but
(despite its name) doesn't seem to respect the Cygwin conventions (eg. it
requires faux Windows-style path names (eg. C:/cygwin/ vs. /) and doesn't
follow symbolic links). I guess cygwish80 was built with -mno-cygwin.

I got everything to work by building in the unix directories of Tcl and Tk
8.3.2, linking to Xlib. However I'd still prefer to be able to use the
Windows Tk GUI (because it's faster, and so I don't have to start the
X-server for this program). Is this possible, or better, has anyone been
able to build Tcl/Tk without -mno-cygwin, but with the Windows GUI?

I made some progress by linking the win version of Tk against the unix
version of Tcl (all 8.3.2 from scriptics). With a few hacks it built OK, and
ran my script (reading the correct files according to the Cygwin conventions
and creating the right GUI), but didn't allow any interaction (it sat there
with a "busy" cursor, eating CPU).

Before trying to track this problem down further (I can't say I'm much of a
Tcl/Tk or Cygwin expert), I'd like to check whether this is a reasonable
avenue to explore. Do you think I'm on the right track? Are there any
Windows Tcl features that Windows Tk requires, or Unix Tk features that the
Cygwin build requires?

One thing that might help would be to compare against the cygwish80 build,
but I couldn't get this to (trivially) build from the Cygwin source. How's
that done?

Thanks,
Tim.

PS. Just a warning for the wise: don't try "make test" on the unix version
of Tcl. One of the tests is to try to rename "/" to something else. On a
real Unix system, this naturally fails, but Cygwin allows it (I wonder
whether it should?), and dies in an horribly inconvenient fashion. Even when
I'd recovered from that and found my cygwin directory, I discovered that I'd
lost everything in /bin up to bash.exe (maybe due to the resulting
confusion, or some other test). Nasty!

PPS. Oh, I'm using the current latest+contrib Cygwin (1.18-2) and cygwish80
from tcltk-20001125-1 on Win2K SP1.

==============================  cut here  ==============================
Tim Adye, BaBar/DELPHI Groups, Particle Physics Dept.,     _   /|
          Rutherford Appleton Laboratory, UK.              \'o.O'   Oop!
e-mail:   T DOT J DOT Adye AT rl DOT ac DOT uk or VXCERN::ADYE (HEPNET/SPAN)  =(___)=  Ack!
WWW:      http://hepwww.rl.ac.uk/Delphi/Adye/homepage.html    U  Thphft!

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019