Re: cairo pdf

Hendrik Boom <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
On Tue, Apr 22, 2014 at 07:06:20PM +0200, Christophe Troestler wrote:

>     opam install cairo2

I had to do this twice.  The first time I got

default    Downloading https://opam.ocaml.org/archives/cairo2.0.4.6+opam.tar.gz
Downloading https://opam.ocaml.org/archives/cairo2.0.4.6+opam.tar.gz


===== ERROR while installing cairo2.0.4.6 =====
Could not get the source for cairo2.0.4.6:
# opam-version    1.1.1
# os              linux
Cannot download https://opam.ocaml.org/archives/cairo2.0.4.6+opam.tar.gz, please check your connection settings.

The former state can be restored with opam switch import -f "/home/hendrik/.opam/system/backup/state-20140322172340.export"
'opam install cairo2' failed.


But the second time it installed OK.

Next, I tried a build:

ocamlfind ocamlopt -package cairo2 grouptable.ml -o grouptable
File "grouptable.ml", line 1:
Error: No implementations provided for the following modules:
         Cairo referenced from grouptable.cmx
make: *** [pdf] Error 2
hendrik@notlookedfor:~/dv/fun/group$ 

Evidently, I still hae something wrong.  I do still have to 

open cairo

at the start of my code, right?  If I don't I get the other error:

hendrik@notlookedfor:~/dv/fun/group$ make pdf
ocamlfind ocamlopt -package cairo2 grouptable.ml -o grouptable
File "grouptable.ml", line 61, characters 22-32:
Error: Unbound value get_target
make: *** [pdf] Error 2

Could something be wrong with get_target?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.