Whilst building a new GTK4 rust application (completely empty, minus main method) I receive a very generic error code: 1.
'error: failed to run custom build command for graphene-sys v0.14.0’
as well as
‘“pkg-config” “–libs” “–cflags” “graphene-gobject-1.0” “graphene-gobject-1.0 >= 1.10”` did not exit successfully: exit code: 1’
I am unable to rectify this issue and am looking for some assistance if possible! I am running windows 10 64.
How did you install GTK4, and do you have a) pkg-config in your PATH (e.g. from pkg-config-lite download | SourceForge.net ) and b) the directory with graphene-1.0.pc, gtk4.pc in PKG_CONFIG_PATH?
I appreciate your response. Turns out I had a typo while installing graphene, and had never installed it! Resolved this issue; however I now do get failed to run custom build command for gsk4-sys v0.2.0 instead.
EDIT: I am currently reinstalling GTK4 and this may resolve the issue. I’ll keep you prompted. Thank you!
Ok, so via msys2. That should give you everything you need in theory, you’d have to check with the msys2 project why that is not the case for you.
Did installing the VC redistributable bundle fix it though? My guess is also that you’re currently mixing compilers: msys2 uses gcc/mingw, your Rust toolchain uses the MS toolchain. That should not necessarily be a problem but you probably have less confusion by installing the gcc/mingw Rust toolchain too. rustup can do that for you.