caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "chris.danx" <chris.danx@ntlworld.com>
To: Jun.Furuse@inria.fr
Cc: Caml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] Building camlimages programs on deb (and linux)
Date: Mon, 24 Nov 2003 23:02:26 +0000	[thread overview]
Message-ID: <3FC28E02.70205@ntlworld.com> (raw)
In-Reply-To: <lwd6bhjy0h.wl@inria.fr>

Jun.Furuse@inria.fr wrote:
> Hello,

Hi

> Duh, I cannot tell what is wrong. Even we, the authors, do not know
> about the script "camlimages-config". It is not from  the official
> camlimages distribution. (I guess it comes from Debian package, which
> is out of my control.) 

It doesn't come with debian (i wrote it), it simply echoes

-I /usr/lib/ocaml/3.07/camlimages ci_core.cma ci_gif.cma ci_jpeg.cma 
ci_tiff.cma ci_bmp.cma ci_ppm.cma ci_png.cma ci_ps.cma ci_xpm.cma

as in

#!/bin/sh
LIBDIR=/usr/lib/ocaml/3.07/camlimages

echo -I $LIBDIR ci_core.cma ci_gif.cma ci_jpeg.cma ci_tiff.cma 
ci_bmp.cma ci_ppm.cma ci_png.cma ci_ps.cma ci_xpm.cma



> I always use $(CAMLIMAGESLIBS) defined inside
> /usr/local/lib/ocaml/camlimages/Makefile.config for linking the
> camlimages to my programs. It should list all the libraries required.
> 
> BTW, it sounds still strange that you fail to link even with -lX11.
> Please send me what happens (including error messages) if you execute
> the following:
> 
> 	ocamlc -custom -verbose `camlimages-config` 
> 	-cclib "-L/usr/X11R6/lib -lxvthumb -lXpm 
> 	-lX11 -lpng -lfreetype -lz -ljpeg -lgif"

It fails on xvthumb, but if I take that out it links ok. :?

ocamlc -custom -verbose `camlimages-config` -cclib "-L/usr/X11R6/lib 
-lXpm -lX11 -lpng -lfreetype -ljpeg -lgif" monochrome.ml
+ gcc -Wl,-E -o 'a.out' -I'/usr/lib/ocaml/3.07' -L/usr/X11R6/lib 
-Wl,-rpath,/usr/X11R6/lib /tmp/camlprim88d632.c 
'-L/usr/lib/ocaml/3.07/camlimages' '-L/usr/lib/ocaml/3.07' '-lci_xpm' 
'-lXpm' '-lci_png' '-lpng' '-lz' '-lci_tiff' '-ltiff' '-lci_jpeg' 
'-ljpeg' '-lci_gif' '-lgif' '-L/usr/X11R6/lib' '-lXpm' '-lX11' '-lpng' 
'-lfreetype' '-ljpeg' '-lgif' -lcamlrun -lm  -ldl -lcurses -lpthread

with -lxvthumb, it gives an error saying it can't find the lib (it's not 
on the system).

Also if -custom is removed it fails.

> Camlimages libraries are separated into pieces so that you can link
> the libraries you really want. If you are not interested to read/write
> xpm images in your program, you need not to link ci_xpm.cma.

Yeah I know.  It's just that if I wanted to read xpm images, I'd have 
had a problem.


Thanks,
Chris

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2003-11-24 23:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <D4DBD8568F05D511A1C20002A55C008C11AC0796@uswaumsx03medge.med.ge.com>
2003-11-24 18:48 ` chris.danx
2003-11-24 20:46   ` Jun.Furuse
2003-11-24 23:02     ` chris.danx [this message]
2003-11-25 10:42       ` Jun.Furuse
2003-11-24  0:27 chris.danx
2003-11-24  1:08 ` Issac Trotts
2003-11-24 17:34   ` chris.danx
2003-11-24 18:50     ` Matt Gushee
2003-11-24 19:10       ` chris.danx

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FC28E02.70205@ntlworld.com \
    --to=chris.danx@ntlworld.com \
    --cc=Jun.Furuse@inria.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).