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 AAA19938; Tue, 25 Nov 2003 00:02:37 +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 AAA20331 for ; Tue, 25 Nov 2003 00:02:36 +0100 (MET) Received: from mta02-svc.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAON2Z105028; Tue, 25 Nov 2003 00:02:35 +0100 (MET) Received: from ntlworld.com ([80.4.69.150]) by mta02-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20031124230234.EVCO15446.mta02-svc.ntlworld.com@ntlworld.com>; Mon, 24 Nov 2003 23:02:34 +0000 Message-ID: <3FC28E02.70205@ntlworld.com> Date: Mon, 24 Nov 2003 23:02:26 +0000 From: "chris.danx" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031014 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jun.Furuse@inria.fr CC: Caml Mailing List Subject: Re: [Caml-list] Building camlimages programs on deb (and linux) References: <3FC2528E.60506@ntlworld.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; ntlworld:99 caml-list:01 camlimages:01 furuse:01 camlimages:01 usr:01 3.07:01 gif:99 libdir:01 usr:01 3.07:01 libdir:01 gif:99 ocamlc:01 -verbose:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Jun.Furuse@inria.fr wrote: > Hello, Hi > Duh, I cannot tell what is wrong. Even we, the authors, do not know > about the script "camlimages-config". It is not from the official > camlimages distribution. (I guess it comes from Debian package, which > is out of my control.) It doesn't come with debian (i wrote it), it simply echoes -I /usr/lib/ocaml/3.07/camlimages ci_core.cma ci_gif.cma ci_jpeg.cma ci_tiff.cma ci_bmp.cma ci_ppm.cma ci_png.cma ci_ps.cma ci_xpm.cma as in #!/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_bmp.cma ci_ppm.cma ci_png.cma ci_ps.cma ci_xpm.cma > I always use $(CAMLIMAGESLIBS) defined inside > /usr/local/lib/ocaml/camlimages/Makefile.config for linking the > camlimages to my programs. It should list all the libraries required. > > BTW, it sounds still strange that you fail to link even with -lX11. > Please send me what happens (including error messages) if you execute > the following: > > ocamlc -custom -verbose `camlimages-config` > -cclib "-L/usr/X11R6/lib -lxvthumb -lXpm > -lX11 -lpng -lfreetype -lz -ljpeg -lgif" It fails on xvthumb, but if I take that out it links ok. :? ocamlc -custom -verbose `camlimages-config` -cclib "-L/usr/X11R6/lib -lXpm -lX11 -lpng -lfreetype -ljpeg -lgif" monochrome.ml + gcc -Wl,-E -o 'a.out' -I'/usr/lib/ocaml/3.07' -L/usr/X11R6/lib -Wl,-rpath,/usr/X11R6/lib /tmp/camlprim88d632.c '-L/usr/lib/ocaml/3.07/camlimages' '-L/usr/lib/ocaml/3.07' '-lci_xpm' '-lXpm' '-lci_png' '-lpng' '-lz' '-lci_tiff' '-ltiff' '-lci_jpeg' '-ljpeg' '-lci_gif' '-lgif' '-L/usr/X11R6/lib' '-lXpm' '-lX11' '-lpng' '-lfreetype' '-ljpeg' '-lgif' -lcamlrun -lm -ldl -lcurses -lpthread with -lxvthumb, it gives an error saying it can't find the lib (it's not on the system). Also if -custom is removed it fails. > Camlimages libraries are separated into pieces so that you can link > the libraries you really want. If you are not interested to read/write > xpm images in your program, you need not to link ci_xpm.cma. Yeah I know. It's just that if I wanted to read xpm images, I'd have had a problem. Thanks, Chris ------------------- 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