[Haskell] Problems compiling hs-plugins
Duncan Coutts
duncan.coutts at worc.ox.ac.uk
Sun Mar 5 05:41:55 EST 2006
Hi Ben,
Yes, I did what dons recommended and copied the Typeable.h from
ghc-6.4.1 to make it compile with ghc-6.5, however in the end I couldn't
get all the hIDE plugins to load with hs-plugins anyway (even though
they would all load in ghci).
So what I did in the end is to do a static build of hIDE. That is to
have a main module that just directly imports all the plugins and calls
their initialisation routines in dependency order. Until we have a
reliable plugin loading system I think this is the way to go. It makes
it much easier to build.
But yes, you still have to use the ghc.hide and gtk2hs.hide darcs repos.
These are both development snapshots that work with hIDE.
Duncan
On Sun, 2006-03-05 at 10:18 +0000, Axel Simon wrote:
> Ben,
>
> Duncan has just managed to get hIDE to compile. There's some issue that
> after the hs-plugins dilemma, you run into another one sine hIDE was
> developed against a CVS snapshot of Gtk2Hs. Duncan has a patch to work
> with the released version.
>
> Axel.
>
> On Sun, 2006-03-05 at 00:12 +0100, Benjamin Franksen wrote:
> > On Saturday 04 March 2006 03:32, you wrote:
> > > benjamin.franksen:
> > > > [...]
> > > > INSTANCE_TYPEABLE1([],listTc,"[]")
> > > >
> > > > However, I could not find any definition for these macros. Nor does
> > > > the package docs mention what to install in order to get them.
> > >
> > > [...]
> > > This Typeable macro issue is due to the Typeable.h header, which used
> > > to be distributed with GHC. It's not distributed with the GHC head
> > > anymore -- are you using ghc 6.5?
> >
> > Ah, yes. This is because I want to build hIDE. The hIDE readme suggested
> > to use http://scannedinavian.com/~lemmih/hs-plugins, but scannedinavian
> > seems to be dead. Anyway, in the meantime the suggestion has been
> > fixed, it now points to http://darcs.haskell.org/~lemmih/hs-plugins
> > which I just downloaded. So, maybe all troubles go away now.
> >
> > > You can work around it by copying Typeable.h from the darcs
> > > repository into the include/ directory of your ghc distribution, or
> > > using ghc 6.4.x
> >
> > I'll try the version above and see what I get. If it doesn't work, I'll
> > try copying the Typeable.h file from somewhere.
> >
> > Many thanks!
> >
> > Ben
> > _______________________________________________
> > Haskell mailing list
> > Haskell at haskell.org
> > http://www.haskell.org/mailman/listinfo/haskell
>
More information about the Haskell
mailing list