rust-portaudio
rust-portaudio copied to clipboard
Link Error: cannot open input file 'portaudio.lib'
This is on Windows 10.
Having this same issue for most of the projects under RustAudio on windows 10. I assume the intention is for portaudio to be built statically and able to be linked to without the user having to download and compile portaudio.lib themselves?
Also fails to compile on OSX if the user hasn't yet installed a portaudio lib.
Still happens. Is anyone maintaining this library?
I built portaudio myself (takes like 5 seconds once you set up cmake, msvc x64, release). Where do I put portaudio.lib to prevent this error from occurring? I tried placing it in %PATH% which didn't work.
Looking at the LINK.EXE command line, turns out libraries go in (project)\target\debug\deps. Putting portaudio.lib there fixes the issue.
So, how to build that?
This resolved the issue for me. https://github.com/RustAudio/rust-portaudio/issues/71#issuecomment-241122540 It is obviously not the best solution but for a private project it should be good enough.