title: Cannot build gtk4-rs based cargo, build fails with linking error "LINK : fatal error LNK1181: cannot open input file 'gobject-2.0.lib'"
body: <p>I am trying to build a hello world project to see if gtk4-rs is working correctly, which always fails at creating the binaries. The rest of the build seems to fine (tried to run cargo clean and cargo check a couple of times, those do not produce any errors). My Cargo.toml just uses the version specified in the crate:</p>
  <pre><code>[dependencies]
  gtk4 = &quot;0.4.8&quot;
  </code></pre>
  <p>My error is exactly the same as the one in <a href="https://stackoverflow.com/questions/71968209/error-lnk1181-cannot-open-input-file-gobject-2-0-lib">this question</a>, but running the cargo build in an admin powershell also fails with the same error.</p>
  <p>I am on Win 11 and I've followed the installation instructions linked to by GTK themselves, <a href="https://github.com/wingtk/gvsbuild" rel="nofollow noreferrer">https://github.com/wingtk/gvsbuild</a>.</p>
  <p>The linking error seems to indicate that gobject-2.0.lib is missing:</p>
  <pre><code>LINK : fatal error LNK1181: cannot open input file 'gobject-2.0.lib'
  </code></pre>
  <p>(Full error message (with redacted user directory) <a href="https://pastebin.com/DKnW6t3g" rel="nofollow noreferrer">on Pastebin</a>)</p>
  <p>That file is found at c:\gtk-build\gtk\x64\release\lib, which is the default location for an installation produced by gvsbuild, as far as I can tell (I haven't messed with the files at all).
  Both c:\gtk-build\gtk\x64\release\lib and c:\gtk-build\gtk\x64\release\bin are part of the path, restarting the machine did not seem to fix anything in this regard either.</p>
  <p>I have not found anything close to helpful on the internet, so any pointers to what could be wrong here would be great.</p>