[Haskell-cafe] GLFW - Mac OS X

2009-05-07 Thread GüŸnther Schmidt

Hi,

has anybody recently install the GLFW package on Mac OS X?

It won't install on my machine.

Günther

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GLFW - Mac OS X

2009-05-07 Thread Duane Johnson
Yes, it seemed to work fine for me (this was about 2 months ago,  
however).  I'm running Leopard (10.5.6).


-- Duane

On May 7, 2009, at 1:12 PM, GüŸnther Schmidt wrote:


Hi,

has anybody recently install the GLFW package on Mac OS X?

It won't install on my machine.

Günther

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] GLFW - Mac OS X

2009-05-07 Thread Austin Seipp
Excerpts from GüŸnther Schmidt's message of Thu May 07 14:12:04 -0500 2009:
 Hi,
 
 has anybody recently install the GLFW package on Mac OS X?
 
 It won't install on my machine.
 
 Günther
 

I ran into this problem - with GHC 6.10.2 or above if you try to
install GLFW with cabal install you get a host of errors that are
SSE-based and for that matter make absolutely no sense at all, but
they do appear.

The solution (unfortunately) is manually to alter the GLFW.cabal file
to pass the '-msse2' option to gcc *while under OS X*. That is, the
cabal file should look something like:

if os(darwin)
  include-dirs: glfw/include glfw/lib glfw/lib/macosx
  c-sources:
 
--   cc-options: -msse2
  frameworks: AGL Carbon OpenGL

So just add that line marked with '--'.

This will make sure GCC does not die while building. I'm honestly not
sure why this change has occurred, but it's pretty annoying, and I
guess I should probably send a patch to Paul. H. Liu...

Austin
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe