HDirect for GHC 5.04

Sigbjorn Finne sof@galois.com
Wed, 21 Aug 2002 13:28:53 -0700


Thanks, fixed in the current sources. To make it
work for you, you need supply defns of libdir
and datadir when doing 'install-pkg', e.g.,

  foo$ make install-pkg libdir=`pwd` datadir=`pwd`

(make sure you remove HDirect.pkg first.)

This is all somewhat academic to you though, as you're
really just interested in the COM version of the libraries
in comlib/ (for which 'make install-pkg' does the right thing.)

--sigbjorn

----- Original Message -----
From: "Paul Moore" <gustav@morpheus.demon.co.uk>
To: "Sigbjorn Finne" <sof@galois.com>
Cc: <glasgow-haskell-users@haskell.org>
Sent: Wednesday, August 21, 2002 08:36
Subject: Re: HDirect for GHC 5.04


> "Sigbjorn Finne" <sof@galois.com> writes:
>
> > http://galois.com/~sof/hdirect-0.19-src.tar.gz
> >
> > contains a source snapshot that works with 5.04.
> > Building it isn't hard...if it turns out to be, please
> > let me know.
>
> Spoke too soon. The build went fine, but when I tried installing the
> packages, I got the following error:
>
> bash-2.05$ cd lib
> bash-2.05$ make install-pkg
> Reading package info from stdin... done.
> Expanding embedded variables...done.
> `' doesn't exist or isn't a directory
> Unable to install 'hdirect' package for GHC - perhaps GHC isn't installed.
> Try running ghc-pkg utility "ghc-pkg -a < /HDirect.pkg"
> when GHC is installed.
>
> I have GHC installed (from the Windows installer). Running the ghc-pkg
> command manually didn't help. (Nor did using "HDirect.pkg" rather than
> "/HDirect.pkg" - isn't the initial slash wrong?)
>
> I'm not sure where to go next - I don't understand ghc-pkg, so if
> there's any information I can provide which might help, let me know.
>
> Thanks,
> Paul.
>
> PS In case it helps, here's HDirect.pkg:
>
> Package { name = "hdirect",
>           import_dirs  = [""],
>           source_dirs  = [],
>           library_dirs = [""],
>           hs_libraries = ["HShdirect"],
>           extra_libraries = ["kernel32"],
>           include_dirs = [""],
>           c_includes = [],
>           package_deps = ["base","lang"],
>           extra_ghc_opts = [],
>           extra_cc_opts = [],
>           extra_ld_opts = []}