<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/11/98f4e5ad6d2d610665f49b28f351ad5e"
  from="chris.danx &lt;chris.danx@n...&gt;"
  author="chris.danx"
  date="2003-11-24T23:02:37"
  subject="Re: [Caml-list] Building camlimages programs on deb (and linux)"
  prev="2003/11/0439c656b2aeef77b7c5949be7a9b56d"
  next="2003/11/6778b4e18c4db55e7461cb9af43857ef"
  prev-in-thread="2003/11/0439c656b2aeef77b7c5949be7a9b56d"
  next-in-thread="2003/11/342efbf5beea4a93915156e485701317"
  prev-thread="2003/11/2657135bcecea23ebab1a637490ae98e"
  next-thread="2003/11/04de2adad170aa7cd1c0961e4ed73162"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Re: [Caml-list] Building camlimages programs on deb (and linux)">
<msg 
  url="2003/11/541d390c3dc1718e433c58c401e2269f"
  from="chris.danx &lt;chris.danx@n...&gt;"
  author="chris.danx"
  date="2003-11-24T18:49:19"
  subject="Re: [Caml-list] Building camlimages programs on deb (and linux)">
<msg 
  url="2003/11/0439c656b2aeef77b7c5949be7a9b56d"
  from="Jun.Furuse@i..."
  author="Jun.Furuse@i..."
  date="2003-11-24T20:46:21"
  subject="Re: [Caml-list] Building camlimages programs on deb (and linux)">
<msg 
  url="2003/11/98f4e5ad6d2d610665f49b28f351ad5e"
  from="chris.danx &lt;chris.danx@n...&gt;"
  author="chris.danx"
  date="2003-11-24T23:02:37"
  subject="Re: [Caml-list] Building camlimages programs on deb (and linux)">
<msg 
  url="2003/11/342efbf5beea4a93915156e485701317"
  from="Jun.Furuse@i..."
  author="Jun.Furuse@i..."
  date="2003-11-25T10:42:12"
  subject="Re: [Caml-list] Building camlimages programs on deb (and linux)">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
Jun.Furuse@inria.fr wrote:
&gt; Hello,

Hi

&gt; Duh, I cannot tell what is wrong. Even we, the authors, do not know
&gt; about the script "camlimages-config". It is not from  the official
&gt; camlimages distribution. (I guess it comes from Debian package, which
&gt; 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



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

&gt; Camlimages libraries are separated into pieces so that you can link
&gt; the libraries you really want. If you are not interested to read/write
&gt; 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

</contents>

</message>

