c++ - How do I compile PortAudio on Windows in Visual Studio Community 2015? -


if attempt build portaudio using .sln file included in latest download, these errors.

cannot include ... asio

what interesting have set preprocessor flag pa_use_asio 0, shown here.

pa_use_asio=0

if delete asio directory (/src/hostapi/asio), no longer errors related asio files instead receive error related ksguid.lib.

targetname not match linker outputfile, cannot open ksguid.lib

googling around says pa_wdmks_no_ksguid_lib preprocessor flag should stop (source) doesn't seem work. if it's ignoring preprocessor flags entirely.

alternatively, if there better library works portaudio, i'd happy hear (i'm trying real time dsp).

first problem, linker problem:

you can change output filename on project -> properties -> linker -> general (1. point on linker, dont use english version of vs) change outputname in first column portaudio_x86 portaudio

second problem:

you need define full pathname of ksguid.lib file. file should here: c:\program files (x86)\microsoft sdks\windows\v7.1a\lib\x64\ksguid.lib. or x86 application in folder above. paste link here: project > properties > configuration-properties > linker > input -> additional dependencies

i got same problem you, after i've done this, builds project succesfully, if want execute in visual studio gives me error - the portaudio.dll not opened, unknown error 0x800700c1. or have reason this?


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -