koral | 26 Mar 2012 08:46
Favicon

[Webkit] Compilation fails (hswebkit.h not found)

Hello,

It's been several weeks since I can't compile my project anymore due to 
gtk2hs
not compiling.

To spot the problem, I've cleaned my ~/.cabal and ~/.ghc directories 
and started reinstalling everything from scratch, and now I get the 
following error:

> cabal install webkit
Resolving dependencies...
[1 of 2] Compiling SetupWrapper     ( 
/tmp/webkit-0.12.3-17631/webkit-0.12.3/SetupWrapper.hs, 
/tmp/webkit-0.12.3-17631/webkit-0.12.3/dist/setup/SetupWrapper.o )
[2 of 2] Compiling Main             ( 
/tmp/webkit-0.12.3-17631/webkit-0.12.3/Setup.hs, 
/tmp/webkit-0.12.3-17631/webkit-0.12.3/dist/setup/Main.o )
Linking /tmp/webkit-0.12.3-17631/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.
(Continue reading)

wagnerdm | 26 Mar 2012 09:25
Favicon
Gravatar

Re: [Webkit] Compilation fails (hswebkit.h not found)

Hi koral,

Another user reported that adding "include-dirs: ." to the Library  
section of the .cabal file fixed a similar error in another gtk2hs  
package. Does that work for you?

Axel, I don't seem to have permissions on the webkit repository. A few  
of the files in _darcs have your group instead of the gtk2hs-p group;  
could you issue "chgrp -R gtk2hs-p /srv/code/webkit/_darcs" for me?

~d

Quoting koral <at> mailoo.org:

> Hello,
>
> It's been several weeks since I can't compile my project anymore due to
> gtk2hs
> not compiling.
>
> To spot the problem, I've cleaned my ~/.cabal and ~/.ghc directories
> and started reinstalling everything from scratch, and now I get the
> following error:
>
>> cabal install webkit
> Resolving dependencies...
> [1 of 2] Compiling SetupWrapper     (
> /tmp/webkit-0.12.3-17631/webkit-0.12.3/SetupWrapper.hs,
> /tmp/webkit-0.12.3-17631/webkit-0.12.3/dist/setup/SetupWrapper.o )
> [2 of 2] Compiling Main             (
(Continue reading)

koral | 27 Mar 2012 08:55
Favicon

Re: [Webkit] Compilation fails (hswebkit.h not found)

> Another user reported that adding "include-dirs: ." to the Library
> section of the .cabal file fixed a similar error in another gtk2hs
> package. Does that work for you?

This works fine, thank you.

--

-- 
koralusers

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure

Gmane