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: Re: [Caml-list] Building camlimages programs on deb (and linux)
Issac Trotts wrote:

> $ 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.

I tried your suggestion, but it didn't work. :(

It's defined in Xlib.h, so I included Xlib in the link options, but it 
didn't complete the link (same error).

ocamlc `camlimages-config` -cclib "-L/usr/X11R6/lib -L/usr/X11R6/lib/X11 
-lX11 -lXlib -lxvthumb -lXpm -lpng -lfreetype -lz -ljpeg -lgif" 
monochrome.ml

Wonder if the lib is mangled?  I'll do an update to see...


Cheers,
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