This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problems compiling tcl8.1 using mingw tools with cygwin -mno-cygwin


I am having problems compiling tcl/tk 8.1 with cygwin/mingw
using -mno-cygwin.  The packages compile with a couple of warnings about
initialization from incompatible pointers.  However they od not function
when installed. for example when running tclsh81 you get

$ tclsh81
application-specific initialization failed: Can't find a usable init.tcl in
the
following directories:
    C:/cygwin/lib/tcl8.1 C:/cygwin/lib/tcl8.1 C:/lib/tcl8.1
C:/lib/tcl8.1/librar
y C:/library C:/../tcl8.1/library ../tcl8.1/library



This probably means that Tcl wasn't installed properly.

%

This looks like a path problem except the paths being used are windows
paths.  Is this a problem?  Did I make a Makefile error?

after adding the directory with the init.tcl file i get

$ ls -l /usr/share/tcl8.1/init.tcl
-rw-r--r--   1 mike     None        16062 Apr  6 23:42
/usr/share/tcl8.1/init.tc
l

mike@MYSTERY ~/tcldev
$ export TCL_LIBRARY

mike@MYSTERY ~/tcldev
$ tclsh81
application-specific initialization failed: Can't find a usable init.tcl in
the
following directories:
    /usr/share/tcl8.1 /usr/share/tcl8.1 C:/cygwin/lib/tcl8.1
C:/cygwin/lib/tcl8.
1 C:/lib/tcl8.1 C:/lib/tcl8.1/library C:/library C:/../tcl8.1/library
../tcl8.1/
library



This probably means that Tcl wasn't installed properly.

%
mike@MYSTERY ~/tcldev
$

when trying to compile programs against the libraries I get
$ gcc hello.c -o
hello -I/usr/local/tcl8.1/include -I/usr/local/tk81/include -I/usr/include/m
ingw -L/usr/lib/mingw L/usr/local/tcl8.1/lib
-L/usr/local/tk81/lib -lm -ltcl81 -ltk81 -mno-cygwin
In file included from /usr/local/tk81/include/tk.h:73,
                 from hello.c:11995:
/usr/local/tk81/include/X11/Xlib.h:1220: tkIntXlibDecls.h: No such file or
direc
tory
In file included from hello.c:11995:
/usr/local/tk81/include/tk.h:1202: tkDecls.h: No such file or directory

mike@MYSTERY ~/tcldev


Any ideas?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]