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

Docs should include instructions for getting started on arm64 windows and/or vcpkg #1963

Open
sargunv opened this issue Jan 17, 2025 · 3 comments

Comments

@sargunv
Copy link

sargunv commented Jan 17, 2025

The three options for installing GTK4 here did not work for me on ARM: https://gtk-rs.org/gtk4-rs/stable/latest/book/installation_windows.html. All three required some x86_64 specific components.

But, I was able to get up and running by installing GTK via vcpkg.

  1. Set up vcpkg: https://learn.microsoft.com/en-us/vcpkg/get_started/get-started?pivots=shell-powershell
    • I installed to D:\vcpkg; remember this path to use in env vars below
  2. vcpkg install --recurse --allow-unsupported gtk libxml2 librsvg pkgconf
  3. Set environment variables:
    • GTK_LIB_DIR is D:\vcpkg\installed\arm64-windows\lib
    • PATH includes D:\vcpkg\installed\arm64-windows\bin
    • PKG_CONFIG is D:\vcpkg\installed\arm64-windows\tools\pkgconf\pkgconf.exe
    • PKG_CONFIG_PATH is D:\vcpkg\installed\arm64-windows\lib\pkgconfig

I assume similar instructions work fine on x86_64 too.

@sdroege
Copy link
Member

sdroege commented Jan 21, 2025

This requires a Windows user to actually write those instructions and submit a PR.

Note that vcpkg's GTK is not very useful and misses various files. It's not recommended to be used by the GTK project, see gtk.org.

@sargunv
Copy link
Author

sargunv commented Jan 21, 2025

This requires a Windows user to actually write those instructions and submit a PR.

Sure, and there's a draft of such instructions using vcpkg in the OP

Note that vcpkg's GTK is not very useful and misses various files. It's not recommended to be used by the GTK project, see gtk.org.

Would love to learn more here. Is this an inherent limitation of vcpkg, or just something someone would need to PR a fix to them? It worked well for me, but I've only validated as far as the basic relm4 getting started docs (a couple buttons and a bit of text in a window). It's very possible I just haven't exercised it enough to run into that yet.

I don't think this needs to use vcpkg, but the documentation should call out some path for ARM users. Vcpkg is what seems to have worked for me, while the existing documented options did not.

@sargunv
Copy link
Author

sargunv commented Jan 21, 2025

Or, if we want to say making the install work for arm is an upstream problem (in gvsbuild?), the docs should at least clarify that they currently don't work for Windows ARM

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