OcaIDE doesn't see JoCaml tools
Posted
by
Surikator
on Stack Overflow
See other posts from Stack Overflow
or by Surikator
Published on 2011-03-15T20:58:53Z
Indexed on
2011/03/16
0:10 UTC
Read the original article
Hit count: 165
I'm having a problem while using OcaIDE in ocamlbuild mode. I'm trying to compile my own JoCaml sources. According to the JoCaml manual (bottom of page), to use ocamlbuild with JoCaml, I just need to add the -use-jocaml
argument to ocamlbuild. Indeed, if I go to the root of my project and write
ocamlbuild -use-jocaml foo.native
it generates my executable just fine.
However, in OcaIDE I get
/bin/sh: jocamldep: command not found
In OcaIDE, the -use-jocaml
flag is passed in the "Other Flags" box (in Project Properties). And that certainly is working, as the complaint is precisely that it doesn't find jocaml stuff. The puzzling thing is that jocaml is installed and can be accessed from any random terminal window. For example, running
jocamldep -modules foo.ml > foo.ml.depends
on my project does generate the desired dependency file.
So, it would seem I would have to configure OcaIDE and tell it where JoCaml executables are or something. This is done for OCaml, for example. But there is no place to do that for JoCaml. And it's really strange that, if jocamldep/jocamlc/etc are all accessible from anywhere, OcaIDE wouldn't be able to pick them.
Any ideas?
(I am aware I can do an ocamlbuild plugin and pass the flag in a "myocamlbuild.ml" file. I'll probably use that a latter stage after I get familiar with ocamlbuild plugins. But here the question is about OcaIDE. EDIT: Actually, ocamlbuild plugins don't seem to be a solution as, although there is an option -use-jocaml
in ocamlbuild to enforce jocaml use (and it works fine), the plugin system doesn't support it, i.e. jocaml is not in the list of options.)
© Stack Overflow or respective owner