Browse thread
[Caml-list] Ocamlmakefile and Lablgtk
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Johann Spies <jspies@s...> |
| Subject: | [Caml-list] Ocamlmakefile and Lablgtk |
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