Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Haskell with GLUT and OpenGL?

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.

  1. One here
  2. Second one here

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.

like image 595
radu florescu Avatar asked Jan 19 '23 03:01

radu florescu


1 Answers

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

like image 144
dflemstr Avatar answered Jan 29 '23 21:01

dflemstr