如何使用 GLUT 和 OpenGL 安装 Haskell?

发布于 2024-12-19 10:49:26 字数 591 浏览 3 评论 0原文

请帮我安装支持 OpenGL 和 GLUT 的 Haskell。我似乎找不到适用于任何地方的教程。 我找到了一些教程,但出现错误。

  1. 这里有一个
  2. 第二这里有一个

错误有很多,如下所示:

配置 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.

  1. One here
  2. Second one here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鲜肉鲜肉永远不皱 2024-12-26 10:49:26

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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文