On Sun, Jul 4, 2010 at 4:47 PM, Tim Matthews
<tim.matthews7@gmail.com> wrote:
On Thu, Jun 10, 2010 at 5:18 AM, Gabor PALI
<pgj@freebsd.org> wrote:
On 06/01/10 19:05, Eugeny N Dzhurinsky wrote:
> so c2hs is installed.
>
Ah, finally I got it... you need the "gtk2hs-buildtools" package :)
gtk2hs-buildtools is required for gtk but not automatically pulled in. Also alex and happy are required for gtk2hs-buildtools but even with those I could not install gtk using the binary ghc distribution:
cabal install --user --enable-documentation gtk
Resolving dependencies...
/tmp/glib-0.11.010629/glib-0.11.0/Gtk2HsSetup.hs:25:0:
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 ( /tmp/glib-0.11.010629/glib-0.11.0/Gtk2HsSetup.hs, /tmp/glib-0.11.010629/glib-0.11.0/dist/setup/Gtk2HsSetup.o )
[2 of 2] Compiling Main ( /tmp/glib-0.11.010629/glib-0.11.0/Setup.hs, /tmp/glib-0.11.010629/glib-0.11.0/dist/setup/Main.o )
Linking /tmp/glib-0.11.010629/glib-0.11.0/dist/setup/setup ...
Configuring glib-0.11.0...
Preprocessing library glib-0.11.0...
Building glib-0.11.0...
[ 1 of 20] Compiling System.Glib.Attributes ( System/Glib/Attributes.hs, dist/build/System/Glib/Attributes.o )
[ 2 of 20] Compiling System.Glib.Flags ( System/Glib/Flags.hs, dist/build/System/Glib/Flags.o )
[ 3 of 20] Compiling System.Glib.FFI ( System/Glib/FFI.hs, dist/build/System/Glib/FFI.o )
[ 4 of 20] Compiling System.Glib.Types ( dist/build/System/Glib/Types.hs, dist/build/System/Glib/Types.o )
[ 5 of 20] Compiling System.Glib.GList ( dist/build/System/Glib/GList.hs, dist/build/System/Glib/GList.o )
[ 6 of 20] Compiling System.Glib.GType ( dist/build/System/Glib/GType.hs, dist/build/System/Glib/GType.o )
[ 7 of 20] Compiling System.Glib.GValue ( dist/build/System/Glib/GValue.hs, dist/build/System/Glib/GValue.o )
[ 8 of 20] Compiling System.Glib.GParameter ( dist/build/System/Glib/GParameter.hs, dist/build/System/Glib/GParameter.o )
[ 9 of 20] Compiling System.Glib.GTypeConstants ( dist/build/System/Glib/GTypeConstants.hs, dist/build/System/Glib/GTypeConstants.o )
[10 of 20] Compiling System.Glib.UTFString ( System/Glib/UTFString.hs, dist/build/System/Glib/UTFString.o )
[11 of 20] Compiling System.Glib.GObject ( dist/build/System/Glib/GObject.hs, dist/build/System/Glib/GObject.o )
[12 of 20] Compiling System.Glib.GValueTypes ( dist/build/System/Glib/GValueTypes.hs, dist/build/System/Glib/GValueTypes.o )
[13 of 20] Compiling System.Glib.Properties ( dist/build/System/Glib/Properties.hs, dist/build/System/Glib/Properties.o )
[14 of 20] Compiling System.Glib.StoreValue ( dist/build/System/Glib/StoreValue.hs, dist/build/System/Glib/StoreValue.o )
System/Glib/StoreValue.hsc:38:0:
Warning: Module `Control.OldException' is deprecated:
Future versions of base will not support the old exceptions style. Please switch to extensible exceptions.
System/Glib/StoreValue.hsc:38:0:
Warning: In the use of data constructor `AssertionFailed'
(imported from Control.OldException):
Deprecated: "Future versions of base will not support the old exceptions style. Please switch to extensible exceptions."
[15 of 20] Compiling System.Glib.Signals ( dist/build/System/Glib/Signals.hs, dist/build/System/Glib/Signals.o )
[16 of 20] Compiling System.Glib.MainLoop ( dist/build/System/Glib/MainLoop.hs, dist/build/System/Glib/MainLoop.o )
[17 of 20] Compiling System.Glib.GError ( dist/build/System/Glib/GError.hs, dist/build/System/Glib/GError.o )
System/Glib/GError.chs:93:0:
Warning: Module `Control.OldException' is deprecated:
Future versions of base will not support the old exceptions style. Please switch to extensible exceptions.
System/Glib/GError.chs:93:0:
Warning: In the use of `catchDyn'
(imported from Control.OldException):
Deprecated: "Future versions of base will not support the old exceptions style. Please switch to extensible exceptions."
System/Glib/GError.chs:93:0:
Warning: In the use of `throwDyn'
(imported from Control.OldException):
Deprecated: "Future versions of base will not support the old exceptions style. Please switch to extensible exceptions."
[18 of 20] Compiling System.Glib.GDateTime ( dist/build/System/Glib/GDateTime.hs, dist/build/System/Glib/GDateTime.o )
[19 of 20] Compiling System.Glib.Utils ( dist/build/System/Glib/Utils.hs, dist/build/System/Glib/Utils.o )
[20 of 20] Compiling System.Glib ( System/Glib.hs, dist/build/System/Glib.o )
Registering glib-0.11.0...
setup: glib-0.11.0: include-dirs: /usr/local/lib/glib-2.0/include doesn't
exist or isn't a directory (use --force to override)
cabal: Error: some packages failed to install:
gio-0.11.0 depends on glib-0.11.0 which failed to install.
glib-0.11.0 failed during the building phase. The exception was:
ExitFailure 1
gtk-0.11.0 depends on glib-0.11.0 which failed to install.
pango-0.11.0 depends on glib-0.11.0 which failed to install.
It's looking for /usr/local/lib/glib-2.0/include but it should look for /usr/local/include/glib-2.0. How do I tell it the correct place to look for includes?
Forgot to include freebsd-haskell in the to list of the email. Previous message above. Also the output if I use the --force option:
cabal install --user --enable-documentation --ghc-pkg-option=--force gtk
Resolving dependencies...
/tmp/glib-0.11.011162/glib-0.11.0/Gtk2HsSetup.hs:25:0:
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 ( /tmp/glib-0.11.011162/glib-0.11.0/Gtk2HsSetup.hs, /tmp/glib-0.11.011162/glib-0.11.0/dist/setup/Gtk2HsSetup.o )
[2 of 2] Compiling Main ( /tmp/glib-0.11.011162/glib-0.11.0/Setup.hs, /tmp/glib-0.11.011162/glib-0.11.0/dist/setup/Main.o )
Linking /tmp/glib-0.11.011162/glib-0.11.0/dist/setup/setup ...
Configuring glib-0.11.0...
Preprocessing library glib-0.11.0...
Building glib-0.11.0...
[ 1 of 20] Compiling System.Glib.Attributes ( System/Glib/Attributes.hs, dist/build/System/Glib/Attributes.o )
[ 2 of 20] Compiling System.Glib.Flags ( System/Glib/Flags.hs, dist/build/System/Glib/Flags.o )
[ 3 of 20] Compiling System.Glib.FFI ( System/Glib/FFI.hs, dist/build/System/Glib/FFI.o )
[ 4 of 20] Compiling System.Glib.Types ( dist/build/System/Glib/Types.hs, dist/build/System/Glib/Types.o )
[ 5 of 20] Compiling System.Glib.GList ( dist/build/System/Glib/GList.hs, dist/build/System/Glib/GList.o )
[ 6 of 20] Compiling System.Glib.GType ( dist/build/System/Glib/GType.hs, dist/build/System/Glib/GType.o )
[ 7 of 20] Compiling System.Glib.GValue ( dist/build/System/Glib/GValue.hs, dist/build/System/Glib/GValue.o )
[ 8 of 20] Compiling System.Glib.GParameter ( dist/build/System/Glib/GParameter.hs, dist/build/System/Glib/GParameter.o )
[ 9 of 20] Compiling System.Glib.GTypeConstants ( dist/build/System/Glib/GTypeConstants.hs, dist/build/System/Glib/GTypeConstants.o )
[10 of 20] Compiling System.Glib.UTFString ( System/Glib/UTFString.hs, dist/build/System/Glib/UTFString.o )
[11 of 20] Compiling System.Glib.GObject ( dist/build/System/Glib/GObject.hs, dist/build/System/Glib/GObject.o )
[12 of 20] Compiling System.Glib.GValueTypes ( dist/build/System/Glib/GValueTypes.hs, dist/build/System/Glib/GValueTypes.o )
[13 of 20] Compiling System.Glib.Properties ( dist/build/System/Glib/Properties.hs, dist/build/System/Glib/Properties.o )
[14 of 20] Compiling System.Glib.StoreValue ( dist/build/System/Glib/StoreValue.hs, dist/build/System/Glib/StoreValue.o )
System/Glib/StoreValue.hsc:38:0:
Warning: Module `Control.OldException' is deprecated:
Future versions of base will not support the old exceptions style. Please switch to extensible exceptions.
System/Glib/StoreValue.hsc:38:0:
Warning: In the use of data constructor `AssertionFailed'
(imported from Control.OldException):
Deprecated: "Future versions of base will not support the old exceptions style. Please switch to extensible exceptions."
[15 of 20] Compiling System.Glib.Signals ( dist/build/System/Glib/Signals.hs, dist/build/System/Glib/Signals.o )
[16 of 20] Compiling System.Glib.MainLoop ( dist/build/System/Glib/MainLoop.hs, dist/build/System/Glib/MainLoop.o )
[17 of 20] Compiling System.Glib.GError ( dist/build/System/Glib/GError.hs, dist/build/System/Glib/GError.o )
System/Glib/GError.chs:93:0:
Warning: Module `Control.OldException' is deprecated:
Future versions of base will not support the old exceptions style. Please switch to extensible exceptions.
System/Glib/GError.chs:93:0:
Warning: In the use of `catchDyn'
(imported from Control.OldException):
Deprecated: "Future versions of base will not support the old exceptions style. Please switch to extensible exceptions."
System/Glib/GError.chs:93:0:
Warning: In the use of `throwDyn'
(imported from Control.OldException):
Deprecated: "Future versions of base will not support the old exceptions style. Please switch to extensible exceptions."
[18 of 20] Compiling System.Glib.GDateTime ( dist/build/System/Glib/GDateTime.hs, dist/build/System/Glib/GDateTime.o )
[19 of 20] Compiling System.Glib.Utils ( dist/build/System/Glib/Utils.hs, dist/build/System/Glib/Utils.o )
[20 of 20] Compiling System.Glib ( System/Glib.hs, dist/build/System/Glib.o )
Registering glib-0.11.0...
Running Haddock for glib-0.11.0...
Preprocessing library glib-0.11.0...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: ffi-1.0, rts-1.0
Warning: System.Glib.Types: toGObject is exported separately but will be documented under GObjectClass. Consider exporting it together with its parent(s) for code clarity.
Warning: System.Glib.Types: unsafeCastGObject is exported separately but will be documented under GObjectClass. Consider exporting it together with its parent(s) for code clarity.
Warning: System.Glib.MainLoop: could not find link destinations for:
System.Glib.MainLoop.FD
Warning: System.Glib.GError: could not find link destinations for:
System.Glib.GError.GQuark
Documentation created: dist/doc/html/glib/index.html
Installing library in /home/tim/.cabal/lib/glib-0.11.0/ghc-6.12.3
Registering glib-0.11.0...
/tmp/gio-0.11.011162/gio-0.11.0/Gtk2HsSetup.hs:25:0:
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 ( /tmp/gio-0.11.011162/gio-0.11.0/Gtk2HsSetup.hs, /tmp/gio-0.11.011162/gio-0.11.0/dist/setup/Gtk2HsSetup.o )
[2 of 2] Compiling Main ( /tmp/gio-0.11.011162/gio-0.11.0/Setup.hs, /tmp/gio-0.11.011162/gio-0.11.0/dist/setup/Main.o )
Linking /tmp/gio-0.11.011162/gio-0.11.0/dist/setup/setup ...
Configuring gio-0.11.0...
Preprocessing library gio-0.11.0...
Building gio-0.11.0...
[1 of 8] Compiling System.GIO.Signals ( dist/build/System/GIO/Signals.hs, dist/build/System/GIO/Signals.o )
[2 of 8] Compiling System.GIO.Types ( dist/build/System/GIO/Types.hs, dist/build/System/GIO/Types.o )
[3 of 8] Compiling System.GIO.Base ( dist/build/System/GIO/Base.hs, dist/build/System/GIO/Base.o )
[4 of 8] Compiling System.GIO.File.FileAttribute ( dist/build/System/GIO/File/FileAttribute.hs, dist/build/System/GIO/File/FileAttribute.o )
[5 of 8] Compiling System.GIO.File.File ( dist/build/System/GIO/File/File.hs, dist/build/System/GIO/File/File.o )
[6 of 8] Compiling System.GIO.Async.Cancellable ( dist/build/System/GIO/Async/Cancellable.hs, dist/build/System/GIO/Async/Cancellable.o )
[7 of 8] Compiling System.GIO.Async.AsyncResult ( dist/build/System/GIO/Async/AsyncResult.hs, dist/build/System/GIO/Async/AsyncResult.o )
[8 of 8] Compiling System.GIO ( System/GIO.hs, dist/build/System/GIO.o )
Registering gio-0.11.0...
Running Haddock for gio-0.11.0...
Preprocessing library gio-0.11.0...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: ffi-1.0, rts-1.0, mtl-1.1.0.2
Warning: System.GIO.File.File: could not find link destinations for:
System.GIO.Types.FileInputStream System.GIO.Types.FileOutputStream System.GIO.Types.FileInfo System.GIO.Types.AppInfo System.GIO.Types.Mount System.GIO.Types.FileEnumerator
Warning: System.GIO.Async.Cancellable: could not find link destinations for:
System.GIO.Types.CancellableClass
Documentation created: dist/doc/html/gio/index.html
Installing library in /home/tim/.cabal/lib/gio-0.11.0/ghc-6.12.3
Registering gio-0.11.0...
/tmp/pango-0.11.011162/pango-0.11.0/Gtk2HsSetup.hs:25:0:
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 ( /tmp/pango-0.11.011162/pango-0.11.0/Gtk2HsSetup.hs, /tmp/pango-0.11.011162/pango-0.11.0/dist/setup/Gtk2HsSetup.o )
[2 of 2] Compiling Main ( /tmp/pango-0.11.011162/pango-0.11.0/Setup.hs, /tmp/pango-0.11.011162/pango-0.11.0/dist/setup/Main.o )
Linking /tmp/pango-0.11.011162/pango-0.11.0/dist/setup/setup ...
Configuring pango-0.11.0...
Preprocessing library pango-0.11.0...
Building pango-0.11.0...
[ 1 of 12] Compiling Graphics.Rendering.Pango.Types ( dist/build/Graphics/Rendering/Pango/Types.hs, dist/build/Graphics/Rendering/Pango/Types.o )
[ 2 of 12] Compiling Graphics.Rendering.Pango.BasicTypes ( dist/build/Graphics/Rendering/Pango/BasicTypes.hs, dist/build/Graphics/Rendering/Pango/BasicTypes.o )
[ 3 of 12] Compiling Graphics.Rendering.Pango.Structs ( dist/build/Graphics/Rendering/Pango/Structs.hs, dist/build/Graphics/Rendering/Pango/Structs.o )
[ 4 of 12] Compiling Graphics.Rendering.Pango.Enums ( dist/build/Graphics/Rendering/Pango/Enums.hs, dist/build/Graphics/Rendering/Pango/Enums.o )
[ 5 of 12] Compiling Graphics.Rendering.Pango.Attributes ( dist/build/Graphics/Rendering/Pango/Attributes.hs, dist/build/Graphics/Rendering/Pango/Attributes.o )
[ 6 of 12] Compiling Graphics.Rendering.Pango.Markup ( dist/build/Graphics/Rendering/Pango/Markup.hs, dist/build/Graphics/Rendering/Pango/Markup.o )
[ 7 of 12] Compiling Graphics.Rendering.Pango.Description ( dist/build/Graphics/Rendering/Pango/Description.hs, dist/build/Graphics/Rendering/Pango/Description.o )
[ 8 of 12] Compiling Graphics.Rendering.Pango.Font ( dist/build/Graphics/Rendering/Pango/Font.hs, dist/build/Graphics/Rendering/Pango/Font.o )
[ 9 of 12] Compiling Graphics.Rendering.Pango.Context ( dist/build/Graphics/Rendering/Pango/Context.hs, dist/build/Graphics/Rendering/Pango/Context.o )
[10 of 12] Compiling Graphics.Rendering.Pango.GlyphStorage ( dist/build/Graphics/Rendering/Pango/GlyphStorage.hs, dist/build/Graphics/Rendering/Pango/GlyphStorage.o )
Graphics/Rendering/Pango/GlyphStorage.chs:50:0:
Warning: Module `Control.OldException' is deprecated:
Future versions of base will not support the old exceptions style. Please switch to extensible exceptions.
Graphics/Rendering/Pango/GlyphStorage.chs:50:30:
Warning: In the use of data constructor `ArrayException'
(imported from Control.OldException):
Deprecated: "Future versions of base will not support the old exceptions style. Please switch to extensible exceptions."
[11 of 12] Compiling Graphics.Rendering.Pango.Rendering ( dist/build/Graphics/Rendering/Pango/Rendering.hs, dist/build/Graphics/Rendering/Pango/Rendering.o )
[12 of 12] Compiling Graphics.Rendering.Pango.Layout ( dist/build/Graphics/Rendering/Pango/Layout.hs, dist/build/Graphics/Rendering/Pango/Layout.o )
Graphics/Rendering/Pango/Layout.chs:140:0:
Warning: Module `Control.OldException' is deprecated:
Future versions of base will not support the old exceptions style. Please switch to extensible exceptions.
Graphics/Rendering/Pango/Layout.chs:140:30:
Warning: In the use of data constructor `ArrayException'
(imported from Control.OldException):
Deprecated: "Future versions of base will not support the old exceptions style. Please switch to extensible exceptions."
Registering pango-0.11.0...
Running Haddock for pango-0.11.0...
Preprocessing library pango-0.11.0...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: ffi-1.0, rts-1.0, mtl-1.1.0.2
Warning: Graphics.Rendering.Pango.Context: could not find link destinations for:
Graphics.Rendering.Pango.Types.PangoContextClass
Warning: Graphics.Rendering.Pango.Font: could not find link destinations for:
Graphics.Rendering.Pango.Types.FontMapClass Graphics.Rendering.Pango.Types.FontFamilyClass Graphics.Rendering.Pango.Types.FontFaceClass Graphics.Rendering.Pango.Types.FontClass
Documentation created: dist/doc/html/pango/index.html
Installing library in /home/tim/.cabal/lib/pango-0.11.0/ghc-6.12.3
Registering pango-0.11.0...
/tmp/gtk-0.11.011162/gtk-0.11.0/Gtk2HsSetup.hs:25:0:
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 ( /tmp/gtk-0.11.011162/gtk-0.11.0/Gtk2HsSetup.hs, /tmp/gtk-0.11.011162/gtk-0.11.0/dist/setup/Gtk2HsSetup.o )
[2 of 2] Compiling Main ( /tmp/gtk-0.11.011162/gtk-0.11.0/Setup.hs, /tmp/gtk-0.11.011162/gtk-0.11.0/dist/setup/Main.o )
Linking /tmp/gtk-0.11.011162/gtk-0.11.0/dist/setup/setup ...
Configuring gtk-0.11.0...
setup: ./Graphics/UI/Gtk/General/IconTheme.chs: invalid argument
Updating documentation index /home/tim/.cabal/share/doc/index.html
cabal: Error: some packages failed to install:
gtk-0.11.0 failed during the building phase. The exception was:
ExitFailure 1
Thanks for your time
Tim M