You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
3.5KB

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