[Haskell-cafe] Glut using freeglut and non starndard header / lib location?

Henk-Jan van Tuyl hjgtuyl at chello.nl
Sun Oct 19 17:58:01 EDT 2008


On Sat, 18 Oct 2008 01:19:42 +0200, Marc Weber <marco-oweber at gmx.de> wrote:

> Which is the way to install the glut library with non standard header /
> lib location?
>
> I've tried setting CFLAGS before running
> ./configure
> ./setup configure
>
> and adding the include directory this way
>   include-dirs: include,  
> /nix/store/rz4nfm5qcrjrk0jsr1lxnjwamgxmgip8-freeglut-2.4.0/include
>
> All results in
> checking for GL/glut.h... (cached) no
> checking GLUT/glut.h usability... no
> checking GLUT/glut.h presence... no
> checking for GLUT/glut.h... no
> configure: error: no GLUT header found, so this package cannot be built
>
> The configure script is meant to be run by cabal only?
>
> Marc

Have you tried setting the environment variable C_INCLUDE_PATH? If you set  
it to /include/path, the file glut.h should be in directory  
/include/path/GL

-- 
Regards,
Henk-Jan van Tuyl


--
http://functor.bamikanarie.com
http://Van.Tuyl.eu/
--




More information about the Haskell-Cafe mailing list