I'm running Python 2.7.3 [MSC v.1500 32 bit (Intel)] on win32.
I need to build portaudio with ASIO support and bind it to pyaudio to use it under Windows 7. Basically I want to access ASIO driver from python and I figured out this is the way. I'm following the manual from pyaudio webpage http://people.csail.mit.edu/hubert/pyaudio/. The manual is rather outdated, gcc does not support -mno-cygwin flag any more. What I did:
- Download PyAudio-0.2.7 from their webpage
- Download the stable portaudio-v19 http://www.portaudio.com/download.html
- Dropped the "-mno-cygwin" options from the manual and compiled the portaudio (gcc version 4.5.3)
- Edited C:\Python27\Lib\distutils\cygwinccompiler.py and removed "-mno-cygwin" flag from the file.
I ran the suggested pyaudio compilation but I'm getting a gcc error
$ ../Python27/python.exe setup.py build --static-link -cmingw32 running build running build_py creating build creating build\lib.win32-2.7 copying src\pyaudio.py -> build\lib.win32-2.7 running build_ext building '_portaudio' extension creating build\temp.win32-2.7 creating build\temp.win32-2.7\Release creating build\temp.win32-2.7\Release\src C:\MinGW\bin\gcc.exe -mdll -O -Wall -I./portaudio-v19\include/ -Ic:\Python27\inc lude -Ic:\Python27\PC -c src/_portaudiomodule.c -o build\temp.win32-2.7\Release\ src\_portaudiomodule.o -fno-strict-aliasing writing build\temp.win32-2.7\Release\src\_portaudio.def C:\MinGW\bin\gcc.exe -shared -s build\temp.win32-2.7\Release\src\_portaudiomodul e.o build\temp.win32-2.7\Release\src\_portaudio.def -Lc:\Python27\libs -Lc:\Pyth on27\PCbuild -lwinmm -lpython27 -lmsvcr90 -o build\lib.win32-2.7\_portaudio.pyd ./portaudio-v19\lib/.libs/libportaudio.a -lwinmm gcc: error: ./portaudio-v19\lib/.libs/libportaudio.a: No such file or directory error: command 'gcc' failed with exit status 1
I assume the portaudio compilation failed. I think the mentioned libportaudio.a is a linux file. Can you tell what went wrong?