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.

157 lines
4.8KB

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE>
  5. Secret Rabbit Code (aka libsamplerate)
  6. </TITLE>
  7. <META NAME="Author" CONTENT="Erik de Castro Lopo (erikd AT mega-nerd DOT com)">
  8. <META NAME="Version" CONTENT="libsamplerate-0.1.8">
  9. <META NAME="Description" CONTENT="The Secret Rabbit Code Home Page">
  10. <META NAME="Keywords" CONTENT="libsamplerate sound resample audio dsp Linux">
  11. <LINK REL=StyleSheet HREF="SRC.css" TYPE="text/css" MEDIA="all">
  12. </HEAD>
  13. <BODY TEXT="#FFFFFF" BGCOLOR="#000000" LINK="#FB1465" VLINK="#FB1465" ALINK="#FB1465">
  14. <!-- pepper -->
  15. <CENTER>
  16. <IMG SRC="SRC.png" HEIGHT=100 WIDTH=760 ALT="SRC.png">
  17. </CENTER>
  18. <!-- pepper -->
  19. <BR>
  20. <!-- pepper -->
  21. <TABLE ALIGN="center" WIDTH="98%">
  22. <TR>
  23. <TD VALIGN="top">
  24. <BR>
  25. <DIV CLASS="nav">
  26. <BR>
  27. <A HREF="index.html">Home</A><BR>
  28. <A HREF="license.html">License</A><BR>
  29. <A HREF="history.html">History</A><BR>
  30. <A HREF="download.html">Download</A><BR>
  31. <A HREF="quality.html">Quality</A><BR>
  32. <A HREF="api.html">API</A><BR>
  33. <A HREF="bugs.html">Bug Reporting</A><BR>
  34. <A HREF="win32.html">On Win32</A><BR>
  35. <A HREF="faq.html">FAQ</A><BR>
  36. <A HREF="lists.html">Mailing Lists</A><BR>
  37. <A HREF="ChangeLog">ChangeLog</A><BR>
  38. <BR>
  39. <DIV CLASS="block">
  40. Author :<BR>Erik de Castro Lopo
  41. <!-- pepper -->
  42. <BR><BR>
  43. <!-- pepper -->
  44. </DIV>
  45. <IMG SRC=
  46. "/cgi-bin/Count.cgi?ft=6|frgb=55;55;55|tr=0|md=6|dd=B|st=1|sh=1|df=src_win32.dat"
  47. HEIGHT=30 WIDTH=100 ALT="counter.gif">
  48. </DIV>
  49. </TD>
  50. <!-- pepper -->
  51. <!-- ######################################################################## -->
  52. <!-- pepper -->
  53. <TD VALIGN="top">
  54. <DIV CLASS="block">
  55. <H1><B>Compiling on Win32.</B></H1>
  56. <P>
  57. For Win32 there is a Microsoft Visual C++ compatible makefile in the <B>Win32\</B>
  58. directory and a MSDOS batch file in the top level directory of the distribution.
  59. </P>
  60. <P>
  61. To build the examples programs you will need to download the precompiled
  62. win32 or win64
  63. <A HREF="http://www.mega-nerd.com/libsndfile/#Download">libsndfile</A>
  64. binary and install them.
  65. </P>
  66. <P>
  67. Making the libsamplerate DLL on Win32 involves the following:
  68. </P>
  69. <OL>
  70. <LI> Using WinZip in the GUI, open the libsamplerate-0.X.Y.tar.gz file and
  71. extract the files into a directory. The following example assumes
  72. <B>C:\</B>.
  73. <LI> In the directory containing the extracted files, find the file
  74. <B>Win32\Makefile.msvc</B> and open it in a text editor (ie Notepad or
  75. similar).
  76. <LI> Find the line which starts with <B>MSVCDir</B> and modify the directory
  77. path to point to the location of MSVC++ on your machine. This allows the
  78. makefile to inform the compiler of the location of the standard header
  79. files.
  80. <LI> Copy <B>libsndfile-1.dll</B>, <B>libsndfile-1.lib</B> and
  81. <B>libsndfile-1.def</B> from the directory libsndfile was installed in
  82. to the the directory containing libsamplerate.
  83. <LI> Copy the header file <B>include/sndfile.h</B> from where libsndfile was
  84. installed to the <B>Win32</B> directory under the libsamplerate
  85. directory.
  86. <LI> Open a Command Shell and cd into the libsamplerate-0.X.Y directory.
  87. <LI> Make sure that the program <B>nmake</B> (which is part of the MSCV++
  88. package) is in a directory which is part of your <B>PATH</B> variable.
  89. <LI> Type in the command
  90. <PRE> C:\libsamplerate-0.X.Y> make
  91. </PRE>
  92. and press &lt;return&gt;. You should now see a a large number of compile
  93. commands as libsamplerate.dll is built.
  94. <LI> To check that the built DLL has been compiled correctly type in and run the
  95. command
  96. <PRE> C:\libsamplerate-0.X.Y> make check
  97. </PRE>
  98. which will compile a set of test programs and run them.
  99. If any of the programs fail the error message will be help in debugging
  100. the problem.
  101. (Note that some of the tests require libsndfile or libfftw/librfftw and
  102. are not able to run on Win32).
  103. </OL>
  104. <P>
  105. At the end of the above procedure, you will find the DLL, <B>libsamplerate.dll</B>, a
  106. LIB file <B>libsamplerate.lib</B> in the current directory. These two files, along
  107. with the header file <B>samplerate.h</B> (in the <B>src\</B> directory) are all that
  108. you need to copy to your project in order to use libsamplerate.
  109. </P>
  110. <H2><BR>Compile Problems</H2>
  111. <P>
  112. If you run into compile problems using the above procedure, you should
  113. <A HREF="lists.html"> join the main mailing list </A>
  114. and post your problem and/or questions there.
  115. Please include any error messages generated during step 6 above.
  116. </P>
  117. <P>
  118. If you are using some other method to compile the libsamplerate DLL you are
  119. probably on your own.
  120. </P>
  121. <BR>
  122. <!--
  123. From here:
  124. http://www.gimp.org/~tml/gimp/win32/downloads.html
  125. Download these files:
  126. gettext-runtime-0.13.1.zip
  127. glib-2.4.5-20040903.zip
  128. libiconv-1.9.1.bin.woe32.zip
  129. pkgconfig-0.15.zip
  130. and install them.
  131. -->
  132. <!-- <A HREF="mailto:aldel@mega-nerd.com">For the spam bots</A> -->
  133. </DIV>
  134. </TD></TR>
  135. </TABLE>
  136. </BODY>
  137. </HTML>