<?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/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)"
  prev="2003/11/2ea9e2faafc3e01b6720e94a0ace03ce"
  next="2003/11/50753bf7ad517a0d3bb91feacf43eee4"
  next-in-thread="2003/11/50753bf7ad517a0d3bb91feacf43eee4"
  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>
Hi,

I'm in the process of making a script to build programs with camlimages
easier but have hit a snag linking... the output is

Error on dynamically loaded library: /usr/X11R6/lib/libXpm.so.4:
undefined symbol: XDefaultScreen

Does anyone else get this problem?

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


camlimages-config is simply

#!/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_xpm.cma ci_bmp.cma ci_ppm.cma ci_png.cma ci_ps.cma ci_xvthumb.cma


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

