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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -