[Omake] Getting similar errors to previous posts
todd.gardner at gmail.com
todd.gardner at gmail.com
Mon Aug 13 19:10:46 PDT 2007
Hi, I'm new to OMake. I'm running on a Win32 system, with
Ocaml-MinGW-Maxi 3.10.0 for ocaml, and omake-0.9.8.5-3. I was
previously running omake-0.9.8.5-2 and had the same error, and I've
tried downloading and replacing my OCaml.om with the latest version from
the subversion repository with no effect.
I'm running an OMakefile:
# Program name (without extension)
PROGRAM = SimpleProg
#If I don't set this to false, omake tries to use
# ocamlfind to run ocamlrun like in previous posts
OCAMLDEP_MODULES_USE_OCAMLFIND = false
#The path name is quoted because it won't find ocamldep-omake
# unless I include the full path
OCAMLDEP_MODULES = ocamlrun "C:\Program Files\OMake\bin\ocamldep-omake"
USE_OCAMLFIND = true
FILES[] =
testing
.DEFAULT: $(OCamlProgram $(PROGRAM), $(FILES))
with a standard OMakeroot, and program from a tutorial:
open Graphics;;
open_graph " 640x480";;
for i = 12 downto 1 do
let radius = i * 20 in
set_color (if (i mod 2) = 0 then red else yellow);
fill_circle 320 240 radius
done;;
read_line ();;
And I get as output:
*** omake: reading OMakefiles
--- Checking for ocamlfind... (found c:\ocamlmgw\bin\ocamlfind.exe)
--- Checking for ocamlc.opt... (found c:\ocamlmgw\bin\ocamlc.opt.exe)
--- Checking for ocamlopt.opt... (found c:\ocamlmgw\bin\ocamlopt.opt.exe)
--- Checking whether ocamlc understands the "z" warnings... (yes)
*** omake: finished reading OMakefiles (0.16 sec)
--- Checking if ocamldep understands -modules... (yes)
- build . SimpleProg.opt
+ ocamlfind ocamlopt -warn-error A -I . -o SimpleProg.opt testing.cmx
No implementations provided for the following modules:
Graphics referenced from testing.cmx
*** omake: 16/19 targets are up to date
*** omake: failed (0.45 sec, 1/1 scans, 2/4 rules, 11/80 digests)
*** omake: targets were not rebuilt because of errors:
SimpleProg.opt
It says that ocamldep understands modules, but ocamlfind apparently
invokes a version that doesn't:
C:\ocamlmgw\bin>ocamldep -modules testing.ml
testing.ml: Graphics
C:\ocamlmgw\bin>ocamlfind ocamldep -modules testing.ml
ocamldep: unknown option `-modules'.
followed by usage information
I'm attempting to recompile a version of findlib that will hopefully
work with the new ocamldep, but haven't had a ton of luck with porting yet.
Thanks,
Todd Gardner
More information about the Omake
mailing list