[Haskell-cafe] QuesoGLC / cabal extra-libraries not used?
Peter Verswyvelen
bugfact at gmail.com
Wed Apr 1 06:04:51 EDT 2009
Yes, that's it. So I better more all the tutorials and demos into an
Examples folder.
Thanks Duncan, that should fix it, I'll test it tonight.
On Wed, Apr 1, 2009 at 11:12 AM, Duncan Coutts
<duncan.coutts at worc.ox.ac.uk>wrote:
> On Wed, 2009-04-01 at 00:32 +0200, Peter Verswyvelen wrote:
> > I'm busy writing my first library for Hackage - a wrapper for
> > QuesoGLC, yet another OpenGL font renderer using Freetype2. So if
> > someone else is already doing this, stop doing so :-)
> >
> >
> > I've succesfully build the libquesoglc.a library from C source, and
> > can build my Haskell tutorial file using
> >
> >
> > ghc --make -lquesoglc Tutorial1.hs
> >
> >
> >
> > But I can't drop the -lquesoglc, then I get linker errors.
> >
> >
> > However I did specify extra-libraries: quesoglc in the cabal file, and
> > the package file got configured, build and installed
> >
> >
> > So I must be doing something wrong, but can't figure out what.
>
> You're not doing something like building the Tutorial1.hs from the top
> of the build tree of your package? If so it'll be picking up the
> local .hs files and ignoring the built and registered version of the
> package.
>
> You can check, use something like:
>
> ghc --make Tutorial1.hs -i \
> -hide-all-packages -package base -package QuesoGLC
>
> So that you know it must only be looking at the installed QuesoGLC
> package.
>
> Duncan
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090401/ecee27ce/attachment.htm
More information about the Haskell-Cafe
mailing list