Please help me to install Haskell with support of OpenGL and GLUT. I can't seem to find a tutorial that works in any place. I found some tutorials, but I get errors.
The errors are many like the following :
Configuring GLUT-2.2.2.1... Setup.hs: At least the following dependencies are missing: OpenGL >=2.3, StateVar -any, Tensor -any
Edit 1: OS : Windows 7 Professional with SP1. I'm using Haskell platform and the following components aren't installed by default.
Edit 2: Cabal isn't installed, just checked the list of packages installed with haskell platform, and had to install it by hand.
Both OpenGL and GLUT are included in the Haskell Platform. Simply visit http://hackage.haskell.org/platform/ to find out how to install it.
Whenever you need to use Haskell, it is always best to install the Haskell Platform instead of just downloading the GHC compiler and installing it on its own. The Haskell Platform includes both GHC and also the most common libraries that you'll need. It also gives you access to the cabal-install program, which can be used to easily install any other packages you might need (When you have installed the platform, use cabal help
in a terminal to find out more).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With