annotate src/libsamplerate-0.1.8/doc/win32.html @ 127:7867fa7e1b6b

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