Installation |
PDF manual "fig2vect.pdf" available german version "f2vde.pdf" available too |
Installation from source (recommended for UNIX/Linux)
Prerequisitions
The following libraries are needed/recommended to install fig2vect:
- Recommended: zlib (General Purpose Compression library)
http://www.zlib.net - Recommended: libbzip2 (The bzip2 compression library)
http://sources.redhat.com/bzip2 - Required: dklibs (Dirk Krause's libraries), version 1.11.0 or newer
http://sourceforge.net/projects/dklibs - Recommended: libpng (PNG reference library)
http://www.libpng.org/pub/png/libpng.html - Recommended: jpeglib (Independent JPEG Group's free JPEG software)
ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz - Recommended: NetPBM
ftp://ftp.metalab.unc.edu/pub/Linux/apps/graphics/convert/netpbm-10.11.10.tgz
Some systems have separated packages: one for binaries and shared libraries and an additional one (mostly called "xxx developer support") containing C header files and other material needed to compile programs using the library.
Download
The source code is available at http://sourceforge.net/projects/fig2vect.
Installation procedure
The usual
./configure make make installcan be used to install the software.
Executable setup (recommended for Windows)
Windows users should obtain an executable setup file
dklibs-win32-*-setup.exe from
http://sourceforge.net/projects/dklibs.
There are two versions:
- dklibs-win32-*-user-setup.exe, installs binaries and documentation
- dklibs-win32-*-dev-setup.exe, installs binaries, documentation and all the sources needed to build the binaries (and all the libraries... needed to build the binaries).
Installation from source on Windows
This is possible, of course. Good skills in using your development
environment, C compiler linker and make program are required.
The file
http://dklibs.sourceforge.net/inst_w32.pdf contains additional
information.
Configure whether or not to use UTF-8 encoding support
Fig2vect version 1.1.7 (and above) provides support for UTF-8 encoded
texts in Fig files.
By default fig2vect inspects the LANG environment variable, if it ends
on ``.UTF-8'' UTF-8 support is enabled, otherwise it is disabled.
This default setting is ok for users using XFig but not for jFig.
JFig -- or one of the libraries it uses -- is UTF-8-aware and
converts UTF-8 encoded data
from keyboard events into an internal representation and saves text
in Fig files not UTF-8 encoded. So fig2vect must not UTF-8-decode
the text again.
There are different ways to change the default setting:
- On Linux/Unix systems for all users:
As root, add a section[*/fig2vect] /utf-8 = no
or[*/fig2vect] /utf-8 = yes
to the $sysconfdir/appdefaults1 file. - On Linux/Unix systems for the current user:
Add a section[fig2vect] /utf-8 = no
or[fig2vect] /utf-8 = yes
to the $HOME/.defaults/all file. - On Windows systems for all users:
In the registry key HKLM\Software\DkApp\fig2vect (create the key if necessary) add a string entry, the name is ``all/all:/utf-8'', the value is either ``yes'' or ``no''. - On windows systems for the current user:
In the registry key HKCU\Software\DkApp\fig2vect add a string entry, the name is ``all:/utf-8'', the value is either ``yes'' or ``no''.
| 1 | $sysconfdir is the system configuration directory, typically /etc or /usr/local/etc. |
