Followers

Tuesday 7 February 2017

Haskell with OpenGL. (Unknown GLUT entry glutInit)

Source: stackoverflow.com --- Monday, February 06, 2017
I need help getting OpenGL and GLUT to work using Haskell. Running a Windows 10 system. I have installed the OpenGL package using cabal , but when I try to run the following program (and similar tutorial-like short programs): import Graphics.UI.GLUT main :: IO () main = do (_progName, _args) <- getArgsAndInitialize _window <- createWindow "Hello World" displayCallback $= display mainLoop display :: DisplayCallback display = do clear [ ColorBuffer ] flush All I get is: main: user error (unknown GLUT entry glutInit) I have looked around for solutions but come up empty handed. ...



from Windows http://ift.tt/2jUlIZ6

2 comments:

  1. http://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MinGW.zip

    take the bin/x64/freeglut.dll, put it somewhere in your path (and name it to glut32.dll) then run your program; this works for me in windows 10

    to test it out:

    git clone https://github.com/benl23x5/gloss

    cd gloss

    stack setup

    stack build

    stack exec gloss-boids

    then you should see the boids program

    ReplyDelete
  2. Surviving Retirement: Haskell With Opengl. (Unknown Glut Entry Glutinit) >>>>> Download Now

    >>>>> Download Full

    Surviving Retirement: Haskell With Opengl. (Unknown Glut Entry Glutinit) >>>>> Download LINK

    >>>>> Download Now

    Surviving Retirement: Haskell With Opengl. (Unknown Glut Entry Glutinit) >>>>> Download Full

    >>>>> Download LINK RT

    ReplyDelete