Debian Codegraph @

INSTALL

raw
1 Install Instructions for libsamplerate
2 ======================================
3
4 The following instructions explain how to install libsamplerate under
5 Linux and other Unix-like systems, including macOS. (For Windows,
6 see http://libsndfile.github.io/libsamplerate/win32.html).
7
8 Preliminaries
9 -------------
10 1) Included with libsamplerate are example programs which use libsndfile:
11
12 http://libsndfile.github.io/libsndfile/
13
14 for file I/O. If you want to build them, you need to
15 ensure that libsndfile is correctly installed first. If it is, the
16 command "pkg-config --cflags --libs sndfile" should print out
17 something like this:
18
19 -lsndfile
20
21 If pkg-config doesn't exist, you will need need to install it. If
22 pkg-config cannot find libsndfile, you may need to install it. If you
23 install from from a Linux distribution package, make sure you also
24 install the libsndfile-devel package which contains the header files.
25
26 If libsndfile is installed, you may need to set the PKG_CONFIG_PATH
27 environment variable. If libsndfile is installed in /usr/local/lib,
28 you will need to set PKG_CONFIG_PATH using:
29
30 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
31
32 2) The included tests suite for libsamplerate needs libfftw3 which is
33 available here:
34
35 http://www.fftw.org/
36
37 If FFTW3 is not available, libsamplerate should still compile and
38 install without problems, but the test suite will not be as
39 comprehensive as it normally is.
40
41 Building
42 --------
43 Building and verifying libsamplerate is a four or five step process.
44
45 1) The first step is to run configure
46
47 ./configure
48
49 which should print out something like the following:
50
51 checking build system type...
52 ...
53 ...
54 -=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-
55
56 Configuration summary :
57
58 Version : ..................... X.Y.Z
59 Enable debugging : ............ no
60
61 Tools :
62
63 Compiler is GCC : ............. yes
64 GCC major version : ........... 3
65
66 Extra tools required for testing and examples :
67
68 Use FFTW : .................... yes
69 Have libsndfile : ............. yes
70
71 Installation directories :
72
73 Library directory : ........... /usr/local/lib
74 Program directory : ........... /usr/local/bin
75 Pkgconfig directory : ......... /usr/local/lib/pkgconfig
76
77 Compiling some other packages against libsamplerate may require
78 the addition of "/usr/local/lib/pkgconfig" to the
79 PKG_CONFIG_PATH environment variable.
80
81 There are a number of configure options. See the output of
82 configure when run with the --help command line option.
83
84 2) If all goes well with the above then compiling the library can be
85 done with
86
87 make
88
89 3) When that has finished, the test suite can be run using:
90
91 make check
92
93 4) The final step is to install the library. This step needs to be
94 carried out as the root user (or with sudo):
95
96 make install
97
98 This command will by default install the library in the directory
99 /usr/local/lib. It can be installed in other locations by using the
100 --prefix option in step 1).
101
102 5) On Linux, one more step is required, the registering of the library
103 with the system. This is done by running the following command
104 (also as the root user):
105
106 ldconfig -v