
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... ] 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.

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/test...
Elise
On 7 May 2015 at 01:14, Cameron P-B
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...]
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@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

note that they also add
extra-libraries:
so that's also worth adding.
On 7 May 2015 at 11:35, Elise Huard
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/test...
Elise
On 7 May 2015 at 01:14, Cameron P-B
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...]
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@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

On 7 May 2015 at 01:14, Cameron P-B
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...]
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: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus

On Thu, 07 May 2015 01:14:59 +0200, Cameron P-B
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 --
participants (4)
-
Cameron P-B
-
Elise Huard
-
Henk-Jan van Tuyl
-
Magnus Therning