-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
error: linking with link.exe
failed: exit code: 1181
#1477
Comments
You can fix this by adding the path to the gdx build lib directory that contains If you used gvsbuild (which I assume since you're on windows), this is mentioned in the install steps: https://github.com/wingtk/gvsbuild#add-gtk-to-your-environmental-variables But there's a caveat that the command they list on their README doesn't actually alter environment variables globally (it only does so in the current shell). I realized this after reading through he guide again. Since this isn't an issue with gtk-rs I suggest this issue be closed. |
I just hit this today after carefully following instructions with |
@nazar-pc mind sending a PR? |
Well, interestingly this was only needed in GitHub Actions CI, it worked fine without |
Would you mind sharing a link to your actions file? it could be useful for either future chapters or people wanting to test their app on windows |
Sure, here is where |
When i included the Rust GTK binding library in my project, and attempted to build it,I got this error.
error: linking with
link.exefailed: exit code: 1181
with the note that
note: LINK : fatal error LNK1181: cannot open input file 'gobject-2.0.lib'
For the record,I'm executing this code on a Windows machine after installing gtk4 via MSYS2
The text was updated successfully, but these errors were encountered: