如何使用 GLUT 和 OpenGL 安装 Haskell?
请帮我安装支持 OpenGL 和 GLUT 的 Haskell。我似乎找不到适用于任何地方的教程。 我找到了一些教程,但出现错误。
错误有很多,如下所示:
配置 GLUT-2.2.2.1... Setup.hs:至少缺少以下依赖项: OpenGL >=2.3、StateVar -any、Tensor -any
编辑 1:操作系统:Windows 7 Professional SP1。 我使用 Haskell 平台,默认情况下未安装以下组件。
编辑2: Cabal 没有安装,只是检查了 haskell 平台安装的软件包列表,并且必须手动安装它。
Please help me to install Haskell with support of OpenGL and GLUT. I can't seem to find a tutorial that works in any place.
I found some tutorials, but I get errors.
The errors are many like the following :
Configuring GLUT-2.2.2.1...
Setup.hs: At least the following dependencies are missing:
OpenGL >=2.3, StateVar -any, Tensor -any
Edit 1: OS : Windows 7 Professional with SP1.
I'm using Haskell platform and the following components aren't installed by default.
Edit 2:
Cabal isn't installed, just checked the list of packages installed with haskell platform, and had to install it by hand.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
OpenGL 和 GLUT 都包含在 Haskell 平台中。只需访问 http://hackage.haskell.org/platform/ 了解如何安装它。
每当您需要使用 Haskell 时,最好安装 Haskell Platform,而不是仅仅下载 GHC 编译器并单独安装。 Haskell 平台包括 GHC 以及您需要的最常见的库。它还使您可以访问 cabal-install 程序,该程序可用于轻松安装您可能需要的任何其他软件包(安装平台后,在终端中使用
cabal help
来了解更多信息)。Both OpenGL and GLUT are included in the Haskell Platform. Simply visit http://hackage.haskell.org/platform/ to find out how to install it.
Whenever you need to use Haskell, it is always best to install the Haskell Platform instead of just downloading the GHC compiler and installing it on its own. The Haskell Platform includes both GHC and also the most common libraries that you'll need. It also gives you access to the cabal-install program, which can be used to easily install any other packages you might need (When you have installed the platform, use
cabal help
in a terminal to find out more).