[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Issac Trotts <ijtrotts@c...> |
| Subject: | Re: [Caml-list] Building camlimages programs on deb (and linux) |
On Mon, Nov 24, 2003 at 12:27:37AM +0000, chris.danx wrote: > 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 $ 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" > > 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 > -- 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