2012-11-18 73 views
3

我試圖用opam安裝模塊攝像機。當我在我的殼推出opam install camlimages,camlimages的編譯失敗,我有這樣的消息:使用OPAM安裝攝像機

* 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 

如果有人可以幫助我,這會是很酷,因爲我需要這個模塊的一個項目。 我在頗富獅子(10.8.2版)

+0

請勿將標記「caml」用於OCaml問題。 CAML愛好者使用它。 http://stackoverflow.com/tags/caml/info –

回答

4

有特別此消息已CAML的列表上的整個討論,用:

Message on Caml-list

,給出了一個鏈接到包含應該在Mac OS X上編譯的camlimages的存儲庫。

+0

這很奇怪,因爲我看了你給的網站,安裝是成功的,但是當我執行一個例子來檢查模塊camlimages時,我有消息「錯誤錯誤:未綁定的模塊Graphic_image「。 – afk