[GHC] #9553: GHC under Windows with TH can't tell that gtk-win32-2.0 is in gtk-win32-2.0-0 (note the -0 suffix)
GHC
ghc-devs at haskell.org
Thu Sep 4 19:31:11 UTC 2014
#9553: GHC under Windows with TH can't tell that gtk-win32-2.0 is in gtk-
win32-2.0-0 (note the -0 suffix)
-------------------------------------+-------------------------------------
Reporter: MikolajKonarski | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.3
Keywords: | Operating System: Windows
Architecture: Unknown/Multiple | Type of failure: GHC
Difficulty: Unknown | rejects valid program
Blocked By: | Test Case:
Related Tickets: #5289 #1883 | Blocking:
| Differential Revisions:
-------------------------------------+-------------------------------------
The following compilation under Wine (after applying the workarounds
described at
http://www.haskell.org/haskellwiki/GHC_under_Wine#Code_that_uses_gtk2hs)
{{{
cabal install LambdaHack-0.4.99.0
}}}
fails with (the full log attached)
{{{
Loading package LambdaHack-0.4.99.1 ... ghc.exe: gtk-win32-2.0: Module not
found.
<command line>: can't load .so/.DLL for: gtk-win32-2.0.dll (addDLL: could
not load DLL)
}}}
The following workaround sidesteps the problem, leading to a correctly
running executable (symlinks are not enough).
{{{
cp gtk/bin/libgtk-win32-2.0-0.dll gtk/bin/libgtk-win32-2.0.dll
cp gtk/bin/libgdk-win32-2.0-0.dll gtk/bin/libgdk-win32-2.0.dll
cp gtk/bin/libatk-1.0-0.dll gtk/bin/libatk-1.0.dll
cp gtk/bin/libgio-2.0-0.dll gtk/bin/libgio-2.0.dll
cp gtk/bin/libgio-2.0-0.dll gtk/bin/pango-
cp gtk/bin/libgio-2.0-0.dll gtk/bin/
cp gtk/bin/libpangowin32-1.0-0.dll gtk/bin/libpangowin32-1.0.dll
cp gtk/bin/libpangocairo-1.0-0.dll gtk/bin/libpangocairo-1.0.dll
cp gtk/bin/libgdk_pixbuf-2.0-0.dll gtk/bin/libgdk_pixbuf-2.0.dll
cp gtk/bin/libpango-1.0-0.dll gtk/bin/libpango-1.0.dll
cp gtk/bin/libcairo- gtk/bin/libcairo.dll
cp gtk/bin/libcairo-2.dll gtk/bin/libcairo.dll
cp gtk/bin/libgobject-2.0-0.dll gtk/bin/libgobject-2.0.dll
cp gtk/bin/libgmodule-2.0-0.dll gtk/bin/libgmodule-2.0.dll
cp gtk/bin/libgthread-2.0-0.dll gtk/bin/libgthread-2.0.dll
cp gtk/bin/libglib-2.0-0.dll gtk/bin/libglib-2.0.dll
cp gtk/bin/libfontconfig-1.dll gtk/bin/libfontconfig.dll
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9553>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list