caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Ocamlmakefile and Lablgtk
@ 2001-11-12 13:36 Johann Spies
  2001-11-12 17:59 ` Markus Mottl
  0 siblings, 1 reply; 9+ messages in thread
From: Johann Spies @ 2001-11-12 13:36 UTC (permalink / raw)
  To: caml-list

 am trying to figure out how to use Ocamlmakefile to compile
 lablgtk programs.

 With the following Makefile:

 --------------------------------------------------------
 OCAMLMAKEFILE=/usr/share/ocaml-tools/OcamlMakefile
 SOURCES=calc.ml
 RESULT=calc
 LIBS=lablgtk gtkInit
 INCDIRS=+lablgtk
 OCAMLFLAGS=-labels
 include $(OCAMLMAKEFILE)
 ----------------------------------------------------------

 I get :
 ----------------------------------------------------------
 js-19:07:58-/tmp$make
 make[1]: Entering directory `/tmp'
 ocamlc  -I +lablgtk        lablgtk.cma gtkInit.cma     -o calc \
                         calc.cmo
Cannot find file gtkInit.cma
make[1]: *** [calc] Error 2
make[1]: Leaving directory `/tmp'
make: *** [byte-code] Error 2

js-19:07:59-/tmp$make nc
make[1]: Entering directory `/tmp'
ocamlopt   -I +lablgtk
lablgtk.cmxa gtkInit.cmxa     -o calc \
                        calc.cmx
Cannot find file gtkInit.cmxa
make[1]: *** [calc] Error 2
make[1]: Leaving directory `/tmp'
make: *** [native-code]
Error 2
-----------------------------------------------------------
How do I inform the compiler through Ocamlmakefile to use options
gtkInit.cmx as in 

ocamlopt -I +lablgtk -labels -o testgtk.opt lablgtk.cmxa gtkInit.cmx
testgtk.ml ?

Regards.
Johann
			 
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "He that loveth father of mother more than me is not 
      worthy of me; and he that loveth son or daughter more 
      than me is not worthy of me. And he that taketh not 
      his cross, and followeth after me, is not worthy of 
      me."                   Matthew 10:37,38 
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


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

end of thread, other threads:[~2001-11-14 14:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-12 13:36 [Caml-list] Ocamlmakefile and Lablgtk Johann Spies
2001-11-12 17:59 ` Markus Mottl
2001-11-12 22:17   ` Johann Spies
2001-11-12 23:40     ` Markus Mottl
2001-11-13  8:10       ` Florian Hars
2001-11-13  8:54         ` Markus Mottl
2001-11-14 13:57           ` Jacques Garrigue
2001-11-14 14:10             ` Markus Mottl
2001-11-13 12:37         ` Johann Spies

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