[Haskell-cafe] Re: Trying to compile Glade Gtk2Hs demo / cabal
install glade problem
Peter Schmitz
ps.haskell at gmail.com
Fri Aug 13 18:47:47 EDT 2010
Thanks so very much Axel and Ivan.
You were both absolutely correct and I can compile Glade apps now fine.
Great help!
The tricky part (for me) would have been looking at the error from
cabal install glade:
"setup.exe: The pkg-config package libglade-2.0 version >=2.0.0
is required but it could not be found."
and determining that the problem was that libglade-2.0.pc needed the
edit you described,
but I made the edit and it all works now.
-- Peter
And I guess I don't need these edits to cabal/config after all:
-- --------------------------------
-- extra-include-dirs:
-- extra-lib-dirs:
extra-include-dirs: H:\proc\tools\Gtk+\include
extra-lib-dirs: H:\proc\tools\Gtk+\lib
-- --------------------------------
New "cabal install glade" after libglade-2.0.pc edit:
H:\proc\dev\cmd>pkg-config --modversion libglade-2.0
2.6.4
H:\proc\dev\cmd>cabal install glade
Resolving dependencies...
C:\DOCUME~1\pschmitz\LOCALS~1\Temp\glade-0.11.12236\glade-0.11.1\Gtk2HsSetup.hs:25:
warning: #warning Setup.hs is guessing the version of Cabal.
If compilation of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal
version 1.x.0 when building
(prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup
( C:\DOCUME~1\pschmitz\LOCALS~1\Temp\glade-0.11.12236\glade-0.11.1\Gtk2HsSetup.hs,
C:\DOCUME~1\pschmitz\LOCALS~1\Temp\glade-0.11.12236\glade-0.11.1\dist\setup\Gtk2HsSetup.o
)
[2 of 2] Compiling Main
( C:\DOCUME~1\pschmitz\LOCALS~1\Temp\glade-0.11.12236\glade-0.11.1\Setup.hs,
C:\DOCUME~1\pschmitz\LOCALS~1\Temp\glade-0.11.12236\glade-0.11.1\dist\setup\Main.o
)
Linking C:\DOCUME~1\pschmitz\LOCALS~1\Temp\glade-0.11.12236\glade-0.11.1\dist\setup\setup.exe
...
Configuring glade-0.11.1...
Preprocessing library glade-0.11.1...
Building glade-0.11.1...
[1 of 2] Compiling Graphics.UI.Gtk.Glade.Types
( dist\build\Graphics\UI\Gtk\Glade\Types.hs,
dist\build\Graphics\UI\Gtk\Glade\Types.o )
[2 of 2] Compiling Graphics.UI.Gtk.Glade
( dist\build\Graphics\UI\Gtk\Glade.hs, dist\build\Graphics\UI\Gtk\Glade.o )
Registering glade-0.11.1...
Installing library in H:\proc\tools\cabal\glade-0.11.1\ghc-6.12.1
Registering glade-0.11.1...
H:\proc\dev\cmd>
More information about the Haskell-Cafe
mailing list