-
Notifications
You must be signed in to change notification settings - Fork 2
/
INSTALL
45 lines (30 loc) · 1.03 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
Basic Installation
==================
Dependencies
------------
A C99 compliant compiler.
libxcb (and libxcb-image) - https://xcb.freedesktop.org/
libxxbcommon - https://xkbcommon.org/
ImageMagick - https://www.imagemagick.org/
pkg-config
----------
mucrop uses pkg-config to locate its dependencies. If you do not have
pkg-config, or if your version of a library does not ship the ".pc" files, you
have to provide the library's build options as arguments to make:
Example:
make XCB_CFLAGS="-I/usr/local/include" XCB_LDFLAGS="-L/usr/local/lib -lxcb-image -lxcb -lxkbkommon-x11 -lxkbcommon"
Compilers and Options
---------------------
Some systems require unusual options for compilation or linking.
You can provide these options by passing EXTRA_CFLAGS and EXTRA_LDFLAGS as
arguments to make.
Example:
make CC=gcc EXTRA_CFLAGS="-std=c99"
Compilation
-----------
1) Enter the src directory
$ cd src
2) Run `make` specifying required options for your system
$ make
3) Install mucrop in $(PREFIX) (/usr/local by default)
$ make install