[Portaudio] Compilation Instructions for Windows
rbish at attglobal.net
Fri Jul 9 04:09:44 EDT 2010
>> 8. Set a few options:
>> C/C++ -> Optimization -> Omit frame pointers = Yes
>> C/C++ -> Code Generation -> Struct member alignment = 4
>> C/C++ -> Code Generation -> Runtime library = /MT
>> C/C++ -> Code Generation -> Floating point model = fast
>> Click "Ok".
I did not have any of these options enabled in my build. Just for grins, I
tried setting all of the above. It still threw the same errors with regard
to the three Interlocked*** in ASIOSDK/combase.h
I don't see why we would need to enable Struct member alignment to 4- that
would indicate buggy code. I never had trouble with it.
Also, it's best to add the DirectX SDK includes to the include path. I
don't like to copy includes from one SDK to another.
From: portaudio-bounces at music.columbia.edu
[mailto:portaudio-bounces at music.columbia.edu] On Behalf Of c319chris at aol.com
Sent: Friday, July 09, 2010 1:40 AM
To: portaudio at music.columbia.edu
Subject: [Portaudio] Compilation Instructions for Windows
Here are PortAudio compilation instructions for Windows thanks to Trond:
COMPILING PORTAUDIO USING VISUAL C++ 2008 EXPRESS EDITION
1. Download and install the DirectX SDK to get dsound.h and dsconf.h which
portaudio\include, and dsound.lib which goes in C:\Program
2. Extract portaudio_snapshot.tgz and portaudio_snapshot.tar into a new
3. Get the ASIO sdk from Steinberg and copy the entire ASIOSDK2 folder into
Rename it from ASIOSDK2 to ASIOSDK.
4. Open the file build\msvc\portaudio.sln using VC++ Express
5. Click "Finish" if the wizard appears.
6. Open Project -> Portaudio properties, select "Configuration Properties"
in the tree view.
7. Select "all configurations" in the combo box above.
8. Set a few options:
C/C++ -> Optimization -> Omit frame pointers = Yes
C/C++ -> Code Generation -> Struct member alignment = 4
C/C++ -> Code Generation -> Runtime library = /MT
C/C++ -> Code Generation -> Floating point model = fast
9. Select "Release" (instead of "Debug") in the main toolbar.
10. To suppress debugger messages, go to
Project -> Properties -> Configuration Properties -> C/C++ >>
In the field 'Preprocessor Definitions' find PA_ENABLE_DEBUG_OUTPUT and
remove it. Recompile and the console will have no more debug messages.
11. Build -> Build solution
12. Output file can be found in \build\msvc\Win32\Release or
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Portaudio