[HOpenGL] Installation (ok!), but ...
Patrick Scheibe
mai99dnn at studserv.uni-leipzig.de
Mon May 2 13:36:05 EDT 2005
Hi,
Ok, there are some things you have to know:
1. You have to tell ghc, that you want the HOpenGl Package when you compile
some stuff that needs HOpenGL. You can do this with
ghc -package OpenGL
2. It is maybe a good idea to use the --make option. That checks the
dependencies.
I think that will not solve your problem. For some reason the ghc doesn't find
the right files. It looks like that you use the (old) samples from the
separate HOpenGL package.
You have to use the samples from the ghc source under:
ghc-6.4/libraries/GLUT/examples/RedBook/Planet.hs
That is very important because the HOpenGL package from the website is very
different from the ghc HOpenGL package. These two things have different
APIs...
So try this:
Go to the ghc website and download the ghc6.4 source. Go to the path:
libraries/GLUT/examples/RedBook/ and then try to compile the sample with
ghc --make -package OpenGL Planet.hs
This should work.
Cheers
Patrick
On Monday 02 May 2005 16:58, Sandra Fontes wrote:
> Hi,
>
> I installed GHC 6.4, but I don´t know how to running a program, like
> Planet.hs. I had this problem:
>
> [root at medusaLinux redbook_HS]# ghc Planet.hs -v
> Glasgow Haskell Compiler, Version 6.4, for Haskell 98, compiled by GHC
> version 5.04.3 Using package config file:
> /usr/local/lib/ghc-6.4/package.conf
> Hsc static flags: -static
> *** Checking old interface for Main:
> *** Parser:
> *** Renamer/typechecker:
> Planet.hs:15:0:
> Failed to load interface for `GL':
> Could not find module `
> GL':
> locations searched:
> GL.hi
> GL.hi-boot
> *** Deleting temp files
> Deleting: /tmp/ghc3765.s
> Warning: deleting non-existent /tmp/ghc3765.s
>
> Thanks,
> Sandra
>
> Lemmih <lemmih at gmail.com> wrote:
>
> On 4/28/05, Sandra Fontes wrote:
> > Hi,
> >
> > At installation of HOpenGL, I had this problem:
>
> [snip]
>
> HOpenGL is not a stand-alone package any more. Just install GHC 6.4
> and it'll be there.
More information about the HOpenGL
mailing list