title: Using ocamlmktop with ocamlbuild
body: <p>I have a project that builds successfully using ocamlbuild. However, I would also like an easy way to interact with the project's individual functions from different modules via the toplevel but my attempts at using ocamlmktop haven't worked out as I'd like. I've found that unless I manually put the .cmi files in the active directory, I get an "Unbound module" error. The command I'm currently using to build is:</p>
  
  <pre><code>ocamlfind ocamlmktop -I _build -o my_ocaml -linkpkg -package str module1.cmo module2.cmo
  </code></pre>
  
  <p>Is there a better, less hacky way to get the toplevel to work in this project structure without moving cmi files out of the _build directory?</p>
  
  <p>Edit: I've figured out that I can get it to load the types and modules if I run the toplevel as</p>
  
  <pre><code>./my_ocaml -I _build
  </code></pre>
  
  <p>But this still seems hacky. Is there a way to bake the search path or cmi files in perhaps?</p>
  
  <p>Edit 2: I think the solution to my problem may actually be not to compile a custom toplevel at all given this restriction about interface files. I have instead added load directives to my .ocamlinit to use the modules. If anybody has better ideas to solve this, I'd greatly appreciate it.</p>