On 5/18/2014 8:23 AM, Tim Edwards wrote:
> Hello Satya,
>
>> I integrated the Cygwin compile patches I had from the 3.8 branch. I was
>> able to compile with cairo on cygwin. I like the very nicely
>> anti-aliased figures and text.
>
> I have hooks for Cygwin in xcircuit, but please send me your patches,
> because I may want to include them in the distribution.

The "patches" turned out to be smaller than I had imagined. The relevant
portion was only two lines in configure.in (attached). Cygwin places the
*.dll files in /usr/bin and the *.dll.a files in /usr/lib. I think gcc
can use .dll directly, but the search path usually does not contain
/usr/bin.

>
>> I had to substitute Arial for Helvetica using ~/.fonts.conf, since
>> Helvetica is not available in TTF under Cygwin.
>
> Frankly, I think we all should be using the FreeFont project fonts---
> FreeSans, FreeSerif, FreeMono, etc.  These are released under GPL and
> do not have the same distribution problems as Arial (Microsoft) or
> Helvetica (Adobe).  But I haven't done so in the past because that would
> require that the font be appended to the postscript output file if you
> want to make sure that a printed version looks like the version on the
> window.  You will have the same problem, since if you substitute Arial,
> xcircuit still writes out "Helvetica" in the output, so without any
> font description, any printer will use the Helvetica font, and then
> the text widths, alignments, spacing, etc., will come out differently.
>
> Of course, in the past, all the text widths, alignments, spacing, etc.,
> were all my rough estimates of Helvetica and rounded to the nearest
> integer, so anybody using xcircuit for the last 20 years has been coping
> with it.

Arial is supposed to be identical to Helvetica, that's why I thought the
substitution was fine.

However, I had misdiagnosed the problem. I have Helvetica on my Windows
PC from some Adobe software. But cygwin fontconfig doesn't find it. For
some reason, fontconfig picked up the bitmap version of Helvetica in my
previous trials. Now it picks up "Bitstream Vera Sans", which is a very
different font. I still need to get to the bottom of this.

>
>> Incidentally, the TCL and TK auto detection does not work under Ubuntu.
>> It seems TCL_LIB_DIR and TK_LIB_DIR are not set by the tclConfig.sh and
>> tkConfig.sh, but configure.in seems to assume these variables would be
>> set. The usable variables seem to be TCL_LIB_SPEC and TK_LIB_SPEC .
>
> I have already noted that in the configuration script I should only
> be looking for the tclConfig.sh and tkConfig.sh files, and then I
> should source those.  They will provide the correct definitions for
> TCL_LIB_SPEC and TK_LIB_SPEC.  In the long past (Tcl version 8.4) I
> had problems doing it that way, so instead I defined TCL_LIB_SPEC
> and TK_LIB_SPEC within the tool's Makefile.  But I have looked at
> various systems with Tcl version 8.5, and they all seem to be correct,
> so I will go change the configuration script to source the tclConfig.sh
> and tkConfig.sh files, and that should make the whole configuration
> both simpler and more reliable.
>
> When I will get around to doing this is another question. . .
It's not too hard to specify the library path using --with-tcllibs and
--with-tklibs, so no need to rush here.

Thanks,
Satya


>From b94507165ddfa32059d76e19ae50aece81ef6f05 Mon Sep 17 00:00:00 2001
From: unknown <satya@.(none)>
Date: Sun, 26 Jun 2011 22:03:55 -0700
Subject: [PATCH] Patch for compile on cygwin

---
 configure.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index 3fbd94a..cbd0a2c 100644
--- a/configure.in
+++ b/configure.in
@@ -708,7 +708,7 @@ if test "x$xc_with_tcl" != "x" ; then
        SHDLIB_EXT=".sl"
        ;;
      *cygwin*)
-       SHDLIB_EXT=".dll"
+       SHDLIB_EXT=".dll.a"
        ;;
      *-darwin*)
        SHDLIB_EXT=".dylib"
@@ -935,7 +935,7 @@ if test "x$xc_with_tcl" != "x" ; then
 
     *cygwin*)
       AC_DEFINE(CYGWIN)
-      SHDLIB_EXT=".dll"
+      SHDLIB_EXT=".dll.a"
       LDDL_FLAGS="-shared -Wl,--enable-auto-image-base 
-Wl,-rpath,${loader_run_path}"
       SHLIB_LIB_SPECS="${LIB_SPECS}"
       ;;
-- 
1.8.5.2.msysgit.0

_______________________________________________
Xcircuit-dev mailing list
Xcircuit-dev@opencircuitdesign.com
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to