Gtk-rs on Windows: build error

I use gtk-rs in rust, I already have it installed. When compiling my project, it gives me the error:

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

I use stable-x86_64-pc-windows-msvc and my IDE is VSCode, I also have MSY2S.

you need the msvc flavor of library, not the msys one. basically, you have two choice:

  1. switch to the gnu abi toolchain, i.e. stable-x86_64-pc-windows-gnu, which should link against msys libraries
  2. install gtk library for msvc. recommended way is to use vcpkg, but you can also build the C++ package from source if you know the msvc build system.

change to stable-x86_64-pc-windows-gnu and I use gtk 3 to use glade and when using mysql I get this error: error: linking with x86_64-w64-mingw32-gcc failed: exit code: 1

note: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld. exe: cannot find -lzlib1: No such file or directory
collect2.exe: error: ld returned 1 exit status

there must be a mis-configured package. it should use -lz instead of -lzlib1. I don't know it's caused by a rust crate or by a msys2 package. but I'd guess it's more likely from a rust crate which didn't correctly handle msvc vs mingw toolchain. I don't know. you have to find out yourself.

Seriously? Just import mysql

what do you mean? the mysql crate with default features compiles without problem for me, both on msvc and gnu toolchains. what's your dependencies section in Cargo.toml look like?

is this:
[package]
name = "bbmx"
version = "0.1.0"
edition = "2021"

[dependencies]
gtk="0.18.1"
gdk="0.18.0"
glib="0.18.0"
mysql="24.0.0"

In fact I get that error, this is my code using mysql

use mysql::*;
use mysql::prelude::Queryable;

//Start Session Function
pub fn log_in(username: &str, password: &str) -> Result<(), mysql::Error> {
let opts = OptsBuilder::new()
.user(Some("root"))
.pass(Some(""))
.db_name(Some("bbmx"));

let pool = Pool::new(opts)?;
let mut conn = pool.get_conn()?;
OK(())

}

and it throws me: note: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/ bin/ld.exe: cannot find -lzlib1: No such file or directory
collect2.exe: error: ld returned 1 exit status

the same code compiles fine on my machine. did you install rust toolchain via rustup? did you run cargo clean before cargo build? also , what's the full error message if you run cargo build -vvv?

1 Like

If I did charge clean and the same thing, this appears when I charge build -vvv

PS E:\Rust_projects\bbmx> cargo build -vvv
Fresh equivalent v1.0.1
Fresh hashbrown v0.14.0
Fresh winnow v0.5.15
Fresh pkg-config v0.3.27
Fresh autocfg v1.1.0
Fresh heck v0.4.1
Fresh indexmap v2.0.0
Fresh unicode-ident v1.0.12
Fresh version-compare v0.1.1
Fresh version_check v0.9.4
Fresh toml_datetime v0.6.3
Fresh serde_spanned v0.6.3
Fresh proc-macro2 v1.0.67
Fresh cfg-if v1.0.0
Fresh toml_edit v0.19.15
Fresh target-lexicon v0.12.11
Fresh quote v1.0.33
Fresh toml v0.7.8
Fresh cfg-expr v0.15.5
Fresh syn v2.0.33
Fresh winapi-x86_64-pc-windows-gnu v0.4.0
Fresh libc v0.2.148
Fresh system-deps v6.1.1
Fresh syn v1.0.109
Fresh proc-macro-error-attr v1.0.4
Fresh proc-macro-error v1.0.4
Fresh proc-macro-crate v1.3.1
Fresh bitflags v2.4.0
Fresh thiserror-impl v1.0.48
Fresh glib-sys v0.18.1
Fresh once_cell v1.18.0
Fresh futures-core v0.3.28
Fresh winapi v0.3.9
Fresh thiserror v1.0.48
Fresh gobject-sys v0.18.0
Fresh slab v0.4.9
Fresh futures-macro v0.3.28
Fresh smallvec v1.11.0
Fresh gio-sys v0.18.1
Fresh futures-task v0.3.28
Fresh pin-utils v0.1.0
Fresh static_assertions v1.1.0
Fresh pin-project-lite v0.2.13
Fresh futures-util v0.3.28
Fresh glob v0.3.1
Fresh cc v1.0.83
Fresh futures-channel v0.3.28
Fresh typenum v1.17.0
Fresh lexical-util v0.8.5
Fresh glib-macros v0.18.2
Fresh futures-executor v0.3.28
Fresh generic-array v0.14.7
Fresh glib v0.18.2
Fresh minimal-lexical v0.2.1
Fresh memchr v2.6.3
Fresh nom v7.1.3
Fresh crossbeam-utils v0.8.16
Fresh windows_x86_64_gnu v0.48.5
Fresh memoffset v0.9.0
Fresh libloading v0.7.4
Fresh getrandom v0.2.10
Fresh ident_case v1.0.1
Fresh fnv v1.0.7
Fresh vcpkg v0.2.15
Fresh strsim v0.10.0
Fresh frunk_proc_macro_helpers v0.1.2
Fresh darling_core v0.20.3
Fresh windows-targets v0.48.5
Fresh cairo-sys-rs v0.18.2
Fresh gdk-pixbuf-sys v0.18.0
Fresh clang-sys v1.6.1
Fresh rand_core v0.6.4
Fresh pango-sys v0.18.0
Fresh semver v1.0.18
Fresh cexpr v0.6.0
Fresh num-traits v0.2.16
Fresh crypto-common v0.1.6
Fresh block-buffer v0.10.4
Fresh lexical-parse-integer v0.8.6
Fresh lexical-write-integer v0.8.5
Fresh serde_derive v1.0.188
Fresh futures-io v0.3.28
Fresh rustc-hash v1.1.0
Fresh ppv-lite86 v0.2.17
Fresh tinyvec_macros v0.1.1
Fresh lazycell v1.3.0
Fresh peeking_take_while v0.1.2
Fresh lazy_static v1.4.0
Fresh shlex v1.2.0
Fresh tinyvec v1.6.0
Fresh gio v0.18.2
Fresh bindgen v0.68.1
Fresh serde v1.0.188
Fresh rand_chacha v0.3.1
Fresh digest v0.10.7
Fresh lexical-write-float v0.8.5
Fresh lexical-parse-float v0.8.5
Fresh rustc_version v0.4.0
Fresh darling_macro v0.20.3
Fresh windows-sys v0.48.0
Fresh num-integer v0.1.45
Fresh cmake v0.1.50
Fresh subprocess v0.2.9
Fresh winapi-util v0.1.5
Fresh aho-corasick v1.0.5
Fresh tap v1.0.1
Fresh scopeguard v1.2.0
Fresh regex-syntax v0.7.5
Fresh cpufeatures v0.2.9
Fresh termcolor v1.2.0
Fresh regex-automata v0.3.8
Fresh wyz v0.5.1
Fresh crossbeam-epoch v0.9.15
Fresh darling v0.20.3
Fresh libz-sys v1.1.12
Fresh lexical-core v0.8.5
Fresh crc32fast v1.3.2
Fresh radium v0.7.0
Fresh num-bigint v0.4.4
Fresh rand v0.8.5
Fresh ahash v0.8.3
Fresh unicode-normalization v0.1.22
Fresh gdk-sys v0.18.0
Fresh frunk_derives v0.4.2
Fresh frunk_proc_macros v0.1.2
Fresh atk-sys v0.18.0
Fresh time-core v0.1.1
Fresh funty v2.0.0
Fresh arrayvec v0.7.4
Fresh itoa v1.0.9
Fresh frunk_core v0.4.2
Fresh percent-encoding v2.3.0
Fresh deranged v0.3.8
Fresh unicode-bidi v0.3.13
Fresh base64 v0.21.4
Fresh ryu v1.0.15
Fresh rust_decimal v1.32.0
Fresh frunk v0.4.2
Fresh idna v0.4.0
Fresh serde_json v1.0.107
Fresh time v0.3.28
Fresh form_urlencoded v1.2.0
Fresh bitvec v1.0.1
Fresh flate2 v1.0.27
Fresh bigdecimal v0.3.1
Fresh mysql-common-derive v0.30.2
Fresh hashbrown v0.13.2
Fresh crossbeam-queue v0.3.8
Fresh crossbeam-deque v0.8.3
Fresh lexical v6.1.1
Fresh regex v1.9.5
Fresh sha2 v0.10.7
Fresh sha1 v0.10.5
Fresh schannel v0.1.22
Fresh pango v0.18.0
Fresh gdk-pixbuf v0.18.0
Fresh cairo-rs v0.18.2
Fresh crossbeam-channel v0.5.8
Fresh derive_utils v0.13.2
Fresh saturating v0.1.0
Fresh byteorder v1.4.3
Fresh bytes v1.5.0
Fresh uuid v1.4.1
Fresh native-tls v0.2.11
Fresh gdk v0.18.0
Fresh mysql_common v0.30.6
Fresh crossbeam v0.8.2
Fresh io-enum v1.1.1
Fresh field-offset v0.3.6
Fresh lru v0.10.1
Fresh url v2.4.1
Fresh pem v2.0.1
Fresh gtk-sys v0.18.0
Fresh atk v0.18.0
Fresh twox-hash v1.6.3
Fresh socket2 v0.5.4
Fresh gtk3-macros v0.18.0
Fresh named_pipe v0.4.1
Fresh bufstream v0.1.4
Fresh mysql v24.0.0
Fresh gtk v0.18.1
Compiling bbmx v0.1.1 (E:\Rust_projects\bbmx)
Running set CARGO=\\?\C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\bin\cargo.exe&& set CARGO_BIN_NAME=bbmx&& set CARGO_CRATE_NAME=bbmx&& set CARGO_MANIFEST_DIR=E:\Rust_projects\bbmx&& set CARGO_PKG_AUTHORS=""&& set CARGO_PKG_DESCRIPTION=""&& set CARGO_PKG_HOMEPAGE=""&& set CARGO_PKG_LICENSE=""&& set CARGO_PKG_LICENSE_FILE=""&& set CARGO_PKG_NAME=bbmx&& set CARGO_PKG_README=""&& set CARGO_PKG_REPOSITORY=""&& set CARGO_PKG_RUST_VERSION=""&& set CARGO_PKG_VERSION=0.1.1&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=1&& set CARGO_PKG_VERSION_PATCH=1&& set CARGO_PKG_VERSION_PRE=""&& set CARGO_PRIMARY_PACKAGE=1&& set PATH="E:\Rust_projects\bbmx\target\debug\deps;C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\bin;C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\bin;C:\Python311\Scripts\;C:\Python311\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Microsoft VS Code\bin;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\gtk-build\gtk\x64\release\lib\pkgconfig;C:\gtk-build\gtk\x64\release\bin;C:\Users\Joel\.cargo\bin;C:\Users\Joel\AppData\Local\Microsoft\WindowsApps;c:\users\joel\.local\bin;c:\users\joel\appdata\roaming\python\python311\scripts;C:\msys64\mingw64\include;C:\msys64\mingw64\bin;C:\msys64\mingw64\lib"&& rustc --crate-name bbmx --edition=2021 src\main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=119 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=89668de02d121e3f -C extra-filename=-89668de02d121e3f --out-dir E:\Rust_projects\bbmx\target\debug\deps -C incremental=E:\Rust_projects\bbmx\target\debug\incremental -L dependency=E:\Rust_projects\bbmx\target\debug\deps --extern gdk=E:\Rust_projects\bbmx\target\debug\deps\libgdk-5542519a25dfaae4.rlib --extern glib=E:\Rust_projects\bbmx\target\debug\deps\libglib-79d55f39738872f5.rlib --extern gtk=E:\Rust_projects\bbmx\target\debug\deps\libgtk-d5e6d5f165837554.rlib --extern mysql=E:\Rust_projects\bbmx\target\debug\deps\libmysql-7c1a4e07cca45468.rlib -L native=C:\Users\Joel\.cargo\registry\src\index.crates.io-6f17d22bba15001f\winapi-x86_64-pc-windows-gnu-0.4.0\lib -L native=C:\Users\Joel\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_gnu-0.48.5\lib
warning: unused import: mysql::prelude::Queryable
--> src\class\conex_db.rs:3:5
|
3 | use mysql::prelude::Queryable;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_imports)] on by default

warning: unused variable: conn
--> src\class\conex_db.rs:13:13
|
13 | let mut conn = pool.get_conn()?;
| ^^^^ help: if this is intentional, prefix it with an underscore: _conn
|
= note: #[warn(unused_variables)] on by default

warning: unused variable: username
--> src\class\conex_db.rs:6:15
|
6 | pub fn log_in(username: &str, passw: &str) -> Result<(), mysql::Error> {
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: _username

warning: unused variable: passw
--> src\class\conex_db.rs:6:31
|
6 | pub fn log_in(username: &str, passw: &str) -> Result<(), mysql::Error> {
| ^^^^^ help: if this is intentional, prefix it with an underscore: _passw

warning: variable does not need to be mutable
--> src\class\conex_db.rs:13:9
|
13 | let mut conn = pool.get_conn()?;
| ----^^^^
| |
| help: remove this mut
|
= note: #[warn(unused_mut)] on by default

warning: unused std::result::Result that must be used
--> src\class\load_ui.rs:23:5
|
23 | log_in("username", "jj");
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this Result may be an Err variant, which should be handled
= note: #[warn(unused_must_use)] on by default
help: use let _ = ... to ignore the resulting value
|
23 | let _ = log_in("username", "jj");
| +++++++

error: linking with x86_64-w64-mingw32-gcc failed: exit code: 1
|
= note: "x86_64-w64-mingw32-gcc" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--high-entropy-va" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\rsbegin.o" "C:\Users\Joel\AppData\Local\Temp\rustcMq3V4t\symbols.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.110kqaap0nrlm274.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.12ey85hafnu1rrbh.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.1dksj1v6b5b5uu8e.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.1en0qt3j1s7j38g9.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.1g36y9tb55f09kve.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.1kbdkqxfyrintn7a.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.1nn6ktzl0y28c04g.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.1sa7ruxtezn6fqy2.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.1y9hwtrppc9winsp.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.2bioo311t7422qrh.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.2d3ayfanltv7deys.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.2fxrddq6jqxlrbf.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.2otvlcbm8vx2kiqk.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.2qu4rc5b7yny4k7q.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.34mmwef0506c791y.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.35rbruv1ziffo56i.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.3aoee6caevti7jhy.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.3e64muminikl1x2h.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.3i2m7nz1gsfc4hm6.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.3ixhgnu17nkcc0jz.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.3jn1r95jq4zzilea.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.3qrw7pakn3il9pn4.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.3rrr717joje96dp2.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.3v4arpu1ft81wmmq.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.424oakydd1z84hwv.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.43m7st7zzi6cxdvx.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.4hlwjhkv15ypmk03.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.4k6ocndardhxcmir.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.4l8ae5vm4mwc5xon.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.50uof2oqatgeq5lo.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.54uajz9eq1rfiwum.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.58bet1n5hzftkngr.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.5c7wta6il3l4gzar.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.hk7l0eyky3gsttl.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.hkxs277kd4z03e7.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.2kkb9xhlfk2ca05p.rcgu.o" "-L" "E:\Rust_projects\bbmx\target\debug\deps" "-L" "C:\Users\Joel\.cargo\registry\src\index.crates.io-6f17d22bba15001f\winapi-x86_64-pc-windows-gnu-0.4.0\lib" "-L" "C:\Users\Joel\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_gnu-0.48.5\lib" "-L" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib" "-Wl,-Bstatic" "E:\Rust_projects\bbmx\target\debug\deps\libmysql-7c1a4e07cca45468.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libpem-ad1a987d1928a1cf.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libsocket2-ea84db28c5f8298d.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libnamed_pipe-fbe3af1fcffae846.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libbufstream-220d46d102497dd7.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libtwox_hash-e64575df7de821d8.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblru-9f6e8a481385479a.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libhashbrown-229865b1f92db4e7.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libahash-5457e4224eb607ca.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libnative_tls-4a86aafc0fa39372.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libschannel-a97348311f9136ae.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libwindows_sys-d6f2c3eb384ea435.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libwindows_targets-9fc0af06ae4fb947.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liburl-4bbe3ad65196a26f.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libidna-8f1d0b47291168d9.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libunicode_normalization-aad9f7eff7c06a28.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libtinyvec-8be991637672acc1.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libtinyvec_macros-792699c4d86fe4d7.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libunicode_bidi-89369eee4ede7f9f.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libform_urlencoded-b7c47c28aaee3464.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libpercent_encoding-3eae916c0f41bbf3.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcrossbeam-ce808e2d40427d6d.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcrossbeam_channel-c20f99340aefca03.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcrossbeam_deque-23a6a1ce5086ef19.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcrossbeam_queue-7b76e591b3f55973.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcrossbeam_epoch-8517ea72a5eb63c6.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libscopeguard-47a7741c364f8de3.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcrossbeam_utils-094540dec7e03840.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libmysql_common-54d593e68365840f.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblazy_static-3a6c46a78b7a70b7.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libbitvec-5f7ece921afebb98.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libwyz-3c44be63a755f34e.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libtap-0cd3e8f2bd66d2d3.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libradium-c354c5e573d743ac.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfunty-1a945ed4db39d2a7.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libsha2-498b5414753c7d13.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libflate2-cca8c344c5566473.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblibz_sys-8216e039505f06e7.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcrc32fast-38322f957130157f.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libsaturating-8be6ccdeae2a06d5.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblexical-7e1d8413da8cbd0b.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblexical_core-cdf9bff73d87c13e.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblexical_write_float-d73326b74735a1fa.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblexical_write_integer-f6986a6fbbd55028.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblexical_parse_float-82fb769ae3aa9bc1.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblexical_parse_integer-4341b9f4bc2d2e45.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblexical_util-1ded4352aeec0b8d.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libstatic_assertions-446f803d419a7ddc.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libbytes-c08772d88ffde76d.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libsha1-e01f708dcf7c218a.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcpufeatures-fe8ecb1ead060f92.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libdigest-684aca44df3e872d.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libblock_buffer-1de7ac7fba759efb.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcrypto_common-94a9c2254c1f8031.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgeneric_array-9f4d6ddc4ca1c680.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libtypenum-a7f1c2f6f37b9655.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libbyteorder-5235df8467f02766.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libregex-69abfa9c6ac2bc85.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libregex_automata-906c1f74d5966566.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libaho_corasick-a2d144d86830cc87.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libregex_syntax-5b5ffe14f88904da.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libbase64-81f8fce9cdd571ad.rlib" "E:\Rust_projects\bbmx\target\debug\deps\librand-d91d7a73332dd6f3.rlib" "E:\Rust_projects\bbmx\target\debug\deps\librand_chacha-39a590d496a14b2c.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libppv_lite86-23f0e09a8a3c1a1f.rlib" "E:\Rust_projects\bbmx\target\debug\deps\librand_core-911def566e7c4143.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgetrandom-30adc0bc55e70492.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcfg_if-bc6c437a040fac75.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libuuid-9ba030a3abf084dc.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libtime-4c45a5f40d512edc.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libtime_core-e1936e79d24e143b.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libderanged-d19230d7710c4d24.rlib" "E:\Rust_projects\bbmx\target\debug\deps\librust_decimal-8f895fe0ca9b5fba.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libarrayvec-1005d0254c57d49a.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfrunk-bb563d895d30f0a0.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfrunk_core-389d96cf2b0d9812.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libbigdecimal-609352434ac2b54c.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libnum_bigint-69b66f560e9cde76.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libnum_integer-6f45550becd3e7e5.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libnum_traits-42a12134ab0ddc40.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libserde_json-e03c623534efd68e.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libryu-5b86d4cd21b007bc.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libitoa-27c2da07cc49bd28.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libserde-c40f39f9f7f6769d.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgtk-d5e6d5f165837554.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfield_offset-dcbf152b7ae9f8a3.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libmemoffset-3b02158b33fcd1d9.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgdk-5542519a25dfaae4.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libpango-aadda866ad828109.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgdk_pixbuf-99bc192319fd5dfd.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgio-662f6a1c5cad3425.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfutures_io-cf23001f0af7888e.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcairo-83a23c7f3f9e6f1b.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libatk-558b76c895047834.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libglib-79d55f39738872f5.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfutures_executor-6220cb7712973ea2.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libmemchr-a71b2f6cfbd2cdb3.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libsmallvec-71c075fb442a51aa.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libthiserror-3b16759c276ebddd.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfutures_util-4695c10b643aff97.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libslab-3d940029ab0d6742.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libpin_project_lite-db6b74e997ec3c5d.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libpin_utils-c4a158264885b27c.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfutures_task-7261f8eceba72c9d.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfutures_channel-d0bc873acaa33cd3.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfutures_core-3396ccb4df381806.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libonce_cell-2af9d475ce322695.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libbitflags-c00bf4b81fff33a7.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgtk_sys-6648214939010e3b.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libatk_sys-80621c9b12491130.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgdk_sys-26da8b328bd02503.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libpango_sys-cfb32878fe81e95c.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgdk_pixbuf_sys-7e76ab53a7377ded.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgio_sys-dd486c498b567143.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libwinapi-7eb4e205c2a4b455.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcairo_sys-9b19123ee25e17bc.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgobject_sys-3c6c2b956e2bf1eb.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libglib_sys-66868e5a9bc125ed.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblibc-940043dc5f4edbe4.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libstd-274cab44dc4a644c.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libpanic_unwind-0f177752b9ca8e95.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libobject-06bb167660b3da76.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libmemchr-8ab6cc09499ecf5b.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libaddr2line-126153ebe55b6775.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libgimli-3d08640ec0a90b99.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\librustc_demangle-e211ed0efcaf0dab.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libstd_detect-f17f8b04b9a04cbd.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libhashbrown-dc505c5f7a08eb2f.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\librustc_std_workspace_alloc-29139547fec356ea.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libminiz_oxide-cab94e250dc1e17d.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libadler-e6226bb3d40532fc.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libunwind-bc036f0a729eca3e.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libcfg_if-b7a734954c1f5dcb.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\liblibc-a254eeb9e90dc361.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\liballoc-b6fb9ac972c98305.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\librustc_std_workspace_core-6db27a6ad3c9479a.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libcore-6fcad14090edadfc.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libcompiler_builtins-625af2eb18940f92.rlib" "-Wl,-Bdynamic" "-lwindows.0.48.5" "-lzlib1" "-lbcrypt" "-ladvapi32" "-lgobject-2.0" "-lpangowin32-1.0" "-lharfbuzz" "-lpangocairo-1.0" "-lpango-1.0" "-lcairo" "-lcairo-gobject" "-lgdk_pixbuf-2.0" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lgtk-3" "-lgdk-3" "-lgdi32" "-limm32" "-lshell32" "-lole32" "-lwinmm" "-ldwmapi" "-lsetupapi" "-lcfgmgr32" "-lhid" "-lwinspool" "-lcomctl32" "-lcomdlg32" "-latk-1.0" "-lgio-2.0" "-latk-1.0" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lharfbuzz" "-lpango-1.0" "-lcairo" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lgdk-3" "-lgdi32" "-limm32" "-lshell32" "-lole32" "-lwinmm" "-ldwmapi" "-lsetupapi" "-lcfgmgr32" "-lhid" "-lwinspool" "-lcomctl32" "-lcomdlg32" "-lpangowin32-1.0" "-lpangocairo-1.0" "-lgdk_pixbuf-2.0" "-lcairo-gobject" "-lglib-2.0" "-lintl" "-lpango-1.0" "-lgobject-2.0" "-lharfbuzz" "-lglib-2.0" "-lintl" "-lgdk_pixbuf-2.0" "-lgobject-2.0" "-lgio-2.0" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lwinapi_advapi32" "-lwinapi_cfgmgr32" "-lwinapi_kernel32" "-lwinapi_synchronization" "-lwinapi_user32" "-lwinapi_ws2_32" "-lcairo-gobject" "-lcairo" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lkernel32" "-ladvapi32" "-lbcrypt" "-lkernel32" "-lntdll" "-luserenv" "-lws2_32" "-lkernel32" "-lws2_32" "-lkernel32" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib" "-o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.exe" "-Wl,--gc-sections" "-no-pie" "-nodefaultlibs" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\rsend.o"
= note: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lzlib1: No such file or directory
collect2.exe: error: ld returned 1 exit status

warning: bbmx (bin "bbmx") generated 6 warnings
error: could not compile bbmx (bin "bbmx") due to previous error; 6 warnings emitted

Caused by:
process didn't exit successfully: set CARGO=\\?\C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\bin\cargo.exe&& set CARGO_BIN_NAME=bbmx&& set CARGO_CRATE_NAME=bbmx&& set CARGO_MANIFEST_DIR=E:\Rust_projects\bbmx&& set CARGO_PKG_AUTHORS=""&& set CARGO_PKG_DESCRIPTION=""&& set CARGO_PKG_HOMEPAGE=""&& set CARGO_PKG_LICENSE=""&& set CARGO_PKG_LICENSE_FILE=""&& set CARGO_PKG_NAME=bbmx&& set CARGO_PKG_README=""&& set CARGO_PKG_REPOSITORY=""&& set CARGO_PKG_RUST_VERSION=""&& set CARGO_PKG_VERSION=0.1.1&& set CARGO_PKG_VERSION_MAJOR=0&& set CARGO_PKG_VERSION_MINOR=1&& set CARGO_PKG_VERSION_PATCH=1&& set CARGO_PKG_VERSION_PRE=""&& set CARGO_PRIMARY_PACKAGE=1&& set PATH="E:\Rust_projects\bbmx\target\debug\deps;C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\bin;C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\bin;C:\Python311\Scripts\;C:\Python311\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Microsoft VS Code\bin;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\gtk-build\gtk\x64\release\lib\pkgconfig;C:\gtk-build\gtk\x64\release\bin;C:\Users\Joel\.cargo\bin;C:\Users\Joel\AppData\Local\Microsoft\WindowsApps;c:\users\joel\.local\bin;c:\users\joel\appdata\roaming\python\python311\scripts;C:\msys64\mingw64\include;C:\msys64\mingw64\bin;C:\msys64\mingw64\lib"&& rustc --crate-name bbmx --edition=2021 src\main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=119 --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=89668de02d121e3f -C extra-filename=-89668de02d121e3f --out-dir E:\Rust_projects\bbmx\target\debug\deps -C incremental=E:\Rust_projects\bbmx\target\debug\incremental -L dependency=E:\Rust_projects\bbmx\target\debug\deps --extern gdk=E:\Rust_projects\bbmx\target\debug\deps\libgdk-5542519a25dfaae4.rlib --extern glib=E:\Rust_projects\bbmx\target\debug\deps\libglib-79d55f39738872f5.rlib --extern gtk=E:\Rust_projects\bbmx\target\debug\deps\libgtk-d5e6d5f165837554.rlib --extern mysql=E:\Rust_projects\bbmx\target\debug\deps\libmysql-7c1a4e07cca45468.rlib -L native=C:\Users\Joel\.cargo\registry\src\index.crates.io-6f17d22bba15001f\winapi-x86_64-pc-windows-gnu-0.4.0\lib -L native=C:\Users\Joel\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_gnu-0.48.5\lib (exit code: 1)

what are these? did you build gtk from source?

if you use the stable-x86_64-pc-windows-gnu toolchain with msys2, you should use the gtk libraries from msys2. try pacman -S mingw-w64-x86_64-gtk3

if you use the -msvc toolchain, you need to build gtk from source, using gvsbuild. the gvsbuild build tool is specific for vs, not for gcc.

you cannot mix libraries using different ABIs. same is true for C++ code, you cannot link libraries built with msvc into programs built with g++. (the C ABI is generally compatible though).

hint: unless you are experienced C++ developer, it's not recommended to build libraries from source yourself. if you use -gnu toolchain and msys2, you should use the msys2 package manager. if you use -msvc toolchain and Visual Studio Build Tools, you should use vcpkg.

if you

1 Like

Try what you suggested and do the same thing:

error: linking with x86_64-w64-mingw32-gcc failed: exit code: 1
|
= note: "x86_64-w64-mingw32-gcc" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-m64" "-Wl,--high-entropy-va" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\rsbegin.o" "C:\Users\Joel\AppData\Local\Temp\rustcwMVE0G\symbols.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.110kqaap0nrlm274.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.12ey85hafnu1rrbh.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.1dksj1v6b5b5uu8e.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.1en0qt3j1s7j38g9.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.1g36y9tb55f09kve.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.1kbdkqxfyrintn7a.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.1nn6ktzl0y28c04g.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.1sa7ruxtezn6fqy2.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.1y9hwtrppc9winsp.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.2bioo311t7422qrh.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.2d3ayfanltv7deys.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.2fxrddq6jqxlrbf.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.2otvlcbm8vx2kiqk.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.2qu4rc5b7yny4k7q.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.34mmwef0506c791y.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.35rbruv1ziffo56i.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.3aoee6caevti7jhy.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.3e64muminikl1x2h.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.3i2m7nz1gsfc4hm6.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.3ixhgnu17nkcc0jz.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.3jn1r95jq4zzilea.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.3qrw7pakn3il9pn4.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.3rrr717joje96dp2.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.3v4arpu1ft81wmmq.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.424oakydd1z84hwv.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.43m7st7zzi6cxdvx.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.4hlwjhkv15ypmk03.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.4k6ocndardhxcmir.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.4l8ae5vm4mwc5xon.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.50uof2oqatgeq5lo.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.54uajz9eq1rfiwum.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.58bet1n5hzftkngr.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.5c7wta6il3l4gzar.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.hk7l0eyky3gsttl.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.hkxs277kd4z03e7.rcgu.o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.2kkb9xhlfk2ca05p.rcgu.o" "-L" "E:\Rust_projects\bbmx\target\debug\deps" "-L" "C:\Users\Joel\.cargo\registry\src\index.crates.io-6f17d22bba15001f\winapi-x86_64-pc-windows-gnu-0.4.0\lib" "-L" "C:\Users\Joel\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows_x86_64_gnu-0.48.5\lib" "-L" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib" "-Wl,-Bstatic" "E:\Rust_projects\bbmx\target\debug\deps\libmysql-7c1a4e07cca45468.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libpem-ad1a987d1928a1cf.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libsocket2-ea84db28c5f8298d.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libnamed_pipe-fbe3af1fcffae846.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libbufstream-220d46d102497dd7.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libtwox_hash-e64575df7de821d8.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblru-9f6e8a481385479a.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libhashbrown-229865b1f92db4e7.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libahash-5457e4224eb607ca.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libnative_tls-4a86aafc0fa39372.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libschannel-a97348311f9136ae.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libwindows_sys-d6f2c3eb384ea435.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libwindows_targets-9fc0af06ae4fb947.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liburl-4bbe3ad65196a26f.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libidna-8f1d0b47291168d9.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libunicode_normalization-aad9f7eff7c06a28.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libtinyvec-8be991637672acc1.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libtinyvec_macros-792699c4d86fe4d7.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libunicode_bidi-89369eee4ede7f9f.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libform_urlencoded-b7c47c28aaee3464.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libpercent_encoding-3eae916c0f41bbf3.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcrossbeam-ce808e2d40427d6d.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcrossbeam_channel-c20f99340aefca03.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcrossbeam_deque-23a6a1ce5086ef19.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcrossbeam_queue-7b76e591b3f55973.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcrossbeam_epoch-8517ea72a5eb63c6.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libscopeguard-47a7741c364f8de3.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcrossbeam_utils-094540dec7e03840.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libmysql_common-54d593e68365840f.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblazy_static-3a6c46a78b7a70b7.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libbitvec-5f7ece921afebb98.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libwyz-3c44be63a755f34e.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libtap-0cd3e8f2bd66d2d3.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libradium-c354c5e573d743ac.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfunty-1a945ed4db39d2a7.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libsha2-498b5414753c7d13.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libflate2-cca8c344c5566473.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblibz_sys-8216e039505f06e7.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcrc32fast-38322f957130157f.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libsaturating-8be6ccdeae2a06d5.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblexical-7e1d8413da8cbd0b.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblexical_core-cdf9bff73d87c13e.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblexical_write_float-d73326b74735a1fa.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblexical_write_integer-f6986a6fbbd55028.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblexical_parse_float-82fb769ae3aa9bc1.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblexical_parse_integer-4341b9f4bc2d2e45.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblexical_util-1ded4352aeec0b8d.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libstatic_assertions-446f803d419a7ddc.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libbytes-c08772d88ffde76d.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libsha1-e01f708dcf7c218a.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcpufeatures-fe8ecb1ead060f92.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libdigest-684aca44df3e872d.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libblock_buffer-1de7ac7fba759efb.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcrypto_common-94a9c2254c1f8031.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgeneric_array-9f4d6ddc4ca1c680.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libtypenum-a7f1c2f6f37b9655.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libbyteorder-5235df8467f02766.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libregex-69abfa9c6ac2bc85.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libregex_automata-906c1f74d5966566.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libaho_corasick-a2d144d86830cc87.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libregex_syntax-5b5ffe14f88904da.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libbase64-81f8fce9cdd571ad.rlib" "E:\Rust_projects\bbmx\target\debug\deps\librand-d91d7a73332dd6f3.rlib" "E:\Rust_projects\bbmx\target\debug\deps\librand_chacha-39a590d496a14b2c.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libppv_lite86-23f0e09a8a3c1a1f.rlib" "E:\Rust_projects\bbmx\target\debug\deps\librand_core-911def566e7c4143.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgetrandom-30adc0bc55e70492.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcfg_if-bc6c437a040fac75.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libuuid-9ba030a3abf084dc.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libtime-4c45a5f40d512edc.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libtime_core-e1936e79d24e143b.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libderanged-d19230d7710c4d24.rlib" "E:\Rust_projects\bbmx\target\debug\deps\librust_decimal-8f895fe0ca9b5fba.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libarrayvec-1005d0254c57d49a.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfrunk-bb563d895d30f0a0.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfrunk_core-389d96cf2b0d9812.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libbigdecimal-609352434ac2b54c.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libnum_bigint-69b66f560e9cde76.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libnum_integer-6f45550becd3e7e5.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libnum_traits-42a12134ab0ddc40.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libserde_json-e03c623534efd68e.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libryu-5b86d4cd21b007bc.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libitoa-27c2da07cc49bd28.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libserde-c40f39f9f7f6769d.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgtk-d5e6d5f165837554.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfield_offset-dcbf152b7ae9f8a3.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libmemoffset-3b02158b33fcd1d9.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgdk-5542519a25dfaae4.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libpango-aadda866ad828109.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgdk_pixbuf-99bc192319fd5dfd.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgio-662f6a1c5cad3425.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfutures_io-cf23001f0af7888e.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcairo-83a23c7f3f9e6f1b.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libatk-558b76c895047834.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libglib-79d55f39738872f5.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfutures_executor-6220cb7712973ea2.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libmemchr-a71b2f6cfbd2cdb3.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libsmallvec-71c075fb442a51aa.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libthiserror-3b16759c276ebddd.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfutures_util-4695c10b643aff97.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libslab-3d940029ab0d6742.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libpin_project_lite-db6b74e997ec3c5d.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libpin_utils-c4a158264885b27c.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfutures_task-7261f8eceba72c9d.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfutures_channel-d0bc873acaa33cd3.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libfutures_core-3396ccb4df381806.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libonce_cell-2af9d475ce322695.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libbitflags-c00bf4b81fff33a7.rlib"
"E:\Rust_projects\bbmx\target\debug\deps\libgtk_sys-6648214939010e3b.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libatk_sys-80621c9b12491130.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgdk_sys-26da8b328bd02503.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libpango_sys-cfb32878fe81e95c.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgdk_pixbuf_sys-7e76ab53a7377ded.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgio_sys-dd486c498b567143.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libwinapi-7eb4e205c2a4b455.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libcairo_sys-9b19123ee25e17bc.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libgobject_sys-3c6c2b956e2bf1eb.rlib" "E:\Rust_projects\bbmx\target\debug\deps\libglib_sys-66868e5a9bc125ed.rlib" "E:\Rust_projects\bbmx\target\debug\deps\liblibc-940043dc5f4edbe4.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libstd-274cab44dc4a644c.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libpanic_unwind-0f177752b9ca8e95.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libobject-06bb167660b3da76.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libmemchr-8ab6cc09499ecf5b.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libaddr2line-126153ebe55b6775.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libgimli-3d08640ec0a90b99.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\librustc_demangle-e211ed0efcaf0dab.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libstd_detect-f17f8b04b9a04cbd.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libhashbrown-dc505c5f7a08eb2f.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\librustc_std_workspace_alloc-29139547fec356ea.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libminiz_oxide-cab94e250dc1e17d.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libadler-e6226bb3d40532fc.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libunwind-bc036f0a729eca3e.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libcfg_if-b7a734954c1f5dcb.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\liblibc-a254eeb9e90dc361.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\liballoc-b6fb9ac972c98305.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\librustc_std_workspace_core-6db27a6ad3c9479a.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libcore-6fcad14090edadfc.rlib" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\libcompiler_builtins-625af2eb18940f92.rlib" "-Wl,-Bdynamic" "-lwindows.0.48.5" "-lzlib1" "-lbcrypt" "-ladvapi32" "-lgobject-2.0" "-lpangowin32-1.0" "-lharfbuzz" "-lpangocairo-1.0" "-lpango-1.0" "-lcairo" "-lcairo-gobject" "-lgdk_pixbuf-2.0" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lgtk-3" "-lgdk-3" "-lgdi32" "-limm32" "-lshell32" "-lole32" "-lwinmm" "-ldwmapi" "-lsetupapi" "-lcfgmgr32" "-lhid" "-lwinspool" "-lcomctl32" "-lcomdlg32" "-latk-1.0" "-lgio-2.0" "-latk-1.0" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lharfbuzz" "-lpango-1.0" "-lcairo" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lgdk-3" "-lgdi32" "-limm32" "-lshell32" "-lole32" "-lwinmm" "-ldwmapi" "-lsetupapi" "-lcfgmgr32" "-lhid" "-lwinspool" "-lcomctl32" "-lcomdlg32" "-lpangowin32-1.0" "-lpangocairo-1.0" "-lgdk_pixbuf-2.0" "-lcairo-gobject" "-lglib-2.0" "-lintl" "-lpango-1.0" "-lgobject-2.0" "-lharfbuzz" "-lglib-2.0" "-lintl" "-lgdk_pixbuf-2.0" "-lgobject-2.0" "-lgio-2.0" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lwinapi_advapi32" "-lwinapi_cfgmgr32" "-lwinapi_kernel32" "-lwinapi_synchronization" "-lwinapi_user32" "-lwinapi_ws2_32" "-lcairo-gobject" "-lcairo" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lgobject-2.0" "-lglib-2.0" "-lintl" "-lkernel32" "-ladvapi32" "-lbcrypt" "-lkernel32" "-lntdll" "-luserenv" "-lws2_32" "-lkernel32" "-lws2_32" "-lkernel32" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib" "-o" "E:\Rust_projects\bbmx\target\debug\deps\bbmx-89668de02d121e3f.exe" "-Wl,--gc-sections" "-no-pie" "-nodefaultlibs" "C:\Users\Joel\.rustup\toolchains\stable-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\rsend.o"
= note: C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lzlib1: No such file or directory
collect2.exe: error: ld returned 1 exit status

apparently the linker flags are still wrong. it's not from the msys2 package. I'm guessing the gvsbuild modified some global states.

what's the output if you run pkg-config from command line:

C:\> where pkg-config
C:\> pkg-config --libs gtk+-3.0

also, try to remove (or rename) the entire gtk library built via gvsbuild. e.g. remove C:\gtk-build\ or rename it to some other name.

2 Likes

C:\Users\Joel> where pkg-config
C:\gtk-build\gtk\x64\release\bin\pkg-config.exe
C:\msys64\mingw64\bin\pkg-config.exe

I'll try to delete the gtk directory that I built with gvsbuild and I'll tell you, okay?

Thank you very much bro, I solved this, I deleted gtk-build the folder and when I loaded clean and then loaded build it worked, and thank you for taking your time to help me

looks like my guess was right. apparently gvsbuild modified PATH environment variable causing pkg-config from the gvsbuild build to take precedence over msys2.

it's sad that C/C++ can mess up rust build so badly. some C++ folks think cargo is "inflexible", compared to their 17 million different C++ build systems. but I think consistency and predictability is way more important than the alleged "flexibility". I don't need a flexible system if it doesn't just work.

thanks bro

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.