opengl - GLUT Error in Haskell Program -
i'm using opengl haskell. tried sample program, compiled using ghc compiler when run it, error
user error (unknown glut entry glutinit)
i searched of answers related problem occurring mac os x , windows. getting error on ubuntu 15.
this question asked related windows
below sample program used.
import graphics.rendering.opengl import graphics.ui.glut main :: io () main = (_progname, _args) <- getargsandinitialize _window <- createwindow "hello world" displaycallback $= display mainloop display :: io () display = clear [ colorbuffer ]
the problem system missing required shared library. on ubuntu (and similar systems), can install simple command in terminal:
sudo apt-get install freeglut3
Comments
Post a Comment