rust-portaudio icon indicating copy to clipboard operation
rust-portaudio copied to clipboard

Link Error: cannot open input file 'portaudio.lib'

Open reposefulGrass opened this issue 8 years ago • 7 comments

link error

reposefulGrass avatar Jun 10 '17 04:06 reposefulGrass

This is on Windows 10.

reposefulGrass avatar Jun 10 '17 04:06 reposefulGrass

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?

charleslockner avatar Dec 22 '17 22:12 charleslockner

Also fails to compile on OSX if the user hasn't yet installed a portaudio lib.

charleslockner avatar Dec 22 '17 23:12 charleslockner

Still happens. Is anyone maintaining this library?

hrydgard avatar Apr 12 '19 11:04 hrydgard

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.

nyanpasu64 avatar Sep 08 '19 03:09 nyanpasu64

So, how to build that?

TheRadioGuy avatar Apr 26 '20 08:04 TheRadioGuy

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.

Julian-Alberts avatar Jul 03 '20 15:07 Julian-Alberts