Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust-portaudio failed to build #125

Open
Nokel81 opened this issue Feb 15, 2016 · 6 comments
Open

rust-portaudio failed to build #125

Nokel81 opened this issue Feb 15, 2016 · 6 comments

Comments

@Nokel81
Copy link

Nokel81 commented Feb 15, 2016

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-index`
Downloading 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 E0061 to 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.`

@mitchmindtree
Copy link
Member

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.

@Nokel81
Copy link
Author

Nokel81 commented Feb 15, 2016

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

@Nokel81
Copy link
Author

Nokel81 commented Mar 4, 2016

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

@mitchmindtree
Copy link
Member

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
Copy link
Member

Btw, I meant that you should check your .cargo/config, not your
.cargo/crates.toml

On Fri, 4 Mar 2016 14:31 Sebastian Malton notifications@github.com 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
#125 (comment)
.

@Nokel81
Copy link
Author

Nokel81 commented Mar 4, 2016

That didn't exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants