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

can't find crate for glutin_window #162

Closed
ctaggart opened this issue Jul 22, 2015 · 5 comments
Closed

can't find crate for glutin_window #162

ctaggart opened this issue Jul 22, 2015 · 5 comments

Comments

@ctaggart
Copy link

I got Visual Rust build #80 from AppVeyor, Rust 1.1, and Visual Studio 2015 installed. I created a fork of rocket and added the a .rsproj file and .sln.

https://github.com/ctaggart/rocket

Unfortunately, I'm getting this error and I don't understand why. cargo build works just fine.

image

/cc @aochagavia

@aochagavia
Copy link

I have no idea about this 😉 ... Never used VisualRust

@Boddlnagg
Copy link
Contributor

Currently there is no cargo support in VisualRust yet (see #3). When you try to build, it will just call rustc, which doesn't know abou the dependencies. Until cargo integration is implemented, you can have a look at this page, the section "Using VS External Tools" describes how to manually set up VS to invoke cargo.

@gerwin3
Copy link

gerwin3 commented Jul 30, 2015

I found you can build the library separately and get the .rlib in the target/debug and all .rlib files in target/debug/deps and copy them to "C:\Program Files\Rust stable 1.1\bin\rustlib\i686-pc-windows-gnu\lib". It's ugly but works!

(I also tried adding AdditionalLibPaths="$(ProjectDir)" to the Rust.target file in MSBuild/VisualRust. If it worked, the rlibs could go in the project directory making things a bit cleaner. But it doens't work for some reason...)

@verysimplenick
Copy link

Finally I created VisualRust.Build.Cargo.dll and VisualRust.Build.Cargo.target. It's simple works fine.

@Boddlnagg
Copy link
Contributor

Fixed by #234

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

5 participants