-
Notifications
You must be signed in to change notification settings - Fork 89
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
Get build.rs script for Windows working #71
Comments
@killkrt Thanks for posting the issue! It seems the reason you're running into this error is because no one has yet had a chance to make the build script work with windows (most of us are on macos / linux) - see here for the relevant part that's failing to compile. All the build script does is:
This shouldn't be too tricky to implement at all, if you're up for having a go at it, it'd be well appreciated! (I would have done it by now if I had a windows machine to test on). You can see how the unix platforms do the job in the same module - you basically want to aim to do the same thing but for windows. The instructions for downloading and installing PortAudio can be found here. |
I will try, but consider that I am a beginner in Rust and I don't like developing on Windows, anyway I have to since I'd like to develop a cross-platform DAW. |
This particular error is just because the |
This is still the case, many months later :) the script still has the extra parameter for the As for actually building, it's probably at least safe to use gcc. I haven't looked into the process of actually building it on Windows, though. Will have to check that out. |
After giving it a quick go, the first two issues are this:
|
There are |
Isn't it possible to include PortAudio as submodule (here is the Git repo) and build it directly in the build script using https://github.com/alexcrichton/gcc-rs ? |
I have made some tests on Windows 10 and I found that a possible (maybe a little tricky solution) could be implemented. Here you can find a pre-compiled version of Portaudio for Windows. The archive contains lot of stuff, in particularly there are the LIB and DLL file needed. For example: for the 64 bit version those files can be found in So an idea could be that the build script asks the user if it has to proceed automatically, then it downloads the ZIP file, extracts it in a temp folder and copies the right stuff in the right place. Do you think it's to tricky or it could be a solution? |
Fix this. It's been 16 months. |
I have
I think this is a decent, low-impact workaround for Windows users without Right now, the filename that However, from what I can tell without running it, building Thoughts/comments/objections welcome :)! |
Hi,
I'm trying to compiling rust-portaudio under Windows 7 SP1 64bit with Rust 1.0.0 (9854143cb 2015-04-02), but I'm getting the following error:
I've also tried to compile under a MinGW64 environment, but I got the same error.
The text was updated successfully, but these errors were encountered: