| 1 |
Notes on Using the Pre-compiled libsndfile DLL. |
| 2 |
=============================================== |
| 3 |
|
| 4 |
In order to use this pre-compiled DLL with Visual Studio, you will need to |
| 5 |
generate a .LIB file from the DLL. |
| 6 |
|
| 7 |
This can be achieved as follows: |
| 8 |
|
| 9 |
1) In a CMD window, change to the directory containing this file and |
| 10 |
run the command: |
| 11 |
|
| 12 |
lib /machine:i386 /def:libsndfile-1.def |
| 13 |
|
| 14 |
You now have two files: |
| 15 |
|
| 16 |
libsndfile-1.dll |
| 17 |
libsndfile-1.lib |
| 18 |
|
| 19 |
to be used with VisualStudio. |
| 20 |
|
| 21 |
If the lib command fails with a command saying "'lib' is not recognized as |
| 22 |
an internal or external command, operable program or batch file", you need |
| 23 |
to find the location of "lib.exe" and add that directory to your PATH |
| 24 |
environment variable. Another alternative is to use the "Visual Studio 2005 |
| 25 |
Command Prompt" Start menu item: |
| 26 |
|
| 27 |
Start -> |
| 28 |
All Programs -> |
| 29 |
Visual Studio 2005 -> |
| 30 |
Visual Studio Tools -> |
| 31 |
Visual Studio 2005 Command Prompt |
| 32 |
|
| 33 |
If for some reason these instructions don't work for you or you are still |
| 34 |
not able to use the libsndfile DLL with you project, please do not contact |
| 35 |
the main author of libsndfile. Instead, join the libsndfile-users mailing |
| 36 |
list : |
| 37 |
|
| 38 |
http://www.mega-nerd.com/libsndfile/lists.html |
| 39 |
|
| 40 |
and ask a question there. |