From: Issac Trotts <ijtrotts@concorde.inria.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Building camlimages programs on deb (and linux)
Date: Sun, 23 Nov 2003 17:08:05 -0800 [thread overview]
Message-ID: <20031124010805.GB1467@localhost> (raw)
In-Reply-To: <3FC15079.5030306@ntlworld.com>
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
next prev parent reply other threads:[~2003-11-24 1:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-24 0:27 chris.danx
2003-11-24 1:08 ` Issac Trotts [this message]
2003-11-24 17:34 ` chris.danx
2003-11-24 18:50 ` Matt Gushee
2003-11-24 19:10 ` chris.danx
[not found] <D4DBD8568F05D511A1C20002A55C008C11AC0796@uswaumsx03medge.med.ge.com>
2003-11-24 18:48 ` chris.danx
2003-11-24 20:46 ` Jun.Furuse
2003-11-24 23:02 ` chris.danx
2003-11-25 10:42 ` Jun.Furuse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031124010805.GB1467@localhost \
--to=ijtrotts@concorde.inria.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox