Skip to Content.
Sympa Menu

texmacs-users - TeXmacs under Cygwin SUCCESS! (revision 1)

Subject: mailing-list for TeXmacs Users

List archive

TeXmacs under Cygwin SUCCESS! (revision 1)


Chronological Thread 
  • From: "Bill Page" <address@hidden>
  • To: <address@hidden>
  • Cc: <address@hidden>, <address@hidden>
  • Subject: TeXmacs under Cygwin SUCCESS! (revision 1)
  • Date: Thu, 14 Nov 2002 18:50:54 -0500
  • Importance: Normal

[Oops, I forgot one important step. You must
edit one of the TeXmacs source files before
doing the make. See step four below. ]

Here is a quick summary.

The most recent version of TeXmacs
(1.0.0.21) can be installed on the most
recent version of Cygwin under Windows

http://www.redhat.com/download/cygwin.html

Assuming that you have already installed Cygwin
you should see something like the following
(as of this writing) when you query the version
of your system in the Cygwin Bash Shell

$ uname -a
CYGWIN_NT-5.1 ASUS 1.3.14(0.62/3/2) 2002-10-24 10:48 i686 unknown

Your installation of Cygwin must include the XFree86
x-windows package (select XFree86 in Cygwin setup).
I have the following version

$ startx -v
XFree86 4.2.0(165)

It should be possible for most people to follow
these instructions step by step, but you must
make a few changes to the standard installation.

First it seems that version 3.2 of the Gnu gcc
compiler installed with Cygwin

$ gcc -v
gcc version 3.2 20020818 (prerelease)

does not automatically find the XFree86 include
library. One way to tell gcc about this library
is via the CPATH environment variable

$ export CPATH=/usr/X11R6/include

You should set this prior to running make (see
below).

Secondly, the version of guile that is installed
with Cygwin

$ guile -v
Guile 1.6.0

is not compatible with TeXmacs. In order to
install TeXmacs you must first install to the
older guile version 1.4.1. You can download
version 1.4.1 at

http://ftp.gnu.org/pub/gnu/guile/guile-1.4.1.tar.gz

Save it in the directory called /usr/src and
follow the instructions at

http://www.texmacs.org/Download/Cygwin.html

which are also found at

http://ddaa.net/texmacs/doc/cygwin.html#ltdl

to build guile using the non-shared library option

$ cd /usr/src
$ tar -zxf guile-1.4.1.tar.gz

$ cd guile-1.4.1
$ ./configure --disable-shared
$ make
$ make install

It is not possible to use shared libraries
(the default) with Cygwin.

When this is complete you should obtain

$ guile -v
Guile 1.4.1

Now download TeXmacs version 1.0.0.21 from

ftp://ftp.texmacs.org/pub/TeXmacs/targz/TeXmacs-1.0.0.21-src.tar.gz

Save it in the directory /usr/src and extract
it

$ cd /usr/src
$ tar -zxf TeXmacs-1.0.0.21-src.tar.gz

The third change, as described in the instructions
at the web sites above, is to modify the link
option in the TeXmacs make file. This is found at

$ cd TexMacs-1.0.0.21-src/src
$ vi makefile

(or use a better editor)

It must include the option -lltdl as shown below.

link_options:=-L $(tmsrc)/lib -lm $(LDBPATH)
$(LDBXWINDOW) $(LDBGUILE) -lltdl $(LDBDL)

The ltdl library is required in the last step
of the TeXmac make to link the dynamic load
routines.

The fourth change involes the log2 function in
the module shrink.cc located in

$ cd Resource/Bitmap_fonts
$ vi shrink.cc

Since log2 conflicts with a name known to gcc
and isn't really needed anyway, I just changed
'log2' to 'log2x' on line 17.

Finally, you must build TeXmacs itself with the
static library option.

$ cd ..
$ ./configure
$ make STATIC_TEXMACS
$ make install

Apparently it is no longer necessary to modify
/etc/profile to include

export GUILE_LOAD_PATH=/usr/local/share/guile/1.4.1

(My installation seems to work without this step.)

Start an x-server window with the command

$ startx&

Then in a xterm window start TeXmacs via

$ texmacs&

Have fun! Let me know if you have any problems.
Or if anything above is wrong or unclear.

---------

I was having fun until I found out that printing
from x-windows applications under cygwin was a
little awkward...

What works for me now is printing to a tempfile
and then printing that file with the command

$ print tempfile.ps

There's got to be a better way. I am still
working on this. Can I configure TeXmacs to
do this more directly? Anyone have some ideas?

Cheers,
Bill Page.



  • TeXmacs under Cygwin SUCCESS! (revision 1), Bill Page, 11/15/2002

Archive powered by MHonArc 2.6.19.

Top of Page