delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/17/10:29:10

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3F686F96.409@etr-usa.com>
Date: Wed, 17 Sep 2003 08:28:38 -0600
From: Warren Young <warren AT etr-usa DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Cygwin-L <cygwin AT cygwin DOT com>
Subject: Perl/Tk report

I searched the list and cygwin.com for info on whether Perl/Tk works on 
Cygwin.  The only pre-built package I could find was built against perl 
5.6.1.  All the messages I found in the archives said it did not build 
OOTB on Cygwin, either because it failed to build or because you needed 
to patch it to make it build.

I'm happy to report that it now seems to install from cpan if you simply 
"force" the install.  Forcing is necessary to make it not worry that a 
bunch of tests fail.  I get tests failing on Perl/Tk on Red Hat Linux 9, 
so I'm hoping that these are just small bugs in independent parts of Tk 
that will get squished over time.  Anyway, "Hello, world" runs:

	#!/usr/bin/perl
	use Tk;
	my $mw = MainWindow->new;
	$mw->title("Hello World");
	$mw->Button(-text => "Done", -command => sub { exit })->pack;
	MainLoop;

I found a patch for Tk800.024, and the current version is .025.  Perhaps 
this patch is now part of the distribution?

Another thing to note: this appears to be a Win32-aware version of Tk. 
It doesn't appear to be using X.  That's kind of odd, since it built a 
bunch of X-related stuff...  Suits me, though.  I don't want to have to 
run an X server just to get a simple GUI program running under Cygwin.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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