haskell-opengl / OpenGL

Haskell bindings to OpenGL
http://www.haskell.org/haskellwiki/OpenGL
BSD 3-Clause "New" or "Revised" License
147 stars 26 forks source link

What Debian extensions are required? #83

Closed chrissound closed 7 years ago

chrissound commented 7 years ago
Downloading OpenGLRaw-3.2.2.0...
Configuring OpenGLRaw-3.2.2.0...
Failed to install OpenGLRaw-3.2.2.0
Build log ( /root/.cabal/logs/OpenGLRaw-3.2.2.0.log ):
cabal: Entering directory '/tmp/cabal-tmp-7/OpenGLRaw-3.2.2.0'
Configuring OpenGLRaw-3.2.2.0...
cabal: Missing dependency on a foreign library:
* Missing C library: GL
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
cabal: Leaving directory '/tmp/cabal-tmp-7/OpenGLRaw-3.2.2.0'
cabal: Error: some packages failed to install:
GLURaw-2.0.0.2 depends on OpenGLRaw-3.2.2.0 which failed to install.
GLUT-2.7.0.10 depends on OpenGLRaw-3.2.2.0 which failed to install.
OpenGL-3.0.1.0 depends on OpenGLRaw-3.2.2.0 which failed to install.
OpenGLRaw-3.2.2.0 failed during the configure step. The exception was:
ExitFailure 1
gloss-1.10.2.3 depends on OpenGLRaw-3.2.2.0 which failed to install.
gloss-rendering-1.10.3.3 depends on OpenGLRaw-3.2.2.0 which failed to install.

Using the docker image from https://hub.docker.com/_/haskell/.

What extensions do I need to install for debian jessie?

svenpanne commented 7 years ago

I don't have a Jessie at hand, but I guess you need https://packages.debian.org/jessie/libgl1-mesa-glx (or some variation of it, I don't fully understand how Debian packages OpenGL stuff). The development package https://packages.debian.org/jessie/libgl1-mesa-dev should not be needed, at least I hope so... :-)

chrissound commented 7 years ago

I solved this with a apt-get -y update and apt-get -y install freeglut3-dev.

Thank you!