<?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/50753bf7ad517a0d3bb91feacf43eee4"
  from="Issac Trotts &lt;ijtrotts@c...&gt;"
  author="Issac Trotts"
  date="2003-11-24T01:07:51"
  subject="Re: [Caml-list] Building camlimages programs on deb (and linux)"
  prev="2003/11/a30c170c5922f2f44216ee3e001d0661"
  next="2003/11/5e86685e6180b05d4cfd14dcb86eb57c"
  prev-in-thread="2003/11/a30c170c5922f2f44216ee3e001d0661"
  next-in-thread="2003/11/0846c0670c6d66e04cd9b51e281e5cea"
  prev-thread="2003/11/51df69e6560d82f4c9692ae57b6a0125"
  next-thread="2003/11/5e86685e6180b05d4cfd14dcb86eb57c"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Building camlimages programs on deb (and linux)">
<msg 
  url="2003/11/a30c170c5922f2f44216ee3e001d0661"
  from="chris.danx &lt;chris.danx@n...&gt;"
  author="chris.danx"
  date="2003-11-24T00:22:01"
  subject="[Caml-list] Building camlimages programs on deb (and linux)">
<msg 
  url="2003/11/50753bf7ad517a0d3bb91feacf43eee4"
  from="Issac Trotts &lt;ijtrotts@c...&gt;"
  author="Issac Trotts"
  date="2003-11-24T01:07:51"
  subject="Re: [Caml-list] Building camlimages programs on deb (and linux)">
<msg 
  url="2003/11/0846c0670c6d66e04cd9b51e281e5cea"
  from="chris.danx &lt;chris.danx@n...&gt;"
  author="chris.danx"
  date="2003-11-24T17:34:49"
  subject="Re: [Caml-list] Building camlimages programs on deb (and linux)">
<msg 
  url="2003/11/d7056e171bf4ebf8c6db37acb85893a8"
  from="Matt Gushee &lt;matt@g...&gt;"
  author="Matt Gushee"
  date="2003-11-24T18:50:35"
  subject="Re: [Caml-list] Building camlimages programs on deb (and linux)">
<msg 
  url="2003/11/6217f3629a679650ddd2fe8434880be8"
  from="chris.danx &lt;chris.danx@n...&gt;"
  author="chris.danx"
  date="2003-11-24T19:10:51"
  subject="Re: [Caml-list] Building camlimages programs on deb (and linux)">
</msg>
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
On Mon, Nov 24, 2003 at 12:27:37AM +0000, chris.danx wrote:
&gt; Hi,
&gt; 
&gt; I'm in the process of making a script to build programs with camlimages
&gt; easier but have hit a snag linking... the output is
&gt; 
&gt; Error on dynamically loaded library: /usr/X11R6/lib/libXpm.so.4:
&gt; undefined symbol: XDefaultScreen

$ grep XDefaultScreen /usr/X11R6/lib/*
Binary file /usr/X11R6/lib/libX11.a matches
Binary file /usr/X11R6/lib/libX11.so matches
Binary file /usr/X11R6/lib/libX11.so.6 matches
Binary file /usr/X11R6/lib/libX11.so.6.2 matches
Binary file /usr/X11R6/lib/libXpm.a matches
Binary file /usr/X11R6/lib/libXpm.so matches
Binary file /usr/X11R6/lib/libXpm.so.4 matches
Binary file /usr/X11R6/lib/libXpm.so.4.11 matches

so maybe it will work if you include -lX11 in your link line.

ocamlc `camlimages-config` monochrome.ml -cclib "-L/usr/X11R6/lib 
  -lX11 -lXpm -lpng -lfreetype -lz -ljpeg -gif"

&gt; 
&gt; Does anyone else get this problem?
&gt; 
&gt; ocamlc `camlimages-config` monochrome.ml -cclib "-L/usr/X11R6/lib -lXpm
&gt; -lpng -lfreetype -lz -ljpeg -gif"
&gt; 
&gt; 
&gt; camlimages-config is simply
&gt; 
&gt; #!/bin/sh
&gt; 
&gt; LIBDIR=/usr/lib/ocaml/3.07/camlimages
&gt; 
&gt; echo -I $LIBDIR ci_core.cma ci_gif.cma ci_jpeg.cma ci_tiff.cma
&gt; ci_xpm.cma ci_bmp.cma ci_ppm.cma ci_png.cma ci_ps.cma ci_xvthumb.cma
&gt; 
&gt; 
&gt; -------------------
&gt; To unsubscribe, mail caml-list-request@inria.fr Archives: 
&gt; http://caml.inria.fr
&gt; Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: 
&gt; http://caml.inria.fr/FAQ/
&gt; Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
&gt; 

-- 
Issac Trotts

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

