-
Notifications
You must be signed in to change notification settings - Fork 72
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
Isssues with installing gi-gtk on Win10 #416
Comments
Okay, followed these instructions precisely (with cmd), and the install into cabal package cache worked. But is there any way to get this to work for powershell, since many users have migrated to powershell / windows terminal from cmd? https://github.com/haskell-gi/haskell-gi/wiki/Using-haskell-gi-in-Windows |
Powershell examples: $env:PATH += ";C:\ghcup\msys64\mingw64\bin;C:\ghcup\msys64\usr\bin;%PATH%" |
This is still failing, tried a new install on 9.6.2, Failed to build gi-gdk-4.0.7. The failure occurred during the configure step. ** (process:9088): WARNING **: 15:47:14.861: Failed to load shared library 'libgtk-4-1.dll' referenced by the typelib: 'libgtk-4-1.dll': The specified procedure could not be found. I think the cmd version still works, not sure what's wrong with the powershell version. |
might have been that I failed to set $env.PATH, as opposed to $env.Path, which was what I was using for a bit. |
Still not working even with $env:PATH. So I guess this is an issue with powershell / my comprehension of powershell, might someone have a fix? |
ghci> :set -package gi-gtk *** Exception: loadArchive "C:\ghcup\msys64\mingw64\lib\libgobject-2.0.dll.a": failed Looks like this works fine on cmd.exe, terribly on powershell. Ugh. |
powershell translation of: $env:PATH="C:\ghcup\msys64\mingw64\bin;C:\ghcup\msys64\usr\bin;$env:PATH" works. I'm busy trying to figure out how to get this to work via modifying system environment variables. |
Thanks for digging into this! I am afraid I know very little of Windows myself, so I cannot really help, but if you figure this out please do add your findings to the wiki. I am sure other Windows users will appreciate it! |
The discussion here may help: https://discourse.haskell.org/t/debugging-gi-gtk-with-vscode-on-windows/7514 |
Failed to build gi-cairo-1.0.29. The failure occurred during the configure
step.
Build log (
C:\cabal\logs\ghc-9.4.6\gi-cairo-1.0.29-b473ad33fb8201efa4de21fcb2752f3bb22b760f.log
):
[1 of 2] Compiling Main ( C:\Users\Liam\AppData\Local\Temp\cabal-install.-22212\dist-newstyle\tmp\src-22214\gi-cairo-1.0.29\dist\setup\setup.hs, C:\Users\Liam\AppData\Local\Temp\cabal-install.-22212\dist-newstyle\tmp\src-22214\gi-cairo-1.0.29\dist\setup\Main.o )
[2 of 2] Linking C:\Users\Liam\AppData\Local\Temp\cabal-install.-22212\dist-newstyle\tmp\src-22214\gi-cairo-1.0.29\dist\setup\setup.exe
Did not find a GI repository for cairo-1.0 in ["C:\Program Files\gir-1.0","/opt/homebrew/share/gir-1.0"].
CallStack (from HasCallStack):
error, called at lib\Data\GI\GIR\Repository.hs:94:20 in haskell-gi-0.26.7-71a2dc1a182861674d63f91dc7741ab0d1fb55a3:Data.GI.GIR.Repository
Failed to build gi-freetype2-2.0.4. The failure occurred during the configure
step.
Build log (
C:\cabal\logs\ghc-9.4.6\gi-freetype2-2.0.4-1ae7101e78d2bc8469151bcdc35a027c341e8fb3.log
):
[1 of 2] Compiling Main ( C:\Users\Liam\AppData\Local\Temp\cabal-install.-22212\dist-newstyle\tmp\src-22213\gi-freetype2-2.0.4\dist\setup\setup.hs, C:\Users\Liam\AppData\Local\Temp\cabal-install.-22212\dist-newstyle\tmp\src-22213\gi-freetype2-2.0.4\dist\setup\Main.o )
[2 of 2] Linking C:\Users\Liam\AppData\Local\Temp\cabal-install.-22212\dist-newstyle\tmp\src-22213\gi-freetype2-2.0.4\dist\setup\setup.exe
Did not find a GI repository for freetype2-2.0 in ["C:\Program Files\gir-1.0","/opt/homebrew/share/gir-1.0"].
CallStack (from HasCallStack):
error, called at lib\Data\GI\GIR\Repository.hs:94:20 in haskell-gi-0.26.7-71a2dc1a182861674d63f91dc7741ab0d1fb55a3:Data.GI.GIR.Repository
Failed to build gi-glib-2.0.29. The failure occurred during the configure
step.
Build log (
C:\cabal\logs\ghc-9.4.6\gi-glib-2.0.29-d3153a9365770c5e2b29afbe2dcdfa828705cea2.log
):
Did not find a GI repository for GLib-2.0 in ["C:\Program Files\gir-1.0","/opt/homebrew/share/gir-1.0"].
CallStack (from HasCallStack):
error, called at lib\Data\GI\GIR\Repository.hs:94:20 in haskell-gi-0.26.7-71a2dc1a182861674d63f91dc7741ab0d1fb55a3:Data.GI.GIR.Repository
[1 of 2] Compiling Main ( C:\Users\Liam\AppData\Local\Temp\cabal-install.-22212\dist-newstyle\tmp\src-22212\gi-glib-2.0.29\dist\setup\setup.hs, C:\Users\Liam\AppData\Local\Temp\cabal-install.-22212\dist-newstyle\tmp\src-22212\gi-glib-2.0.29\dist\setup\Main.o )
[2 of 2] Linking C:\Users\Liam\AppData\Local\Temp\cabal-install.-22212\dist-newstyle\tmp\src-22212\gi-glib-2.0.29\dist\setup\setup.exe
Error: cabal-3.10.1.0.exe: Failed to build gi-cairo-1.0.29 (which is required
by gi-gtk-4.0.8). See the build log above for details.
Failed to build gi-freetype2-2.0.4 (which is required by gi-gtk-4.0.8). See
the build log above for details.
Failed to build gi-glib-2.0.29 (which is required by gi-gtk-4.0.8). See the
build log above for details.
Not sure if this is a current issue or if there's a known resolution for such.
The text was updated successfully, but these errors were encountered: