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
http://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MinGW.zip
ReplyDeletetake 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
Surviving Retirement: Haskell With Opengl. (Unknown Glut Entry Glutinit) >>>>> Download Now
ReplyDelete>>>>> 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