0

I am trying to build a gtk-4 GUI application with the Rust in VScode, but I am unable to because I can't build my project. What could be the problem? How do I fix it?

Here's the error fatal error LNK1181: cannot open input file 'gobject-2.0.lib'

My Cargo.toml

[package]
name = "my-gtk-app"
version = "0.1.0"
edition = "2021"

[dependencies]
gtk = { version = "0.4.7", package = "gtk4", features = ["v4_6"]}
2
  • Have you installed the Gtk 4 development package? Commented Apr 22, 2022 at 12:28
  • @Jmb Yes, I do have GTK 4 installed Commented Apr 22, 2022 at 12:45

1 Answer 1

-1

Building the project as an administrator fixed the problem.

Sign up to request clarification or add additional context in comments.

1 Comment

If that really is the case, then it sounds like you have some bad permissions. I'd seriously look into that. It could cause lots of other issues.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.