[Haskell-cafe] How to install HOpenGL to Windows?

Peter Verswyvelen bugfact at gmail.com
Wed Apr 8 15:02:22 EDT 2009


1) install "cabal-install". download this
file<http://www.haskell.org/cabal/release/cabal-install-0.6.2/cabal.exe>
and
put it in a directory in your %PATH%

2) to compile most libraries on Hackage that link to C libraries via the
FFI, you need to install MinGW and MSYS, as Jeff said explained
here<http://netsuperbrain.com/blog/posts/freeglut-windows-hopengl-hglut/>
(many
thanks to David Sankel for taking the time to write this). After you
installed this, you have UNIX like environment and the GNU C compiler suite.

3) start MSYS, and type "cabal install opengl". This will download,
configure, build and install opengl from hackage.

this works for me.

Instead of GLUT you can also use GLFW; the install this, just type "cabal
install GLFW"

On Wed, Apr 8, 2009 at 7:14 AM, Alexandr N. Zamaraev <
tonal.promsoft at gmail.com> wrote:

> I get darcs source HOpenGL
> Try runghc Setup.hs configure
> I see:
> Configuring OpenGL-2.3...
> Warning: The 'build-type' is 'Configure' but there is no 'configure'
> script.
> Setup.hs: configure script not found.
>
> runghc Setup.hs build wrote:
> Preprocessing library OpenGL-2.3...
> Building OpenGL-2.3...
>
> Graphics\Rendering\OpenGL\GL\ BasicTypes.hs:24:0:
>     HsOpenGLConfig.h: No such file or directory
>
> How to build HOpenGL?
>
> Os Windows Vista Home Ru + sp
> ghc 6.10.1
> ______________________________ _________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090408/7df84259/attachment.htm


More information about the Haskell-Cafe mailing list