-
I followed the instructions at https://gtk-rs.org/gtk4-rs/stable/latest/book/installation_windows.html and set up a Rust toolchain with msvc. I also installed MSYS2 since All looks well here as far as I can tell:
Compilation succeeds, but lld-link fails:
How do I explain to lld-link where the Gtk libraries are? |
Beta Was this translation helpful? Give feedback.
Answered by
pieterdd
Jan 28, 2024
Replies: 1 comment
-
Figured it out. I modified [target.x86_64-pc-windows-msvc]
linker = "lld-link.exe"
rustflags = ["-C", "link-args=/LIBPATH:C:\\gtk-build\\gtk\\x64\\release\\lib\\"] I'll open a pull request to amend the documentation. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pieterdd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Figured it out. I modified
.cargo/config
as follows to make sure the linker can find the libraries:I'll open a pull request to amend the documentation.