ad-si/Perspec

Fix execution on Ubuntu 20.04

ad-si opened this issue · 3 comments

ad-si commented
$ stack run -- fix images/doc.jpg
Loaded file images/doc.jpg (1500,880)
with orientation Normal
Starting the app …
freeglut (perspec): illegal glutInit() reinitialization attempt

Used build steps:

https://github.com/feramhq/Perspec/blob/63d1d37a185f85400ed03c7d8527f4becd2b9d8b/.github/workflows/main.yml#L46-L76

Trying to reproduce this problem. I get a slightly different error:

$ stack run -- fix ./images/doc.jpg 
Loaded file /home/jacco/projects/Perspec/images/doc.jpg (1500,880)
with a rotation of 0.0 degrees.
perspec: user error (unknown GLUT entry glutInit)

After apt installing freeglut3 The error changed to the one in the original post:

freeglut (perspec): illegal glutInit() reinitialization attempt
ad-si commented

freeglut and libglfw must be installed.