Errors while compiling webkit

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Errors while compiling webkit

Lorenzo Bolla
Hi all,

I'm trying to compile Haskell's webkit package, but I'm getting this error:

$ cabal install webkit
Resolving dependencies...
[1 of 2] Compiling SetupWrapper     (
/tmp/webkit-0.12.3-9205/webkit-0.12.3/SetupWrapper.hs,
/tmp/webkit-0.12.3-9205/webkit-0.12.3/dist/setup/SetupWrapper.o )
[2 of 2] Compiling Main             (
/tmp/webkit-0.12.3-9205/webkit-0.12.3/Setup.hs,
/tmp/webkit-0.12.3-9205/webkit-0.12.3/dist/setup/Main.o )
Linking /tmp/webkit-0.12.3-9205/webkit-0.12.3/dist/setup/setup ...
[1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs,
dist/setup-wrapper/Gtk2HsSetup.o )
[2 of 2] Compiling Main             ( SetupMain.hs,
dist/setup-wrapper/Main.o )
Linking dist/setup-wrapper/setup ...
Configuring webkit-0.12.3...
Building webkit-0.12.3...
Preprocessing library webkit-0.12.3...
dist/build/Graphics/UI/Gtk/WebKit/Types.h:1:22: fatal error: hswebkit.h: No
such file or directory
compilation terminated.
gtk2hsC2hs: Error during preprocessing custom header file
cabal: Error: some packages failed to install:
webkit-0.12.3 failed during the building phase. The exception was:
ExitFailure 1

I'm compiling it inside a hsenv, with this ghc:
$ ghc -v
Glasgow Haskell Compiler, Version 7.4.1, stage 2 booted by GHC version 7.4.1
Using binary package database: /tmp/webkit/.hsenv/ghc_pkg_db/package.cache
wired-in package ghc-prim mapped to
ghc-prim-0.2.0.0-c2ff696e5b8ec4d4b2bc2e42085fe471
wired-in package integer-gmp mapped to
integer-gmp-0.4.0.0-3cccac07aef8e27023f605c1f45bdf74
wired-in package base mapped to
base-4.5.0.0-40b99d05fae6a4eea95ea69e6e0c9702
wired-in package rts mapped to builtin_rts
wired-in package template-haskell mapped to
template-haskell-2.7.0.0-8c8cd20e21666657195efabced685fe1
wired-in package dph-seq not found.
wired-in package dph-par not found.
Hsc static flags: -static

Any ideas?

Thanks,
L.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120320/4fb0d868/attachment.htm>

Reply | Threaded
Open this post in threaded view
|

Errors while compiling webkit

Dino Morelli
Lorenzo Bolla <lbolla <at> gmail.com> writes:

> Hi all,
>
> I'm trying to compile Haskell's webkit package, but I'm getting this error:
>
>
> $ cabal install webkit
> Resolving dependencies...
> [1 of 2] Compiling SetupWrapper ? ? ( /tmp/webkit-0.12.3-9205/webkit-
0.12.3/SetupWrapper.hs, /tmp/webkit-0.12.3-9205/webkit-
0.12.3/dist/setup/SetupWrapper.o )
> [2 of 2] Compiling Main ? ? ? ? ? ? ( /tmp/webkit-0.12.3-9205/webkit-
0.12.3/Setup.hs, /tmp/webkit-0.12.3-9205/webkit-0.12.3/dist/setup/Main.o )
> Linking /tmp/webkit-0.12.3-9205/webkit-0.12.3/dist/setup/setup ...
> [1 of 2] Compiling Gtk2HsSetup ? ? ?( Gtk2HsSetup.hs, dist/setup-
wrapper/Gtk2HsSetup.o )
> [2 of 2] Compiling Main ? ? ? ? ? ? ( SetupMain.hs, dist/setup-wrapper/Main.o
)
> Linking dist/setup-wrapper/setup ...
> Configuring webkit-0.12.3...
> Building webkit-0.12.3...
> Preprocessing library webkit-0.12.3...
> dist/build/Graphics/UI/Gtk/WebKit/Types.h:1:22: fatal error: hswebkit.h: No
such file or directory

> compilation terminated.
> gtk2hsC2hs: Error during preprocessing custom header file
> cabal: Error: some packages failed to install:
> webkit-0.12.3 failed during the building phase. The exception was:
> ExitFailure 1
>
>
> I'm compiling it inside a hsenv, with this ghc:
>
> $ ghc -v
> Glasgow Haskell Compiler, Version 7.4.1, stage 2 booted by GHC version 7.4.1
>
> Using binary package database: /tmp/webkit/.hsenv/ghc_pkg_db/package.cache
> wired-in package ghc-prim mapped to ghc-prim-0.2.0.0-
c2ff696e5b8ec4d4b2bc2e42085fe471
> wired-in package integer-gmp mapped to integer-gmp-0.4.0.0-
3cccac07aef8e27023f605c1f45bdf74
> wired-in package base mapped to base-4.5.0.0-40b99d05fae6a4eea95ea69e6e0c9702
> wired-in package rts mapped to builtin_rts
> wired-in package template-haskell mapped to template-haskell-2.7.0.0-
8c8cd20e21666657195efabced685fe1

> wired-in package dph-seq not found.
> wired-in package dph-par not found.
> Hsc static flags: -static
>
>
> Any ideas?
>
> Thanks,
> L.
>

By complete chance, I happened to be trying to use webkit today as well,
ran into the same problem.

Looks like hswebkit.h isn't getting installed anywhere in an include
dir on my system. I was able to install and build against the webkit library
after copying that file manually myself from the root of the webkit dev dir
to /usr/local/include

You can get the webkit source to get this .h file:

   $ darcs get http://code.haskell.org/webkit/


This is of course not a good long-term solution. I'm trying to figure out
whom to email or where to send a bug report now.


--
Dino Morelli  email: dino at ui3.info  web: http://ui3.info/d/
pubkey: http://ui3.info/d/dino-4AA4F02D-pub.gpg




Reply | Threaded
Open this post in threaded view
|

Errors while compiling webkit

Lorenzo Bolla
Thanks, it worked.

L.




On Tue, Mar 20, 2012 at 7:12 PM, Dino Morelli <dino at ui3.info> wrote:

> Lorenzo Bolla <lbolla <at> gmail.com> writes:
>
> > Hi all,
> >
> > I'm trying to compile Haskell's webkit package, but I'm getting this
> error:
> >
> >
> > $ cabal install webkit
> > Resolving dependencies...
> > [1 of 2] Compiling SetupWrapper     ( /tmp/webkit-0.12.3-9205/webkit-
> 0.12.3/SetupWrapper.hs, /tmp/webkit-0.12.3-9205/webkit-
> 0.12.3/dist/setup/SetupWrapper.o )
> > [2 of 2] Compiling Main             ( /tmp/webkit-0.12.3-9205/webkit-
> 0.12.3/Setup.hs, /tmp/webkit-0.12.3-9205/webkit-0.12.3/dist/setup/Main.o )
> > Linking /tmp/webkit-0.12.3-9205/webkit-0.12.3/dist/setup/setup ...
> > [1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs, dist/setup-
> wrapper/Gtk2HsSetup.o )
> > [2 of 2] Compiling Main             ( SetupMain.hs,
> dist/setup-wrapper/Main.o
> )
> > Linking dist/setup-wrapper/setup ...
> > Configuring webkit-0.12.3...
> > Building webkit-0.12.3...
> > Preprocessing library webkit-0.12.3...
> > dist/build/Graphics/UI/Gtk/WebKit/Types.h:1:22: fatal error: hswebkit.h:
> No
> such file or directory
> > compilation terminated.
> > gtk2hsC2hs: Error during preprocessing custom header file
> > cabal: Error: some packages failed to install:
> > webkit-0.12.3 failed during the building phase. The exception was:
> > ExitFailure 1
> >
> >
> > I'm compiling it inside a hsenv, with this ghc:
> >
> > $ ghc -v
> > Glasgow Haskell Compiler, Version 7.4.1, stage 2 booted by GHC version
> 7.4.1
> >
> > Using binary package database:
> /tmp/webkit/.hsenv/ghc_pkg_db/package.cache
> > wired-in package ghc-prim mapped to ghc-prim-0.2.0.0-
> c2ff696e5b8ec4d4b2bc2e42085fe471
> > wired-in package integer-gmp mapped to integer-gmp-0.4.0.0-
> 3cccac07aef8e27023f605c1f45bdf74
> > wired-in package base mapped to
> base-4.5.0.0-40b99d05fae6a4eea95ea69e6e0c9702
> > wired-in package rts mapped to builtin_rts
> > wired-in package template-haskell mapped to template-haskell-2.7.0.0-
> 8c8cd20e21666657195efabced685fe1
> > wired-in package dph-seq not found.
> > wired-in package dph-par not found.
> > Hsc static flags: -static
> >
> >
> > Any ideas?
> >
> > Thanks,
> > L.
> >
>
> By complete chance, I happened to be trying to use webkit today as well,
> ran into the same problem.
>
> Looks like hswebkit.h isn't getting installed anywhere in an include
> dir on my system. I was able to install and build against the webkit
> library
> after copying that file manually myself from the root of the webkit dev dir
> to /usr/local/include
>
> You can get the webkit source to get this .h file:
>
>   $ darcs get http://code.haskell.org/webkit/
>
>
> This is of course not a good long-term solution. I'm trying to figure out
> whom to email or where to send a bug report now.
>
>
> --
> Dino Morelli  email: dino at ui3.info  web: http://ui3.info/d/
> pubkey: http://ui3.info/d/dino-4AA4F02D-pub.gpg
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120322/6146f7aa/attachment.htm>