Portaudio for Windows With MinGW or Cygwin
The following document is still being reviewedMinGW/MSYS
From the MinGW projectpage:
MinGW: A collection of freely available and freely distributable Windows specific header files and import libraries, augmenting the GNU Compiler Collection, (GCC), and its associated tools, (GNU binutils). MinGW provides a complete Open Source programming tool set which is suitable for the development of native Windows programs that do not depend on any 3rd-party C runtime DLLs.
MSYS: A Minimal SYStem providing a POSIX compatible Bourne shell environment, with a small collection of UNIX command line tools. Primarily developed as a means to execute the configure scripts and Makefiles used to build Open Source software, but also useful as a general purpose command line interface to replace Windows cmd.exe.
MinGW provides a compiler/linker toolchain while MSYS is required to actually run the PortAudio configure script.
Once MinGW and MSYS are installed (see the MinGW-Wiki) open an MSYS shell and run the famous:
./configure make make install
The above should create a working version though you might want to provide '--prefix=<path-to-install-dir>' to configure.
'./configure --help' gives details as to what can be tinkered with.
--- Mikael Magnusson
Cygwin
Like MinGW, Cygwin provides a Linux-like environment inside Windows. Once you've installed MinGW support from Cygwin's setup package, you can compile and install PortAudio in Cygwin with the following commands:
$ ./configure $ make $ make install
To create native Win32 binaries (without dependencies on Cygwin itself), use the following commands in Cygwin:
$ ./configure --host=i686-pc-mingw32 --build=i686-pc-cygwin CC='gcc -mno-cygwin' host_alias=i686-pc-mingw32 $ make $ make install
This will build native binaries of the Portaudio sound tests, and allow the Portaudio libraries to be linked using the Cygwin environment. This configuration is the preferred option.
--- Hugh McMaster
To update your copy or check out a fresh copy of the source
--- Bob McGwier
