Hello, I'm not sure about Cabal, but the following should work (point 4 is the critical step): 1) Download the (Haskell) GLUT source from Hackage ( http://hackage.haskell.org/packages/archive/GLUT/2.1.1.2/GLUT-2.1.1.2.tar.gz ) 2) Unpack it into some directory, for example C:\OpenGL\GLUT-2.1.1.2 (make sure that the path does not contain spaces; MSys does not like them) 3) You will need the header files from the (not-haskell) GLUT source, which you can download form http://www.opengl.org/resources/libraries/glut/glut37.zip Unpacke this too, say C:\OpenGL\GLUT-3.7 4) Set the environment variables (I don't know how to that on Vista, but on XP you can do that using Control Panel / System / ...) C_INCLUDE_PATH to have C:\OpenGL\GLUT-3.7\include and LIBRARY_PATH to have C:\OpenGL\GLUT-3.7\lib 5) You should probably build the (not-haskell) GLUT library, because I guess the binaries are not included in the source; or you can download the binaries from the same place and but them into the directory C:\OpenGL\GLUT-3.7\lib 6) Now you can start MSys and build the Haskell GLUT package from the source: $ runghc Setup.hs configure $ runghc Setup.hs build $ runghc Setup.hs install Cabal install may work too. Of course, all this assuming that you have the OpenGL package already built, and the system can find the OpenGL headers. If not, then do the same for OpenGL (except you won't need the C source, but some kind of SDK instead). And yes, it's painful. OpenGL/GLUT used to be bundled with GHC, but they dropped it (among others) because the library maintainance cost is too high for them; they want to concentrate on the compiler (which is understandable). And the promised "Haskell platform" which should solve the problem is nowhere in sight... Balazs 2009/3/18 Mark Spezzano <mark.spezzano@chariot.net.au>
Hi all,
I’m trying desperately to get OpenGL up and running.
I type
cabal.exe configure and get the following
...
checking GL/glut.h usability... no
checking GL/glut.h presence... no
checking for GL/glut.h... no
checking for GLUT library... no
checking for GL/glut.h... (cached) no
checking GLUT/glut.h usability... no
checking GLUT/glut.h presence... no
checking for GLUT/glut.h... no
configure: error: no GLUT header found, so this package cannot be built
See `config.log' for more details.
Where is it looking for these glut.h files? I’ve tried putting them everywhere in my PATH but msys won’t find them.
Cheers,
Mark Spezzano
No virus found in this outgoing message. Checked by AVG. Version: 7.5.557 / Virus Database: 270.11.18/2008 - Release Date: 17/03/2009 4:25 PM
_______________________________________________ HOpenGL mailing list HOpenGL@haskell.org http://www.haskell.org/mailman/listinfo/hopengl