<?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/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)"
  prev="2003/11/04de2adad170aa7cd1c0961e4ed73162"
  next="2003/11/98f4e5ad6d2d610665f49b28f351ad5e"
  prev-in-thread="2003/11/541d390c3dc1718e433c58c401e2269f"
  next-in-thread="2003/11/98f4e5ad6d2d610665f49b28f351ad5e"
  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>
Hello,
 
&gt; ocamlc `camlimages-config` -cclib "-L/usr/X11R6/lib -lxvthumb -lXpm 
&gt; -lX11 -lpng -lfreetype -lz -ljpeg -lgif"

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.) 

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"

&gt; If i leave ci_xpm.cma off, it links.  I don't know if it's safe to leave 
&gt; it off.  I suppose if I don't use XPM it'll be ok, but it's not the 
&gt; greatest solution.

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.

Anyway, you found a bug of camlimages. Usually Xpm requires X11, but I
forgot to link it. I will fix the problem.

--
Jun

-------------------
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>

