[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Where are lablgtk's cmxa and cma files?



I 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
-----------------------------------------------------------
js-19:06:02-/usr/lib/ocaml/lablgtk$ls *.cmxa
lablgtkgl.cmxa
lablgtk.cmxa
lablgnome.cmxa
lablglade.cmxa
js-19:07:49-/usr/lib/ocaml/lablgtk$ls *.cma
lablgtkgl.cma
lablgtk.cma
lablgnome.cma
lablglade.cma
------------------------------------------------------------
Shouldn't there be cmxa's and cma's of all the libraries?

If not, how do I solve this problem.

Johann.
-- 
J.H. Spies - Tel. 021-982 2694 / 082 782 0336 / 021-808 4036(w)  
             Posbus 4668, Tygervallei 7536
     "And we know that all things work together for good to 
      them that love God, to them who are the called  
      according to his purpose."            
                                   Romans 8:28 



Reply to: