rust-portaudio
rust-portaudio copied to clipboard
rust-portaudio failed to build
I added this line to my Cargo.toml
portaudio = "0.6.2"
And then I did a cargo build to download it and I got this error:
C:\Users\Sebastian Malton\Documents\Rust_Projects\sound_ques\src>cargo build Updating registry
https://github.com/rust-lang/crates.io-indexDownloading num v0.1.30 Downloading pkg-config v0.3.6 Downloading portaudio v0.6.2 Compiling pkg-config v0.3.6 Compiling bitflags v0.3.3 Compiling num v0.1.30 Compiling libc v0.2.7 Compiling portaudio v0.6.2 C:\Users\Sebastian Malton.cargo\registry\src\github.com-88ac128001ac3a9a\portaudio-0.6.2\build.rs:48:9: 48:29 error: this function takes 1 parameter but 0 parameters were supplied [E0061] C:\Users\Sebastian Malton.cargo\registry\src\github.com-88ac128001ac3a9a\portaudio-0.6.2\build.rs:48 platform::download(); ^~~~~~~~~~~~~~~~~~~~ C:\Users\Sebastian Malton.cargo\registry\src\github.com-88ac128001ac3a9a\portaudio-0.6.2\build.rs:48:9: 48:29 help: run
rustc --explain E0061to see a detailed explanation error: aborting due to previous error Build failed, waiting for other jobs to finish... Could not compile
portaudio`.
To learn more, run the command again with --verbose.`
Hmmm this should have been fixed by #106 - very strange that you're still getting this error.
Maybe check that you don't have an older version of portaudio locally pointed to in your .cargo/config
? I can't think of what else this might be, but I'll have a think about it in the meantime.
if you mean in my .cargo.crates.toml then no I do not have an older version of portaudio
The error is with line 48, if the function is supposed to take one parameter then why is only one provided? Also I am on windows
As far as I can see, the signature of platform::download()
doesn't take any parameters. See here. This is why I find it strange that you're getting that error, as this has been fixed since #106.
Unfortunately we haven't had any contributions from any Windows folk to get the windows build script going properly, so when you get past the compile error it still won't automatically download, but we'd be more than happy to receive a PR with any fixes!
Btw, I meant that you should check your .cargo/config, not your .cargo/crates.toml
On Fri, 4 Mar 2016 14:31 Sebastian Malton [email protected] wrote:
The error is with line 48, if the function is supposed to take one parameter then why is only one provided?
— Reply to this email directly or view it on GitHub https://github.com/RustAudio/rust-portaudio/issues/125#issuecomment-192081432 .
That didn't exist