File: COMPILING

package info (click to toggle)
gif2png 0.6-1
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 152 kB
  • ctags: 137
  • sloc: ansic: 1,319; makefile: 62; sh: 17
file content (40 lines) | stat: -rw-r--r-- 1,827 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

Compiling gif2png:


The program is written in ANSI-C, so you need a compiler that can handle
ANSI-style prototypes, e.g. gcc. The program uses only functions required by
the ANSI-C specification with two exceptions: to detect if gif2png is run
without input redirection, fileno and isatty are used. These functions should
be available on most systems, however. If you system doesn't have these two
functions, replace the return statement in input_is_terminal with return 0.

In addition to the files included in this directory, you need the PNG sample
library and the zlib compression library. Both are available from
ftp://ftp.uu.net/graphics/png/src, filenames are libpng*.zip and zlib*.zip.

The Makefile assumes that zlib and pnglib are in subdirectories, the names
can be configured at the top of the Makefile. Since the makefile of libpng
assumes that zlib is in ../zlib, you either have to change the libpng makefile
or symlink the zlib directory correctly.
`make all-lib' should compile the libs before gif2png, this only works with a
make that parses ; in commands (or a shell, of course).


gif2png has to store the decompressed image data either in memory or in a
temporary file, currently the following modes are supported:

- (default) stores complete images in continuos blocks in memory, this works
  with systems that support virtual memory. unix, djgpp, etc.
- (-DTMPFILE) store the image data in a temporary file, this should work on
  any system regardless of memory restrictions, but may be significantly
  slower than the full memory version, especially when writing interlaced PNGs.


I would be interested in hearing about necessary changes for compilation on
other systems, though I may not be able to spend much time updating gif2png,
due to my studies.


Alexander Lehmann <alex@hal.rhein-main.de>