Chris@41:
Chris@41:
Compiling on Win32.
Chris@41:
Chris@41: For Win32 there is a Microsoft Visual C++ compatible makefile in the Win32\
Chris@41: directory and a MSDOS batch file in the top level directory of the distribution.
Chris@41:
Chris@41:
Chris@41: To build the examples programs you will need to download the precompiled
Chris@41: win32 or win64
Chris@41: libsndfile
Chris@41: binary and install them.
Chris@41:
Chris@41:
Chris@41:
Chris@41: Making the libsamplerate DLL on Win32 involves the following:
Chris@41:
Chris@41:
Chris@41: - Using WinZip in the GUI, open the libsamplerate-0.X.Y.tar.gz file and
Chris@41: extract the files into a directory. The following example assumes
Chris@41: C:\.
Chris@41:
- In the directory containing the extracted files, find the file
Chris@41: Win32\Makefile.msvc and open it in a text editor (ie Notepad or
Chris@41: similar).
Chris@41:
- Find the line which starts with MSVCDir and modify the directory
Chris@41: path to point to the location of MSVC++ on your machine. This allows the
Chris@41: makefile to inform the compiler of the location of the standard header
Chris@41: files.
Chris@41:
- Copy libsndfile-1.dll, libsndfile-1.lib and
Chris@41: libsndfile-1.def from the directory libsndfile was installed in
Chris@41: to the the directory containing libsamplerate.
Chris@41:
- Copy the header file include/sndfile.h from where libsndfile was
Chris@41: installed to the Win32 directory under the libsamplerate
Chris@41: directory.
Chris@41:
- Open a Command Shell and cd into the libsamplerate-0.X.Y directory.
Chris@41:
- Make sure that the program nmake (which is part of the MSCV++
Chris@41: package) is in a directory which is part of your PATH variable.
Chris@41:
- Type in the command
Chris@41:
C:\libsamplerate-0.X.Y> make
Chris@41:
Chris@41: and press <return>. You should now see a a large number of compile
Chris@41: commands as libsamplerate.dll is built.
Chris@41: - To check that the built DLL has been compiled correctly type in and run the
Chris@41: command
Chris@41:
C:\libsamplerate-0.X.Y> make check
Chris@41:
Chris@41: which will compile a set of test programs and run them.
Chris@41: If any of the programs fail the error message will be help in debugging
Chris@41: the problem.
Chris@41: (Note that some of the tests require libsndfile or libfftw/librfftw and
Chris@41: are not able to run on Win32).
Chris@41:
Chris@41:
Chris@41: At the end of the above procedure, you will find the DLL, libsamplerate.dll, a
Chris@41: LIB file libsamplerate.lib in the current directory. These two files, along
Chris@41: with the header file samplerate.h (in the src\ directory) are all that
Chris@41: you need to copy to your project in order to use libsamplerate.
Chris@41:
Chris@41:
Chris@41:
Compile Problems
Chris@41:
Chris@41: If you run into compile problems using the above procedure, you should
Chris@41: join the main mailing list
Chris@41: and post your problem and/or questions there.
Chris@41: Please include any error messages generated during step 6 above.
Chris@41:
Chris@41:
Chris@41:
Chris@41: If you are using some other method to compile the libsamplerate DLL you are
Chris@41: probably on your own.
Chris@41:
Chris@41:
Chris@41:
Chris@41:
Chris@41:
Chris@41:
Chris@41:
Chris@41:
Chris@41: