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

Make it build on Windows #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Make it build on Windows #3

wants to merge 2 commits into from

Conversation

Meralis40
Copy link

This pull request permit to build libuv-sys on Windows with MSVC toolchains.

@ircnelson
Copy link

@Meralis40 you know how to fix libuv windows linking?: https://gist.github.com/ircnelson/b6bc4c1eefa0291fc7998e370c6402ad

Build works fine, but when I execute, it fails..

Installed:
[x] vs2015
[x] vs2017
[x] vsbuild tools c++
[x] latest version rust

cargo new libuv-sample --bin

Cargo.toml

[dependencies]
libuv-sys = { git = "https://github.com/Meralis40/libuv-rs.git" }

main.rs

extern crate libuv_sys;
fn main() {
    println!("Hello, world!");
}

@Meralis40
Copy link
Author

I've done some modifications to build.rs.
You also need Python 2 in PATH before building libuv-sys (because libuv use gyp).

I've tested it with vs2015, stable & nightly.

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

Successfully merging this pull request may close these issues.

2 participants