[Haskell-cafe] Installing HOpenGL
nominolo at googlemail.com
Sun Jun 24 20:21:34 EDT 2007
I found the examples included in the source code very helpful.
I think the RedBook directory contains the most examples.
If you want to know the modules a package exports you can use, e.g..
$ ghc-pkg describe OpenGL
maintainer: sven.panne at aedion.de
These are the full names of the modules, you have to use to import
them. For GLUT there's one module that re-exports all others, iirc.
On 25 jun 2007, at 01.21, Jimmy Miller wrote:
> I got the packages imported by using the full names (Graphics.UI.GLUT
> and Graphics.Rendering.OpenGL.GL). The compiler doesn't recognize
> names like WindowPosition and WindowSize, but I assume that's because
> the code is so out of date (this is from the 2001 tutorial). I'll
> look in the docs to see how to procede.
> On 6/24/07, Jimmy Miller <captainthunder at gmail.com> wrote:
>> Here it is. Both OpenGL and GLUT are installed:
>> Cabal-184.108.40.206, GLUT-2.1.1, HUnit-1.1.1, OpenGL-2.2.1,
>> QuickCheck-1.0.1, Win32-2.1.1, base-2.1.1, cgi-3001.1.1,
>> filepath-1.0, (ghc-6.6.1), haskell-src-1.0.1, haskell98-1.0,
>> html-1.0.1, mtl-1.0.1, network-2.0.1, parsec-2.0, regex-
>> regex-compat-0.71, regex-posix-0.71, rts-1.0, stm-2.0,
>> template-haskell-2.1, time-1.1.1, xhtml-3000.0.2
>> I tried using --make, but ghc said "could not find module GL"
>> On 6/24/07, Thomas Schilling <nominolo at googlemail.com> wrote:
>> > On 25 jun 2007, at 00.18, Jimmy Miller wrote:
>> > > I've installed ghc 6.6.1, but when I try to compile and OGL
>> > > like this:
>> > >
>> > > ghc -package GLUT ogl.hs
>> > >
>> > > I get the error:
>> > > Failed to load interface for `GLUT':
>> > > Use -v to see a list of the files searched for.
>> > >
>> > > I tried running -v, but it doesn't tell me anything useful.
>> > Can you post the output of "ghc-pkg list"? If that doesn't list
>> > GLUT, then it is not installed (or not correctly). If it is
>> > installed, you can try
>> > ghc --make ogl.hs
>> > That usually takes care of all the required packages (so can
>> avoid a
>> > lot of fiddling around).
>> > / Thomas
>> <a href="http://www.spreadfirefox.com/?
>> rows="3" cols="40">Get Firefox!</a>
> <a href="http://www.spreadfirefox.com/?
> rows="3" cols="40">Get Firefox!</a>
More information about the Haskell-Cafe