annotate src/libsamplerate-0.1.8/doc/win32.html @ 83:ae30d91d2ffe

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