Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: Missing C libraries on windows (Elise Huard)
2. Re: Missing C libraries on windows (Magnus Therning)
3. Re: Missing C libraries on windows (Henk-Jan van Tuyl)
----------------------------------------------------------------------
Message: 1
Date: Thu, 7 May 2015 11:37:02 +0200
From: Elise Huard <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Missing C libraries on windows
Message-ID:
<cahfycqmxk1yzrvrpbb8c5e4wf8g5jklcxqsd9vhg06gufdj...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
note that they also add
extra-libraries:
so that's also worth adding.
On 7 May 2015 at 11:35, Elise Huard <[email protected]> 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 <[email protected]> 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
>> [email protected]
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>>
------------------------------
Message: 2
Date: Thu, 7 May 2015 11:55:38 +0200
From: Magnus Therning <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Missing C libraries on windows
Message-ID:
<CAAExw5vFMdzdw4wkBr9kdO_LGLTPTAf39Z1LxeTrp5dMHdrK=w...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
On 7 May 2015 at 01:14, Cameron P-B <[email protected]> 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.
One easy way out of it is to switch to using Linux (e.g. in a VM).
That is, unless you absolutely have to use Windows.
/M
--
Magnus Therning OpenPGP: 0xAB4DFBA4
email: [email protected] jabber: [email protected]
twitter: magthe http://therning.org/magnus
------------------------------
Message: 3
Date: Thu, 07 May 2015 12:10:52 +0200
From: "Henk-Jan van Tuyl" <[email protected]>
To: [email protected], "Cameron P-B" <[email protected]>
Subject: Re: [Haskell-beginners] Missing C libraries on windows
Message-ID: <op.xx9fwioqpz0j5l@alquantor>
Content-Type: text/plain; charset=iso-8859-15; format=flowed;
delsp=yes
On Thu, 07 May 2015 01:14:59 +0200, Cameron P-B <[email protected]> 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.
I usually use commands like:
Set LIBRARY_DIR=C:\Libs
Set PATH=%LIBRARY_DIR%\bin;%PATH%
Set LIBRARY_PATH=%LIBRARY_DIR%\lib
Set C_INCLUDE_PATH=%LIBRARY_DIR%\include\SDL2;%LIBRARY_DIR%\include
For C++ libraries you need to set CPLUS_INCLUDE_PATH as well.
In general it is not advisable to copy DLLs to the Windows directory, this
might result in incompatibility problems (if other applications use
different versions of the DLLs); install the DLLs in the same directory as
the executable.
Regards,
Henk-Jan van Tuyl
--
Folding@home
What if you could share your unused computer power to help find a cure? In
just 5 minutes you can join the world's biggest networked computer and get
us closer sooner. Watch the video.
http://folding.stanford.edu/
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 83, Issue 8
****************************************