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

rust-portaudio failed to build

Open Nokel81 opened this issue 8 years ago • 6 comments

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 registryhttps://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: runrustc --explain E0061to see a detailed explanation error: aborting due to previous error Build failed, waiting for other jobs to finish... Could not compileportaudio`.

To learn more, run the command again with --verbose.`

Nokel81 avatar Feb 15 '16 04:02 Nokel81

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.

mitchmindtree avatar Feb 15 '16 04:02 mitchmindtree

if you mean in my .cargo.crates.toml then no I do not have an older version of portaudio

Nokel81 avatar Feb 15 '16 04:02 Nokel81

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

Nokel81 avatar Mar 04 '16 03:03 Nokel81

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!

mitchmindtree avatar Mar 04 '16 03:03 mitchmindtree

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 .

mitchmindtree avatar Mar 04 '16 04:03 mitchmindtree

That didn't exist

Nokel81 avatar Mar 04 '16 04:03 Nokel81