Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Reply-To: From: "Norman Vine" To: Subject: RE: building the _tkinter.a or _tkinter.dll for cygwin Date: Fri, 23 Mar 2001 04:40:00 -0500 Message-ID: <000201c0b37d$3bac37c0$a300a8c0@nhv> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2232.26 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal Volker Zell writes: >>>>>> "Dennis" == Dennis Wilson writes: >> > Dennis> The next lack of knowledge I am exhibiting is that I can't get the > Dennis> _tkinter.c to compile and link. > > Dennis> What I have found so far is that there is a python script called > Dennis> setup.py that is run. It tries to detect where > >Below is the relevant portion of my version of setup.py: > > >Note that I moved the cygwin tcl/tk stuff from usr/include, >usr/lib out of the way >and compiled the X11 variant of tcl/tk. I have the relevant >header and libs now under >/usr/local/... > >I also compiled > >o BLT2.4u - http://www.scriptics.com/ftp/blt/ > >and have that under /usr/local tree. > >I can only say that with this setup python compiles OOTB and also the >_tkinter module. It even works fine. I checked with the supplied demos. FWIW - _tkinter and its variants will work just fine with the Cygwin tcltk distribution You will need the tcl/tk x11 include files though These live in their normal place in /usr/include/x11 You will either need to down load the tcltk source distribution as these are no longer distributed in the Cygwin package or you can get just the headers from here http://www.vso.cape.com/~nhv/files/cygwin/X11.zip You also have to comment out the line in setup.py that tries to link with xlib # Finally, link with the X11 libraries # libs.append('X11') Other then this everything works out of the box with the current Python and Cygwin distributions. Cheers Norman Vine -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple