gtk2hs / webkit-javascriptcore

webkit javascriptcore library FFI
Other
15 stars 5 forks source link

compile twice needed #1

Closed wavewave closed 11 years ago

wavewave commented 11 years ago

cabal install gives the following error

cabal install Configuring webkit-javascriptcore-0.0.0.999... Building webkit-javascriptcore-0.0.0.999... Preprocessing library webkit-javascriptcore-0.0.0.999... gtk2hsC2hs: UName: root name supply used after saving cabal: Error: some packages failed to install: webkit-javascriptcore-0.0.0.999 failed during the building phase. The exception was: ExitFailure 1

cabal install again goes smoothly.

hamishmack commented 11 years ago

That should fix it. It seems if you have

#include "x/y.h"

in your .chs file gtk2hsC2hs creates an "x" directory inside "dist". This issue seems to be related to creating this directory.

Moving the includes to hsjscore.h fixed it.