[Portaudio] Compilation Instructions for Windows
Reid Bishop
rbish at attglobal.net
Fri Jul 9 04:09:44 EDT 2010
Chris,
>> 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.
-Reid-
W0CNN
CNNSDR Development
_____
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
go in
portaudio\include, and dsound.lib which goes in C:\Program
Files\Microsoft SDKs\Windows\v6.0A\Lib.
2. Extract portaudio_snapshot.tgz and portaudio_snapshot.tar into a new
directory.
3. Get the ASIO sdk from Steinberg and copy the entire ASIOSDK2 folder into
portaudio\src\hostapi\asio\.
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
Click "Ok".
9. Select "Release" (instead of "Debug") in the main toolbar.
10. To suppress debugger messages, go to
Project -> Properties -> Configuration Properties -> C/C++ >>
Preprocessor.
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
\build\build\Win32\iauxsfx\Release.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://music.columbia.edu/pipermail/portaudio/attachments/20100709/bf1deb1e/attachment.html>
More information about the Portaudio
mailing list