Porting a graphics library linking to xwindows and tcl/tk
Yaakov (Cygwin Ports)
Mon Aug 4 20:43:00 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Michael Rogers wrote:
| I've posted on this earlier but I think I can ask the question more
| I'm trying to port a graphing/plotting package (xgrafix - *not* one I
wrote but one that's freely available - google "xoopic") from a typical
unix tarball distribution to cygwin. I first tried what the Cygwin
User's Guide suggests and ran the default configure script and resulting
Makefiles. I had to redirect the X11 and XPM libraries to their
respective import libraries (libX11.dll.a and libXpm.dll.a) but then the
configure system worked and genreated usable Makefiles. The Makefiles
ran and compiled a static library. The test programs (there is one in C
and another in Fortran) compiled but they either hang or give a
segmentation fault (caught under gdb) when they run.
| I'm guessing this is because it made a static library (libXGC250.a)
and also it might not have linked to the other libraries correctly. It
also uses tcl and tk and I'm confused about those since I found
tcl84.dll and tk84.dll but no corresponding import libraries such
as"libtcl84.dll.a".. However, there *is* a /lib/libtcl84.a and a
/lib/tk84.a. Are those the the import libraries to the DLLs or the
actual archives and the developer did some clever thing using the DLL
files to wrap the ".a" files into a DLL a load time? Anybody know what
the deal is with the tcl/tk libraries in Cygwin and how to link to them
correctly? Just an aside.
The problem *might* be that Cygwin's tcltk package is actually
GDI-based, not X11-based, unlike all other *NIX systems. The confusion
between the X11 libraries and the GDI tk could very well be causing this.
YA reason that our tcl/tk should be *NIX/X11 based; this is one of the
things I would like to work on during the transition to cygwin 1.7.
In the meantime, the Cygwin Ports project provides such a tcl/tk; you
may want to try that and see if that helps. But please note that Ports
has its own mailing list and is not supported here.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin-xfree