ocaml - 使用 OPAM 安装 camlimages

标签 ocaml opam

我正在尝试使用 opam 安装模块 camlimages。当我在我的 shell 中启动 opam install camlimages 时,camlimages 的编译失败并且我收到此消息:

* pngwrite.c: In function ‘write_png_file_rgb’:


* pngwrite.c:65: error: dereferencing pointer to incomplete type
* pngwrite.c: In function ‘write_png_file_index’:
* pngwrite.c:174: error: dereferencing pointer to incomplete type
* *** omake: targets were not rebuilt because of errors:
*    src/pngwrite.o
*       depends on: src/pngwrite.c

'opam install camlimages' failed

如果有人帮助我,那就太好了,因为我的项目需要这个模块。 我在 Moutain Lion(版本 10.8.2)上

最佳答案

在 caml-list 上有一个完整的讨论,特别是这条消息:

Message on Caml-list

它提供了一个指向包含应在 Mac OS X 上编译的 camlimages 的存储库的链接。

关于ocaml - 使用 OPAM 安装 camlimages,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13440741/

相关文章:

scala - 为什么 Scala 允许嵌套数据结构,如 List 或 Array

string - ocaml 中的错误链接模块

ocaml - camlzip : "This package relies on external (system) dependencies that may be missing."

centos - 找不到 Ocamlfind 命令

dependencies - 使用 Opam 管理项目依赖

ubuntu - emacs ocaml REPL : "Searching for program: no such file or directory, ocaml"

ocaml - 如何强制 OCaml 推断出更通用的类型?

emacs - 确定在 emacs 中定义了哪个函数的模块?

list - OCaml:可以包含两种类型的列表?

ocaml - 从防火墙后面使用 opam