Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 92d0237

Browse files
committed
revise README
1 parent d3b959b commit 92d0237

File tree

3 files changed

+23
-54
lines changed

3 files changed

+23
-54
lines changed

Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ EXTRA_DIST = \
1010
doc \
1111
proj \
1212
m4 \
13+
screenshot.png \
1314
nip2.desktop.in \
1415
nip2.xml \
1516
nip2.appdata.xml

README.md

+22-54
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,29 @@ library](https://libvips.github.io/libvips). It's a little like a spreadsheet:
88
you create a set of formula connecting your objects together, and on a change
99
nip2 recalculates.
1010

11+
[![Screenshot](screenshot.png)](screenshot.png)
12+
13+
## Installing
14+
1115
You can probably install nip2 via your package manager. For
1216
Windows and OS X, you can download a binary from the [nip2 releases
13-
area](https://github.com/libvips/nip2/releases). Only read on if you want to
14-
compile yourself from source.
17+
area](https://github.com/libvips/nip2/releases). If you must build from
18+
source, see the section below.
1519

16-
# Documentation
20+
## Documentation
1721

1822
nip2 comes with a 50-page manual --- press F1 or Help / Contents in the
1923
program to view it.
2024

21-
# Building nip2 from source
25+
## Building nip2 from source
2226

23-
In the nip2 directory you should just be able to do:
27+
In the nip2 directory you should just be able to do the usual:
2428

25-
$ ./configure
26-
$ make
27-
$ sudo make install
29+
```
30+
./configure
31+
make
32+
sudo make install
33+
```
2834

2935
By default this will install files to `/usr/local`.
3036

@@ -33,60 +39,22 @@ nip2 needs in order to be able to build.
3339

3440
If you downloaded from GIT you'll need:
3541

36-
$ ./autogen.sh
42+
```
43+
./autogen.sh
44+
```
3745

3846
first to build the configure system.
3947

40-
# Dependencies
41-
4248
nip2 needs vips, gtk2 and libxml2 at runtime and flex/bison at compile time.
4349

44-
If you have fftw3, gsl, goffice, libgvc you get extra optional, but useful,
45-
features.
46-
47-
# Tips
48-
49-
production build with
50-
51-
./configure --prefix=/home/john/vips
52-
53-
debug build with
54-
55-
CFLAGS="-g -Wall" ./configure --prefix=/home/john/vips
56-
57-
(--enable-debug turns on and off automatically with development / production
58-
minor version numbers)
59-
60-
leak check
61-
62-
export G_DEBUG=gc-friendly
63-
export G_SLICE=always-malloc
64-
valgrind --suppressions=/home/john/nip2.supp \
65-
--leak-check=yes \
66-
nip2 ... > nip2-vg.log 2>&1
67-
68-
memory access check
69-
70-
valgrind --suppressions=/home/john/nip2.supp \
71-
--leak-check=no --db-attach=yes \
72-
nip2 ... > nip2-vg.log 2>&1
73-
74-
or put "--suppressions=/home/john/nip2.supp" into ~/.valgrindrc
75-
76-
profiling
77-
78-
valgrind --tool=callgrind \
79-
--suppressions=/home/john/nip2.supp \
80-
nip2 ... > nip2-vg.log 2>&1
81-
82-
Disclaimer: No guarantees of performance accompany this software, nor is any
83-
responsibility assumed on the part of the authors. Please read the licence
84-
agreement.
50+
If you have fftw3, gsl, goffice, libgvc you get extra features.
8551

86-
# snapcraft
52+
### snapcraft
8753

8854
Rebuild snap with:
8955

90-
snapcraft cleanbuild
56+
```
57+
snapcraft cleanbuild
58+
```
9159

9260
Though it's done automatically on a push.

screenshot.png

228 KB
Loading

0 commit comments

Comments
 (0)