Cabal-1.4: library-dirs and include-dirs missing from package
description after install
Alistair Bayley
alistair at abayley.org
Tue Jun 17 06:50:10 EDT 2008
> I cannot reproduce this problem. It works fine for me.
>
> I made a dummy takusen.cabal:
> and your takusen.buildinfo
> I assume you did actually have the above line properly indented. With it
> as it is you get a parse error when reading in the buildinfo file.
Yes, cut'n'paste error.
> So I'll need more precise details on how to reproduce the problem. Is
> there a darcs repo I should use? What commands should I use exactly?
I've pushed the current Setup and .cabal to our repo. You can say:
darcs get http://darcs.haskell.org/takusen
Then do this:
ghc --make Setup
setup configure -fodbc -fsqlite -fpostgres
(note that you need to have these backends on your path; perhaps
just -fodbc -fsqlite for you?)
setup register --gen-pkg-config
I've just done this. Takusen.buildinfo contains:
extra-libraries: odbc32 pq sqlite3
extra-lib-dirs: "C:\\Program Files\\sqlite3\\"
C:/PROGRA~1/POSTGR~1/8.1/lib
includes:
install-includes:
include-dirs: "C:\\Program Files\\sqlite3\\"
C:/PROGRA~1/POSTGR~1/8.1/include
C:/PROGRA~1/POSTGR~1/8.1/include/server
but Takusen-0.8.2.conf has:
import-dirs: "C:\\Program Files\\Haskell\\Takusen-0.8.2\\ghc-6.8.1"
library-dirs: "C:\\Program Files\\Haskell\\Takusen-0.8.2\\ghc-6.8.1"
hs-libraries: HSTakusen-0.8.2
extra-libraries: odbc32 pq sqlite3
extra-ghci-libraries:
include-dirs:
includes:
Alistair
More information about the Libraries
mailing list