hello I have a problem,my code is about create a graphic environment using glade ,please help me to solve this error Compiling glade_graphic v0.1.0 (C:\Users\Pro7\Documents\glade)
error: linking with link.exe
failed: exit code: 1181
|
= note: "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\HostX64\x64\link.exe" "/NOLOGO" "C:\Users\Pro7\AppData\Local\Temp\rustcZfcPGa\symbols.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.20telpguuhspcxe3.rcgu.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.2kksc4x9dusru4qy.rcgu.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.2xculccpulobf7i7.rcgu.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.3i0f6an2buoi8g2q.rcgu.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.3k51tlhdab0muxgi.rcgu.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.3w717ibjowdysxr1.rcgu.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.41x895y7w6sr592s.rcgu.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.425wejwtmhaf7rtb.rcgu.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.4q280mpfh70wjl55.rcgu.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.4tmb5hlexgckavkm.rcgu.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.50a9l2pcfy6yene1.rcgu.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.5a3geiffnegha485.rcgu.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.5d9045umjqpijfp0.rcgu.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.agbvs5plvzofyw.rcgu.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.irhj4v75xzbmfb6.rcgu.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.vbbl7br826jwlj0.rcgu.o" "C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.54xxlbj91wbz2mt0.rcgu.o" "/LIBPATH:C:\Users\Pro7\Documents\glade\target\debug\deps" "/LIBPATH:C:/msys64/mingw64/bin/../lib" "/LIBPATH:C:/msys64/mingw64/bin/../lib" "/LIBPATH:C:/msys64/mingw64/bin/../lib" "/LIBPATH:C:/msys64/mingw64/bin/../lib" "/LIBPATH:C:/msys64/mingw64/bin/../lib" "/LIBPATH:C:/msys64/mingw64/bin/../lib" "/LIBPATH:C:/msys64/mingw64/bin/../lib" "/LIBPATH:C:/msys64/mingw64/bin/../lib" "/LIBPATH:C:/msys64/mingw64/bin/../lib" "/LIBPATH:C:/msys64/mingw64/bin/../lib" "/LIBPATH:C:/msys64/mingw64/bin/../lib" "/LIBPATH:C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libgtk-89b8ed7f4a16debc.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libfield_offset-3b6e0cea8374d55b.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libmemoffset-939f9a759989e507.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libgdk-21b29db7fbd291a5.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libpango-7ef43703c08f0277.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libgdk_pixbuf-aff418e221b1cb5f.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libgio-eb2e4ced63974c5d.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libfutures_io-06eb4c157e4493ee.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libcairo-12924015408cab2a.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libatk-540874f67f3786cb.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libglib-429498a2c3608e2e.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libfutures_executor-231905eafdfb69f8.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libmemchr-396287df69631016.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libsmallvec-3fbcceb6a261a475.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libthiserror-837845def5d3eae8.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libfutures_util-970d82a2ff701178.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libslab-ee07ccc19028e9dc.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libpin_project_lite-1fc8a965d5c07667.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libpin_utils-afac89bbe295d05d.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libfutures_task-4d23613dbe9c7d10.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libfutures_channel-1d53c00ea9839411.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libfutures_core-34644f8c47898c95.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libonce_cell-4cfb10b3fa740491.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libbitflags-61c79fc6544d15d5.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libgtk_sys-3c4b87ddff8ccebc.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libatk_sys-975693066b735c31.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libgdk_sys-66561ec479bee088.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libpango_sys-c4c883d6cd5f9187.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libgdk_pixbuf_sys-1bbafb6f9ce5c577.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libgio_sys-ad85672bb54921f1.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libwinapi-71fe0c7f57658bfb.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libcairo_sys-5f524fb5876ba9cd.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libgobject_sys-a47c394a5d293936.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\libglib_sys-8f10f39a45571bc8.rlib" "C:\Users\Pro7\Documents\glade\target\debug\deps\liblibc-c9169af36ce4f0df.rlib" "C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libstd-9f65829977a28b3f.rlib" "C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libpanic_unwind-0e317596d7fb62b4.rlib" "C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\librustc_demangle-ab973503635148e8.rlib" "C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libstd_detect-60b7aa0a2358b614.rlib" "C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libhashbrown-cd6aa41f43f53ce3.rlib" "C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libminiz_oxide-88a4232a8779d8ac.rlib" "C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libadler-a9f9f52ac1a95cb8.rlib" "C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\librustc_std_workspace_alloc-29f32b95b7504de2.rlib" "C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libunwind-9830e462dc6b4b78.rlib" "C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libcfg_if-44ab97457d9c0d23.rlib" "C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\liblibc-71dfac72fe747b71.rlib" "C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\liballoc-c459514f814b56b6.rlib" "C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\librustc_std_workspace_core-77d9806000248920.rlib" "C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libcore-9380feaa1ae51240.rlib" "C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\libcompiler_builtins-a0d563049c58a24e.rlib" "gobject-2.0.lib" "gtk-3.lib" "gdk-3.lib" "z.lib" "gdi32.lib" "imm32.lib" "shell32.lib" "ole32.lib" "uuid.lib" "winmm.lib" "dwmapi.lib" "setupapi.lib" "cfgmgr32.lib" "hid.lib" "winspool.lib" "comctl32.lib" "comdlg32.lib" "pangowin32-1.0.lib" "pangocairo-1.0.lib" "pango-1.0.lib" "harfbuzz.lib" "atk-1.0.lib" "cairo-gobject.lib" "cairo.lib" "gdk_pixbuf-2.0.lib" "gio-2.0.lib" "gobject-2.0.lib" "glib-2.0.lib" "intl.lib" "atk-1.0.lib" "gobject-2.0.lib" "glib-2.0.lib" "intl.lib" "gdk-3.lib" "z.lib" "gdi32.lib" "imm32.lib" "shell32.lib" "ole32.lib" "uuid.lib" "winmm.lib" "dwmapi.lib" "setupapi.lib" "cfgmgr32.lib" "hid.lib" "winspool.lib" "comctl32.lib" "comdlg32.lib" "pangowin32-1.0.lib" "pangocairo-1.0.lib" "pango-1.0.lib" "harfbuzz.lib" "gdk_pixbuf-2.0.lib" "cairo-gobject.lib" "cairo.lib" "gobject-2.0.lib" "glib-2.0.lib" "intl.lib" "pango-1.0.lib" "gobject-2.0.lib" "glib-2.0.lib" "intl.lib" "harfbuzz.lib" "gdk_pixbuf-2.0.lib" "gobject-2.0.lib" "glib-2.0.lib" "intl.lib" "gio-2.0.lib" "gobject-2.0.lib" "glib-2.0.lib" "intl.lib" "advapi32.lib" "cfgmgr32.lib" "kernel32.lib" "user32.lib" "ws2_32.lib" "cairo-gobject.lib" "cairo.lib" "gobject-2.0.lib" "glib-2.0.lib" "intl.lib" "gobject-2.0.lib" "glib-2.0.lib" "intl.lib" "gobject-2.0.lib" "glib-2.0.lib" "intl.lib" "legacy_stdio_definitions.lib" "kernel32.lib" "advapi32.lib" "userenv.lib" "kernel32.lib" "ws2_32.lib" "bcrypt.lib" "msvcrt.lib" "legacy_stdio_definitions.lib" "/NXCOMPAT" "/LIBPATH:C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib" "/OUT:C:\Users\Pro7\Documents\glade\target\debug\deps\glade_graphic.exe" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\etc\intrinsic.natvis" "/NATVIS:C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\etc\liballoc.natvis" "/NATVIS:C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\etc\libcore.natvis" "/NATVIS:C:\Users\Pro7\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\etc\libstd.natvis"
= note: Non-UTF-8 output: LINK : fatal error LNK1181: impossible d'ouvrir le fichier en entr\x82e 'gobject-2.0.lib'\r\n
The linker has given output in CP850 (the MS-DOS default for French): "LINK : fatal error LNK1181: impossible d'ouvrir le fichier en entrée 'gobject-2.0.lib'"; this, according to the MS reference for LNK1181 means that it can't find the file gobject-2.0.lib
.
At a guess, you're using the MSVC toolchain for Rust, but you've not installed the C library gobject-2.0.lib
in a manner that MSVC can find and link for any language - C, Rust, C++ etc.
Have you installed GTK3 on your system? See The GTK Project - A free and open-source cross-platform widget toolkit for instructions. I think you will also have to switch from the MSVC based rustc toolchain to the MinGW based one. (x86_64-pc-windows-gnu instead of x86_64-pc-windows-msvc)
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.