From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id CAA06708; Mon, 24 Nov 2003 02:07:51 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id CAA06822 for ; Mon, 24 Nov 2003 02:07:50 +0100 (MET) Received: from manzanita (63-217-154-71.greystoneapts.com [63.217.154.71]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAO17i107284 for ; Mon, 24 Nov 2003 02:07:46 +0100 (MET) Received: from ijtrotts by manzanita with local (Exim 3.36 #1 (Debian)) id 1AO5D0-0001VD-00 for ; Sun, 23 Nov 2003 17:08:10 -0800 Date: Sun, 23 Nov 2003 17:08:05 -0800 To: caml-list@inria.fr Subject: Re: [Caml-list] Building camlimages programs on deb (and linux) Message-ID: <20031124010805.GB1467@localhost> References: <3FC15079.5030306@ntlworld.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FC15079.5030306@ntlworld.com> User-Agent: Mutt/1.5.4i From: Issac Trotts X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 camlimages:01 issac:01 trotts:01 ijtrotts:01 concorde:99 camlimages:01 snag:01 dynamically:01 usr:01 usr:01 libx:01 libx:01 ocamlc:01 ocamlc:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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