Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Building camlimages programs on deb (and linux)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: chris.danx <chris.danx@n...>
Subject: [Caml-list] Building camlimages programs on deb (and linux)
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