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

Cabal building errors in Windows #434

Open
thermohyaena opened this issue May 2, 2024 · 0 comments
Open

Cabal building errors in Windows #434

thermohyaena opened this issue May 2, 2024 · 0 comments

Comments

@thermohyaena
Copy link

thermohyaena commented May 2, 2024

After I have followed the instruction in this link
https://github.com/haskell-gi/haskell-gi/wiki/Using-haskell-gi-in-Windows

This error is what I have got
Error

I have added these {base ^>=4.17.2.1, gi-gtk, haskell-gi-base} in my cabal file as dependencies.

If I only include {base ^>=4.17.2.1, gi-gtk}
image
This is the error I got

I have also added these to the environment variables in my control panel too.

SET PATH=D:\Haskell\ghcup\msys64\mingw64\bin;D:\Haskell\ghcup\msys64\usr\bin;%PATH%
SET PKG_CONFIG_PATH=D:\Haskell\ghcup\msys64\mingw64\lib\pkgconfig
SET XDG_DATA_DIRS=D:\Haskell\ghcup\msys64\mingw64\share

Do I need to specify these again when I am building cabal, even if these are set to control panel?

It seems It's trying to download gtk4 in the instruction, but gtk3 is used in the package?

pacman -S -q --noconfirm git mingw64/mingw-w64-x86_64-pkg-config mingw64/mingw-w64-x86_64-gobject-introspection mingw64/mingw-w64-x86_64-gtksourceview5 mingw64/mingw-w64-x86_64-gtk4 mingw64/mingw-w64-x86_64-atk

Is there a way to download gtk3 in this case? Or is there a way to bypass this problem.

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

1 participant