-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
81 lines (48 loc) · 1.87 KB
/
INSTALL
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
General
=======
PNG++ comes as a set of header files and does not require compilation
to be installed. For the same reason there are no binary packages for
png++.
Prerequisites
=============
- png++ is known to work with libpng-1.2.x (probably, the 1.4.x
flavour will work too)
- png++ compiles with g++-4.1. Other version should work well too,
but I have not tested.
- png++ relies on GNU make for compiling tests and examples; in
particular it uses "remaking makefiles" feature.
- Documentation is produced using doxygen (http://www.doxygen.org/).
Installation
============
Follow these instructions in order to install png++:
- Unpack source package:
$ tar -zxf png++-0.2.x.tar.gz -C ~/src
- Go to your brand new png++ sources directory:
$ cd ~/src/png++-0.2.x
- Issue make to test how it's doing:
$ make
This will compile examples in the example/ directory.
As always, CFLAGS and LDFLAGS could be used to adjust compilation. In
addition, you might want to specify custom libpng-config. Use
LIBPNG_CONFIG variable for that purpose, like this:
$ make LIBPNG_CONFIG=~/bin/libpng-config
If everything goes well, try:
$ make test
(or "make check" which is the same as above). This will run the test
suite. If tests do not produce error messages then probably all is
OK.
- Now you can create documentation (optional). Use
$ make docs
to run doxygen in the sources directory.
- Now it is time to become root and install png++ into your system:
# make install
It's OK to issue "make install" under ordinary user permissions if you
want to install png++ into your home directory. Run the following
command:
$ make install PREFIX=$HOME
This will copy png++ header files to ~/include/png++ and documentation
files to ~/share/doc/png++-0.2.x (if the docs were built).
Without a PREFIX png++ installs to /usr/local
Happy hacking!
--
Alex Shulgin <alex.shulgin@gmail.com>