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:

  1. Uncompress the libsndfile archive (libsndfile-0.0.22.tar.gz)
  2. Unstuff libsndfile-0.0.22_CWarrior.sit. This contains your preconfigured CodeWarrior project file and a header file called config.h.
  3. Drag libsndfile.mcp and config.h into libsndfile-0.0.22/src/ .
  4. Open the CodeWarrior project file (libsndfile-0.0.22/src/libsndfile.mcp).
  5. Select the target 'libsndfilePPC' and do a 'make'. This builds 'libsndfilePPC.lib'.
  6. Select the target 'libsndfileWin32 x86' and do a 'make'. This builds 'libsndfileWin32x86.lib'.
  7. That's it! Now you are ready to use libsndfilexxxx.lib and sndfile.h in a project.