Building libsndfile-0.0.22 with CodeWarrior
The following instructions apply to users who wish to build libsndfile using Metrowerks CodeWarrior on MacOS and optionally cross compile it for Windows. This procedure builds libsndfile as a library for static linking into other CodeWarrior projects and has been tested with libsndfile-0.0.22 and CodeWarrior IDE 4.04.
Before beginning you must download the following:
- Uncompress the libsndfile archive (libsndfile-0.0.22.tar.gz)
- Unstuff libsndfile-0.0.22_CWarrior.sit. This contains your preconfigured CodeWarrior project file and a header file called config.h.
- Drag libsndfile.mcp and config.h into libsndfile-0.0.22/src/ .
- Open the CodeWarrior project file (libsndfile-0.0.22/src/libsndfile.mcp).
- Select the target 'libsndfilePPC' and do a 'make'. This builds 'libsndfilePPC.lib'.
- Select the target 'libsndfileWin32 x86' and do a 'make'. This builds 'libsndfileWin32x86.lib'.
- That's it! Now you are ready to use libsndfilexxxx.lib and sndfile.h in a project.