[Haskell-beginners] Missing C libraries on windows

Elise Huard haskell at elisehuard.be
Thu May 7 09:37:02 UTC 2015


note that they also add
extra-libraries:
so that's also worth adding.

On 7 May 2015 at 11:35, Elise Huard <haskell at elisehuard.be> wrote:
> Hi Cameron,
>
> which error message do you get?
> I've hacked my way through such issues by manually adding an
> extra-lib-dirs:
> with the _absolute_ path in the executable or library section of the
> cabal file, so that could be something to try.  It's not a final
> solution obviously, but it would allow you to check whether it works
> at all.
> An example on github of this
> https://github.com/nikki-and-the-robots/nikki/blob/master/src/testsuite/testsuite.cabal#L99
>
> Elise
>
> On 7 May 2015 at 01:14, Cameron P-B <diewlq at gmail.com> wrote:
>> I'm not sure if this is the right place for this, but I've repeatedly run
>> into issues when installing packages through cabal. It complains about
>> missing C libraries and then explains that I can solve the problem by
>> "installing the system package that provides this library". This has never
>> worked for me and so I assume I'm not doing it correctly.
>>
>> For example, I am currently trying to install ftgl. Using
>> --extra-include-dirs and --extra-lib-dirs to point at the lib and include of
>> the c source folder of ftgl doesn't seem to work. Neither did putting the
>> dll's in the path.
>>
>> The tutorial linked from the
>> wiki:[https://noamlewis.wordpress.com/2012/12/16/cabal-install-ftgl-on-windows-and-getting-exes-that-use-it-to-work/]
>>
>> also doesn't work for me. And so I was wondering if anyone has had more
>> recent success with that library and more generally if there were any
>> suggestions as to what I might be doing wrong.
>>
>> _______________________________________________
>> Beginners mailing list
>> Beginners at haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>>


More information about the Beginners mailing list