[Haskell-cafe] GHC, GLUT and OS X

Paul L ninegua at gmail.com
Wed Aug 1 22:11:58 EDT 2007


I use x86 10.4.9, and loading it in GHCi doesn't work at all. It hang
after the window pops up.

BTW, compiling it using GHC to binary form seems to work. But
unfortunately this is not acceptable as loading in GHCi is crucial
for the purpose.

I'm doing a port of the SOE Graphics from HGL to OpenGL/GLUT
so that it could perform not only better but be truely cross-platform.
Being able to load and run small code snippets from command line
is likely a must-have for SOE users. The port is already working well
on both Windows and Linux, and I'm hoping the same for OS X.

Should I try another GLUT library instead? Or is it a problem of
loading dynamic libraries on OS X?

Regards,
Paul L

On 8/1/07, Alan Mock <docmach at gmail.com> wrote:
> This works fine for me on PPC and x86 10.4.10.  Which GLUT
> implementation are you using?  Does the code hang or does it crash?
>
> Alan Mock
>
> On Aug 1, 2007, at 7:55 PM, Paul L wrote:
>
> > I'm trying to get cross platform GLUT/OpenGL program to run, but even
> > the simplest code hang on OS X with GHC 6.6 or GHC 6.6.1
> >
> > import Graphics.UI.GLUT
> > import Graphics.Rendering.OpenGL
> >
> > main = do
> >   getArgsAndInitialize
> >   createAWindow "Hello window"
> >   mainLoop
> >
> > createAWindow windowName = do
> >   createWindow windowName
> >   displayCallback $= clear [ColorBuffer]
> >
> > Has anyone been successful at getting GLUT to work on OS X?
> >
> > Regards,
> > Paul L
> > _______________________________________________
> > Haskell-Cafe mailing list
> > Haskell-Cafe at haskell.org
> > http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>


More information about the Haskell-Cafe mailing list