From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.2 required=5.0 tests=AWL,SPF_SOFTFAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 16795BB84 for ; Mon, 28 Jul 2008 10:21:34 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuMEANMdjUjAI/YU/2dsb2JhbACBW4k8ojQ X-IronPort-AV: E=Sophos;i="4.31,264,1215381600"; d="scan'208";a="27737525" Received: from ns2.inescn.pt (HELO trubo.inescn.pt) ([192.35.246.20]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 28 Jul 2008 10:21:33 +0200 Received: from localhost (localhost [127.0.0.1]) by trubo.inescn.pt (8.13.8/8.13.8/5) with ESMTP id m6S8LWfW008454 for ; Mon, 28 Jul 2008 09:21:32 +0100 X-Virus-Scanned: amavisd-new at inescporto.pt Received: from trubo.inescn.pt ([127.0.0.1]) by localhost (trubo.inescn.pt [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FDB1ekhH8CK7 for ; Mon, 28 Jul 2008 09:21:28 +0100 (WEST) Received: from [194.117.30.117] (merlinix.inescn.pt [194.117.30.117]) by trubo.inescn.pt (8.13.8/8.13.8/43) with ESMTP id m6S8LJ9O008445 for ; Mon, 28 Jul 2008 09:21:19 +0100 Message-ID: <488D817E.5040005@inescporto.pt> Date: Mon, 28 Jul 2008 09:21:18 +0100 From: Hugo Ferreira User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: ocamlbuild: path problem with libraries Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; lib:01 mli:01 -verbose:01 parser:01 -verbose:01 parser:01 ocaml:01 ocamlopt:01 cmxa:01 cmx:01 cmxa:01 bin:01 behaviour:01 consistent:02 native:03 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.