Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/opengl/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 使用haskell的cabal在mac上安装GLFW时出错_Macos_Opengl_Haskell_Cabal - Fatal编程技术网

Macos 使用haskell的cabal在mac上安装GLFW时出错

Macos 使用haskell的cabal在mac上安装GLFW时出错,macos,opengl,haskell,cabal,Macos,Opengl,Haskell,Cabal,我有Max OSx 10.6.8,Xcode 3.2.6(我的mac版本的最新版本)。我正在使用haskell,但在使用opengl时遇到了问题 我在网上找到了如下建议: cabal update cabal install OpenGL cabal install GLFW 我的错误出现在第三个命令中。我犯了一个致命的错误,上面写着: cabal: Error: some packages failed to install: GLFW-0.4.2 failed during the bui

我有Max OSx 10.6.8,Xcode 3.2.6(我的mac版本的最新版本)。我正在使用haskell,但在使用opengl时遇到了问题

我在网上找到了如下建议:

cabal update
cabal install OpenGL
cabal install GLFW
我的错误出现在第三个命令中。我犯了一个致命的错误,上面写着:

cabal: Error: some packages failed to install:
GLFW-0.4.2 failed during the building phase. The exception was:
ExitFailure 1
下面是错误(为了可读性和空间,我没有包括大量警告):

有什么解决办法的建议吗

这是我尝试加载需要图形的文件时出现的错误:

Could not find module `Graphics.UI.GLFW':

您可以尝试下载glfw源tarball并从命令行构建和安装它,而不是使用cabal。

当您收到
ExitFailure 1
错误时,通常意味着在构建过程的早期出现错误。你能把输出粘贴到
阴谋集团:错误:…
位之前吗?你能读懂我的心思!除了这里显示的警告之外,我还可以查看输出错误。glfw/lib/macosx/macosx_window.c:374:0:error:“TypeLonginger”未声明(首次用于此函数)glfw/lib/macosx/macosx_window.c:374:0:error:(每个未声明的标识符只报告一次glfw/lib/macosx/macosx_window.c:374:0:error:对于它出现在其中的每个函数。)glfw/lib/macosx/macosx_window.c:顶层:glfw/lib/macosx/macosx_window.c:448:0:错误:“kEventWindowDrawContent”未在此处声明(不在函数中)@lrpr:注释的格式与问题和答案的格式不同。你能改为用编辑按钮来修改这些错误吗?
Could not find module `Graphics.UI.GLFW':