Tk Source Code

View Ticket
Login
Ticket UUID: 1518577
Title: Build error on Cygwin - tkWinDefault.h missing
Type: Bug Version: None
Submitter: arjenmarkus Created on: 2006-07-07 08:25:24
Subsystem: 85. Win Build Assigned To: mdejong
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2006-07-10 16:03:01
Resolution: Wont Fix Closed By: mdejong
    Closed on: 2006-07-08 19:40:07
Description:
I tried building tk8.5a4 on Cygwin and it failed in
first instance because of tkWinDefault.h.

I changed the include statement in default.h to:

#include "../win/tkWinDefault.h"

and then it all worked okay. 

(I do not know whether this is a proper solution to the
problem - it just solved my immediate problem)
User Comments: dkf added on 2006-07-10 16:03:01:
Logged In: YES 
user_id=79902

It would be fairer to say that Cygwin is only supported on a
"when someone contributes a good patch" basis. The problem
seems to be that Cygwin isn't setting up the include path
correctly (either that, or the cygwin compiler is changing
directory when it shouldn't or something odd like that).

Given that the problem is purely within Cygwin, changes that
focus on correcting the generated makefile would be
preferred over source mods...

arjenmarkus added on 2006-07-10 11:24:33:
Logged In: YES 
user_id=400048

Indeed, the code in "generic/default.h" suggests that Cygwin
is supported:

#if defined(__WIN32__) || defined(_WIN32) || \
    defined(__CYGWIN__) || defined(__MINGW32__)
#   include "tkWinDefault.h" 
#else 
    ...
#endif

(With the workaround I gave, all works well)

mistachkin added on 2006-07-09 06:20:56:
Logged In: YES 
user_id=113501

Is there some special reason that Cygwin is not supported? 
I believe it was supported in the past and patches have been
applied to make it work?

mdejong added on 2006-07-09 02:40:07:
Logged In: YES 
user_id=90858

Building under Cygwin is not supported. Please follow
the build instructions and build with Mingw + gcc.