[HOpenGL] HOpenGL install help
Jamin A. Ohmoto-Frederick
jamin1001 at yahoo.com
Wed Feb 21 06:24:49 EST 2007
Hi Chris,
If you use a newer version of GHC (>= v6.4 or so) you
shouldn't need to install OpenGL, and should be able
to just do:
ghc --make test.hs
-- test.hs:
import Graphics.Rendering.OpenGL
import Graphics.UI.GLUT
main = do
_ <- getArgsAndInitialize
createWindow "Hello World"
displayCallback $= display
mainLoop
display = do
clear [ColorBuffer]
flush
Did that work?
--- Chris Perez <astroboyqu at gmail.com> wrote:
> Hello,
>
> I am writing a graphical program in Haskell as a
> final project for
> university to show that it is not a "toy language".
> Unfortunatly when trying
> to install HOpenGL I get past the ./configure part
> but then fail with errors
> on the make depend and make all or even make
> install. I can't seem to locate
> the problem or where the errors are coming from.
>
> I get the following error report:
>
> module 'Main' is defined in multiple files: Info.hs
>
> QBSP.hs
>
> QuakeMovement.hs
>
> TestGLUT.hs
>
> make[2]: *** [depend] Error 1
> make[1]: *** [depend] Error 1
> make: *** [depend] Error 1
> I would really like to use HOpenGL for this project,
> so If anyone knows how
> I can solve this I would love to know.
>
> --
> Without Wax,
> Chris
> > _______________________________________________
> HOpenGL mailing list
> HOpenGL at haskell.org
> http://www.haskell.org/mailman/listinfo/hopengl
>
____________________________________________________________________________________
Have a burning question?
Go to www.Answers.yahoo.com and get answers from real people who know.
More information about the HOpenGL
mailing list