caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* RE : RE :Graphisme
@ 1998-05-15 21:38 Patrice AUFFRET
  1998-05-17 17:41 ` Quercia Michel
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Patrice AUFFRET @ 1998-05-15 21:38 UTC (permalink / raw)
  To: caml-list

D'abord merci aux personnes qui m'ont répondues. J'ai suivi les conseils
de ces personnes me disant d'utiliser Linux. J'ai donc récupéré les
sources de Caml et les ais compilé comme indiqué dans le fichier
INSTALL. C'est à dire :

Dans le rep SRC :
make configure
make world
make bootstrap ( 2 fois )
make install
Dans le rep CONTRIB
make all
make install
Et pour finir make clean dans les rep SRC et CONTRIB.

Je travaille ensuite sour X-Windows en lançant CAMLLIGHT CAMLGRAPH.
Lorsque j'utilise les fonctions graphiques, aucuns problèmes. Mais en
programme indépendant, je n'y arrive pas :
Je compile mon fichier comme suit : ( le fichier test.ml est mon fichier
source )

[root@localhost /ML]# camlc -custom \
> unix.zo graphics.zo test.ml \
> -lgraph -lunix -lX11

Et il m'affiche comme message d'erreur :

ld: cannot open -lX11: No such file or directory

S'il vous plaît, aidez-moi. Merci.
@+






^ permalink raw reply	[flat|nested] 4+ messages in thread

* (no subject)
  1998-05-15 21:38 RE : RE :Graphisme Patrice AUFFRET
@ 1998-05-17 17:41 ` Quercia Michel
  1998-05-18  8:37 ` RE : RE :Graphisme Xavier Leroy
  1998-05-18  8:43 ` Francois Rouaix
  2 siblings, 0 replies; 4+ messages in thread
From: Quercia Michel @ 1998-05-17 17:41 UTC (permalink / raw)
  To: caml-list, Patrice AUFFRET

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 653 bytes --]

Patrice AUFFRET <patrice.auffret@hol.fr> écrivait le 15/05 à 23h38 :

: [root@localhost /ML]# camlc -custom \
: > unix.zo graphics.zo test.ml \
: > -lgraph -lunix -lX11
: 
: Et il m'affiche comme message d'erreur :
: 
: ld: cannot open -lX11: No such file or directory

[français]
ajoute l'option "-ccopt -L/usr/X11R6/lib" pour que l'éditeur de
liens puisse trouver la libX11.

[english]
with Linux, you must add the option : "-ccopt -L/usr/X11R6/lib"
to help the linker in finding the X11 library.


----
Michel Quercia
Lycee Carnot  16 bd Thiers  21000 Dijon
http://pauillac.inria.fr/~quercia
mailto:quercia@cal.enst.fr,michel.quercia@ac-dijon.fr





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RE : RE :Graphisme
  1998-05-15 21:38 RE : RE :Graphisme Patrice AUFFRET
  1998-05-17 17:41 ` Quercia Michel
@ 1998-05-18  8:37 ` Xavier Leroy
  1998-05-18  8:43 ` Francois Rouaix
  2 siblings, 0 replies; 4+ messages in thread
From: Xavier Leroy @ 1998-05-18  8:37 UTC (permalink / raw)
  To: Patrice AUFFRET, caml-list

> Je compile mon fichier comme suit : ( le fichier test.ml est mon fichier
> source )
> 
> [root@localhost /ML]# camlc -custom \
> > unix.zo graphics.zo test.ml \
> > -lgraph -lunix -lX11
> 
> Et il m'affiche comme message d'erreur :
> 
> ld: cannot open -lX11: No such file or directory

Sur certains Unix, les bibliothèques X Windows ne se trouvent pas au même
endroit que les autres bibliothèques.  Essayez quelque chose du genre:

camlc -custom unix.zo graphics.zo test.ml -lgraph -lunix -L/usr/X11R6/lib -lX11
                                                           ^^^^^^^^^^^^^^
(Dans la partie soulignée, il faut mettre le nom du répertoire qui
contient libX11.so sur votre machine.)

- Xavier Leroy





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: RE : RE :Graphisme
  1998-05-15 21:38 RE : RE :Graphisme Patrice AUFFRET
  1998-05-17 17:41 ` Quercia Michel
  1998-05-18  8:37 ` RE : RE :Graphisme Xavier Leroy
@ 1998-05-18  8:43 ` Francois Rouaix
  2 siblings, 0 replies; 4+ messages in thread
From: Francois Rouaix @ 1998-05-18  8:43 UTC (permalink / raw)
  To: Patrice AUFFRET; +Cc: caml-list

> [root@localhost /ML]# camlc -custom \
> > unix.zo graphics.zo test.ml \
> > -lgraph -lunix -lX11
> 
> Et il m'affiche comme message d'erreur :
> 
> ld: cannot open -lX11: No such file or directory

Il faut rajouter les options
-ccopt -L/some/path
ou 
/some/path est la valeur qui a ete donnee a X11_LIB dans le Makefile de
cl/contrib.

S'agissant de Linux, il faut probablement utiliser
-ccopt -L/usr/X11R6/lib

--f






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-05-18 13:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-05-15 21:38 RE : RE :Graphisme Patrice AUFFRET
1998-05-17 17:41 ` Quercia Michel
1998-05-18  8:37 ` RE : RE :Graphisme Xavier Leroy
1998-05-18  8:43 ` Francois Rouaix

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).