xfig/transfig ![(Under construction)](../LOGOS/construction.transparent.gif)
xfig
: An interactive drawing tool which runs under X.
transfig
: Figures translator (for xfig).
Compilation
Note that png
V1.5.x onwards has changed
in an incompatible manner (hidden png_struct
access).
For xfig/transfig one is stuck at V1.2.x,
unless the xfig/transfig code is adapted.
xfig V3.2.4/3.2.5
Proceed as described in the README
file.
Prerequisites / modifications:
Then run
xmkmf
make clean
make
# or
make -f Makefile.noimake Makefile # if xmkmf not avail, needs imake from ftp.x.org.
make install
make install.all
transfig (V3.2.4/V3.2.5)
Proceed as described in the README
file.
Prerequisites / modifications:
-
Nonstandard (non-root) installation directory,
in all
Imakefile
s
add / change (may use nedit `find ./ -name Imakefile` &
) at the appropriate locations
MKDIRHIER = /bin/sh /opt/imake/bin/mkdirhier # or wherever mkdirhier resides
DESTDIR=/tmp/xfig-3.2.5/ # transfig may go into the same location as xfig
BINDIR=bin
-
In
transfig/Imakefile
add / change at the appropriate locations
MANDIR=man/mann
USELATEX2E = -DLATEX2E
-
In
fig2dev/Imakefile
add / change at the appropriate locations
MANDIR=man/mann
XFIGLIBDIR = lib/X11/xfig
XFIGDOCDIR = doc
FIG2DEV_LIBDIR = lib/fig2dev
and add the locations for PNG, ZLIB and XPM, as for xfig
.
In version 3.2.4 fix the line to include the PNG reference:
DEVDEFINES = $(DUSEPNG) $(DUSEXPM) $(PNGINC) $(XPMINC) $(DDNFSS) $(DDA4) \
-
In
fig2dev/dev/Imakefile
add / change at the appropriate locations
FIG2DEV_LIBDIR = lib/fig2dev
Then run
xmkmf
make Makefiles
make clean
make
make install
make install.man # ignore messages
On HP-UX 10.20 with native cc some minor adaptions of source text
might be necessary.
Installation/Configuration
Assume an installation directory DST=/nfs/local/1100/
.
Then define the environment variable
export FIG2DEV_LIBDIR=$DST/lib/fig2dev
and, for support of composite keys, insert in the appropriate
$DST/lib/X11/app-defaults/Fig
file:
Fig*keyFile: $DST/lib/X11/xfig/CompKeyDB
Last update: 5-Jul-2013,
M.Kraemer
Impressum Data privacy protection