Leider bekomme ich kein einfaches Beispielprogramm von this OpenGL-Tutorial zu arbeiten.nixos + haskell + opengl (Voraussetzung)
ghc --make gfx.hs
Could not find module ‘Graphics.UI.GLUT’
[..]
Dann habe ich versucht, die folgenden:
cabal install GLUT
Warning: The package list for 'hackage.haskell.org' is 44.1 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
Configuring OpenGLRaw-3.2.2.0...
Failed to install OpenGLRaw-3.2.2.0
Build log (/home/m/.cabal/logs/OpenGLRaw-3.2.2.0.log):
Configuring OpenGLRaw-3.2.2.0...
setup-Simple-Cabal-1.22.5.0-x86_64-linux-ghc-7.10.3: 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: 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
Es ist wie die fehlende C-Bibliothek aussieht, ist das Problem. Ich benutze nixOS, weiss irgendjemand, welche Schritte ich machen müsste, damit das funktioniert?
Siehe meine [Antwort] (http://stackoverflow.com/questions/41527061/nixos-haskell-opengl-problems-with-building-and-running-opengl-programs/41588628#41588628) auf eine ähnliche Frage. –