无法在OS X上安装OpenGLRaw-1.1.0.1

时间:2011-04-11 19:18:40

标签: opengl haskell cabal

当我跑步时

$ cabal install OpenGLRaw

我收到以下错误。

... ... ...

cbits/HsOpenGLRaw.c:78:20:
     error: stdlib.h: No such file or directory

cbits/HsOpenGLRaw.c:79:19:
     error: dlfcn.h: No such file or directory
cbits/HsOpenGLRaw.c: In function ‘hs_OpenGLRaw_getProcAddress’:

cbits/HsOpenGLRaw.c:97:0:
     error: ‘NULL’ undeclared (first use in this function)

cbits/HsOpenGLRaw.c:97:0:
     error: (Each undeclared identifier is reported only once

cbits/HsOpenGLRaw.c:97:0:  error: for each function it appears in.)

cbits/HsOpenGLRaw.c:104:0:
     warning: implicit declaration of function ‘dlopen’

cbits/HsOpenGLRaw.c:104:0:
     error: ‘RTLD_LAZY’ undeclared (first use in this function)

cbits/HsOpenGLRaw.c:104:0:
     warning: assignment makes pointer from integer without a cast

cbits/HsOpenGLRaw.c:115:0:
     warning: implicit declaration of function ‘dlsym’

cbits/HsOpenGLRaw.c:115:0:
     warning: assignment makes pointer from integer without a cast

cbits/HsOpenGLRaw.c:126:0:
     warning: return makes pointer from integer without a cast
cabal: Error: some packages failed to install:
OpenGLRaw-1.1.0.1 failed during the building phase. The exception was:
ExitFailure 1

我刚安装了适用于OS X的最新Haskell平台并运行cabal update以获得良好的衡量标准。

1 个答案:

答案 0 :(得分:1)

在我看来ticket #5011 - Mac + GHC 7.0.2上的XCode 4无法链接。

这在GHC 7.0.3中得到修复,这将是4月中旬发布的Haskell平台的一部分。

另一种解决方案是降级到2010.2 Haskell平台。