caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] OASIS help
@ 2016-11-10  9:08 Laurent Thévenoux
  0 siblings, 0 replies; 10+ messages in thread
From: Laurent Thévenoux @ 2016-11-10  9:08 UTC (permalink / raw)
  To: caml-list

Hello,

I’m trying to use OASIS to configure a project written in OCaml. I currently use a Makefile which works fine but doesn’t allow enough possibilities. My project uses the menhir parser but OASIS attempts to use ocamlyacc. 

How can I specify that I need to run ocamlbuild with -use-menhir instead of ocamlyacc ?

Regards,
Laurent Thévenoux

^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <4912b1d7-c491-9462-2220-c08492d1833d@inria.fr>]
* [Caml-list] oasis help
@ 2015-02-10 12:58 Jiten Pathy
  2015-02-10 13:19 ` Jeremie Dimino
  0 siblings, 1 reply; 10+ messages in thread
From: Jiten Pathy @ 2015-02-10 12:58 UTC (permalink / raw)
  To: caml-list

I have two modules defining the same function.
How would i conditionally open modules during compilation using oasis
/ocamlbuild?(i.e pass -open A or -open B depending on some flag from
oasis?)

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [Caml-list] OASIS help
@ 2013-11-06 16:09 Robert Soulé
  2013-11-10 21:08 ` Sylvain Le Gall
  0 siblings, 1 reply; 10+ messages in thread
From: Robert Soulé @ 2013-11-06 16:09 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 1045 bytes --]

Hello,

I am trying to create an _oasis file with a Test section. My test will
call an executable that is built in an Executable section. The test
executable links agains links against my project library, which uses
some c code. My oasis file is attached.

When I run "oasis setup" and then "make", everything works fine. I see
Test.native in my directory, as I would expect.

However, I run into problems when I run "make test":

$ ocaml setup.ml -test
W: Tests are turned off, consider enabling with 'ocaml setup.ml
-configure --enable-tests'

$ ocaml setup.ml -configure --enable-tests
ocamlfind: Package `with-c' not found
W: Field 'pkg_with_c' is not set: Command
''/Users/soule/.opam/4.00.1/bin/ocamlfind' query -format %d with-c >
'/var/folders/q1/hc432vx951b6dlfrvybzm4d40000gn/T/oasis-c91777.txt''
terminated with error code 2
E: Cannot find findlib package with-c
E: Failure("1 configuration error")

Is there an extra Field I need to add in the Test section if I am
running an executable that links against C code?

thank you,
Robert

[-- Attachment #2: _oasis --]
[-- Type: application/octet-stream, Size: 281 bytes --]

Executable test
 Install: false
 Build$: flag(is_native)
 Path:       test
 MainIs:     Test.ml
 CompiledObject: native
 BuildDepends:
   oUnit,
   pa_ounit,
   pa_ounit.syntax,
   mylibwithc

Test all_tests
  Type: Custom (0.0.1)
  Command: $test
  Run: true
  TestTools: test




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-11-11 10:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-10  9:08 [Caml-list] OASIS help Laurent Thévenoux
     [not found] <4912b1d7-c491-9462-2220-c08492d1833d@inria.fr>
2016-11-10  9:27 ` Francois BERENGER
2016-11-10  9:49   ` Laurent Thévenoux
2016-11-10  9:52     ` Francois BERENGER
2016-11-11 10:52       ` Bikal Gurung
  -- strict thread matches above, loose matches on Subject: below --
2015-02-10 12:58 [Caml-list] oasis help Jiten Pathy
2015-02-10 13:19 ` Jeremie Dimino
2015-02-10 14:07   ` Jiten Pathy
2013-11-06 16:09 [Caml-list] OASIS help Robert Soulé
2013-11-10 21:08 ` Sylvain Le Gall

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).