caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Hugo Ferreira <hmf@inescporto.pt>
To: caml-list@yquem.inria.fr
Subject: ocamlbuild: path problem with libraries
Date: Mon, 28 Jul 2008 09:21:18 +0100	[thread overview]
Message-ID: <488D817E.5040005@inescporto.pt> (raw)

Hello,

I have a project with the directories: src, lib and cudd
In cudd I have third party libraries and cm and mli files. When I
execute a command line with a full path to the cudd libraries
so:

PROJ_PATH="cudd,src"
ocamlbuild -no-hygiene -Is $PROJ_PATH -lib cudd -cflags 
-I,/home/hugof/workspace/planner/cudd -lflags 
-I,/home/hugof/workspace/planner/cudd -verbose 100 src/parser.native

everything works as expected. However, using relative paths:

PROJ_PATH="cudd,src"
ocamlbuild -no-hygiene -Is $PROJ_PATH -lib cudd -cflags -I,cudd -lflags 
-I,cudd -verbose 100 src/parser.native

I get:

+ /home/hugof/ocaml/godi/bin/ocamlopt.opt -I cudd cudd.cmxa -g -p 
src/parser.cmx -o src/parser.native
Cannot find file cudd.cmxa

How can I set-up ocamlbuild so that relative paths can be used?
Note that I get the same consistent behaviour when using the
myocamlbuild.ml file.

TIA,
Hugo F.


                 reply	other threads:[~2008-07-28  8:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=488D817E.5040005@inescporto.pt \
    --to=hmf@inescporto.pt \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).