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

Build fail on windows #145

Open
Nagispace opened this issue Aug 1, 2022 · 3 comments
Open

Build fail on windows #145

Nagispace opened this issue Aug 1, 2022 · 3 comments
Labels
awaiting info Awaiting further info from raiser help wanted

Comments

@Nagispace
Copy link

I have a project that uses this crate but it fails because the linker cannot find 'cryoto.lib'
I have installed correctly every dependencies.
any idea ?

@kw217 kw217 added help wanted awaiting info Awaiting further info from raiser labels Aug 3, 2022
@kw217
Copy link
Collaborator

kw217 commented Aug 3, 2022

Hi @Nagispace - I haven't tried building on Windows so I can't give specific assistance. Please could you copy and paste the entire message, in case someone else is able to help?

@Molkars
Copy link

Molkars commented Sep 25, 2022

I'm also trying to build on windows, running cargo build compiles the project but linking fails.
Here's the entire error message: https://hastebin.com/osajusoxuf.pl

@kw217
Copy link
Collaborator

kw217 commented Sep 27, 2022

Thanks - the error appears to be:

error: linking with `link.exe` failed: exit code: 1181
  |
  = note: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.32.31326\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "%HOME%\\AppData\\Local\\Temp\\rustc2mknMq\\symbols.o" "%HOME%\\dev\\projects\\project\\project_api\\target\\debug\\deps\\project.10mpx8fccwah0mmv.rcgu.o" [... thousands of chars omitted...]
  = note: LINK : fatal error LNK1181: cannot open input file 'crypto.lib'

I suspect this relates to the crate dependency cassandra-sys-rs which has the following in its build.rs:

    println!("cargo:rustc-flags=-l dylib=cassandra");
    println!("cargo:rustc-flags=-l dylib=crypto");
    println!("cargo:rustc-flags=-l dylib=ssl");

I think crypto is part of libssl. Perhaps another Windows developer has experience of how to get this library installed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting info Awaiting further info from raiser help wanted
Projects
None yet
Development

No branches or pull requests

3 participants