Closed ashishnegi closed 9 years ago
You are running the right command, but you need OpenGL installed on your system first. From the error message:
This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version)
Hello,
but you need OpenGL installed on your system first
Right.
It could also be that GL is installed but not found on your system.
I had the problem for actionkid
which is the main dependency here.
I solved it by using cabal's extra options --extra-lib-dirs
, --extra-include-dirs
.
cabal install --extra-lib-dirs=/nix/store/mnhsckfydh097i747rsgxdrhlyv48vh1-glu-9.0.0/lib --extra-lib-dirs=/run/opengl-driver/lib --extra-lib-dirs=/nix/store/ffk2phimb6kgcn61jkx2hb5gm58qbdl6-freeglut-2.8.1/lib --extra-include-dirs=/nix/store/mnhsckfydh097i747rsgxdrhlyv48vh1-glu-9.0.0/include --extra-include-dirs=/run/opengl-driver/include --extra-include-dirs=/nix/store/ffk2phimb6kgcn61jkx2hb5gm58qbdl6-freeglut-2.8.1/include
(So for other beginners, this could help)
The path i used should be changed according to your platform...
Cheers,
Note For nix and nixos' users, this is not the right solution though... Use shell.nix..
Thanks @ardumont ! I'm going to close this issue for now.
This is the log error :
I am using sandbox . I am new to haskell and just following guidelines about how to compile the projects.
It would be great if you put the steps in Readme.md