[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FC41 cross compiling Linux --> Windows. #1900

Closed
emadeit-b opened this issue Nov 5, 2024 · 1 comment
Closed

FC41 cross compiling Linux --> Windows. #1900

emadeit-b opened this issue Nov 5, 2024 · 1 comment

Comments

@emadeit-b
Copy link

Hello there,

after upgrading from Fedora 39 to Fedora 41 I face an issue with cross compiling.

Issue:

[...]b/libcompiler_builtins-29e5ac94588325fa.rlib" "-Wl,-Bdynamic" "-lgtk-4" "-lpangocairo-1.0" "-lpango-1.0" "-lgdk_pixbuf-2.0" "-lcairo-gobject" "-lcairo" "-lharfbuzz" "-lvulkan" "-lgraphene-1.0" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "-lgtk-4" "-lpangocairo-1.0" "-lpango-1.0" "-lgdk_pixbuf-2.0" "-lcairo-gobject" "-lcairo" "-lharfbuzz" "-lvulkan" "-lgraphene-1.0" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "-lgraphene-1.0" "-lgobject-2.0" "-lglib-2.0" "-lgtk-4" "-lpangocairo-1.0" "-lpango-1.0" "-lgdk_pixbuf-2.0" "-lcairo-gobject" "-lcairo" "-lharfbuzz" "-lvulkan" "-lgraphene-1.0" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "-lpango-1.0" "-lgobject-2.0" "-lharfbuzz" "-lglib-2.0" "-lgdk_pixbuf-2.0" "-lgobject-2.0" "-lglib-2.0" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "-lwindows.0.52.0" "-lgobject-2.0" "-lglib-2.0" "-lcairo-gobject" "-lcairo" "-lgobject-2.0" "-lglib-2.0" "-lgobject-2.0" "-lglib-2.0" "-lkernel32" "-lkernel32" "-ladvapi32" "-lntdll" "-luserenv" "-lws2_32" "-ldbghelp" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-lmingwex" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "/home/developer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/windows_x86_64_gnu-0.52.6/lib" "-L" "/usr/x86_64-w64-mingw32/sys-root/usr/lib64" "-L" "/usr/x86_64-w64-mingw32/sys-root/usr/lib64" "-L" "/usr/x86_64-w64-mingw32/sys-root/usr/lib64" "-L" "/usr/x86_64-w64-mingw32/sys-root/usr/lib64" "-L" "/usr/x86_64-w64-mingw32/sys-root/usr/lib64" "-L" "/usr/x86_64-w64-mingw32/sys-root/usr/lib64" "-L" "/usr/x86_64-w64-mingw32/sys-root/usr/lib64" "-L" "/usr/x86_64-w64-mingw32/sys-root/usr/lib64" "-L" "/usr/x86_64-w64-mingw32/sys-root/usr/lib64" "-L" "/usr/x86_64-w64-mingw32/sys-root/usr/lib64" "-L" "/usr/x86_64-w64-mingw32/sys-root/usr/lib64" "-L" "/usr/x86_64-w64-mingw32/sys-root/usr/lib64" "-o" "/home/developer/Dokumente/Dev/git/gtk4-rs/target/x86_64-pc-windows-gnu/debug/deps/basics-f847ea48a1d7c29e.exe" "-Wl,--gc-sections" "-no-pie" "-nodefaultlibs" "/home/developer/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-gnu/lib/rsend.o"
  = note: /usr/lib/gcc/x86_64-w64-mingw32/14.2.1/../../../../x86_64-w64-mingw32/bin/ld: cannot find -lvulkan: No such file or directory
          /usr/lib/gcc/x86_64-w64-mingw32/14.2.1/../../../../x86_64-w64-mingw32/bin/ld: cannot find -lvulkan: No such file or directory
          /usr/lib/gcc/x86_64-w64-mingw32/14.2.1/../../../../x86_64-w64-mingw32/bin/ld: cannot find -lvulkan: No such file or directory
          collect2: error: ld returned 1 exit status
error: could not compile `gtk4-rs-examples` (bin "basics") due to 1 previous error

Steps to reproduce:
Cross compile one of the example projects

cargo build --target x86_64-pc-windows-gnu --bin basics

I have installed installed the following packages:

mingw-vulkan-headers
mingw-vulkan-loader
mingw-vulkan-tools
mingw-vulkan-validation-layers
mingw-vulkan-utility-libraries

On Fedora 39 compilation works without any issues.
Is there a bug in GTK or do I have to install a specific library on Fedora 41 for cross compilation?
Thanks in advance for some help.

@bilelmoussaoui
Copy link
Member

That is a gtk/generic build system question imho. Nothing I can help with. Please use https://discourse.gnome.org/ to ask such questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants