HOpenGL install help

View: New views
2 Messages — Rating Filter:   Alert me  

HOpenGL install help

by Chris Perez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
http://www.haskell.org/mailman/listinfo/hopengl

Re: HOpenGL install help

by jamin1001 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> 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@...
> 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.
_______________________________________________
HOpenGL mailing list
HOpenGL@...
http://www.haskell.org/mailman/listinfo/hopengl
LightInTheBox - Buy quality products at wholesale price