<?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/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)"
  prev="2003/11/babbf41d038dd6ec6ad2c115fbe68680"
  next="2003/11/a3a7ab4e74ebbf072bc450a95a4ba3a7"
  prev-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>
&gt; &gt; BTW, it sounds still strange that you fail to link even with -lX11.
&gt; &gt; Please send me what happens (including error messages) if you execute
&gt; &gt; the following:
&gt; &gt; 
&gt; &gt; 	ocamlc -custom -verbose `camlimages-config` 
&gt; &gt; 	-cclib "-L/usr/X11R6/lib -lxvthumb -lXpm 
&gt; &gt; 	-lX11 -lpng -lfreetype -lz -ljpeg -lgif"
&gt; 
&gt; It fails on xvthumb, but if I take that out it links ok. :?

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

Everyhing seems to be ok.
 
&gt; Also if -custom is removed it fails.

Yes, it also happens in my system, too. This is due to a bug that 
the dynlink options of ci_xpm.cma lack -lX11. I did not notice
this bug since I always linked ci_xpm.cma with ci_graphics.cma
together, which links -lX11. I will fix this soon.

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

