annotate src/libsamplerate-0.1.9/INSTALL @ 169:223a55898ab9 tip default

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