Hello everyone,

Just to introduce myself as someone starting out with xapi on arm. Apologies in 
advance for any future trivial questions to the list!

I've been trying to compile the lwt_test/list_vms.ml with the following _oasis 
file:

OASISFormat: 0.4
Name:        list_vms_lwt
Version:     0.1
Synopsis:    Xapi Client Example
Authors:     njb
License:     PROP
BuildTools: ocamlbuild
Plugins: META (0.4), DevFiles (0.4)

Executable "list_vms_lwt"
  Path: .
  MainIs: list_vms.ml
  BuildDepends: xen-api-client, xen-api-client.lwt, lwt, lwt.ssl, lwt.unix
  CompiledObject: best



With opam up to date with lwt etc., I get:

File "list_vms.ml", line 32, characters 76-78:
Error: Syntax error
Command exited with code 2.
E: Failure("Command ''/usr/bin/ocamlbuild' list_vms.native -tag debug' 
terminated with error code 10")


When I modify _oasis to include the lwt Build flag:

OASISFormat: 0.4
Name:        list_vms_lwt
Version:     0.1
Synopsis:    Xapi Client Example
Authors:     njb
License:     PROP
BuildTools: ocamlbuild
Plugins: META (0.4), DevFiles (0.4)

Flag lwt
  Description: build the Lwt library
  Default: false

Executable "list_vms_lwt"
  Path: .
  MainIs: list_vms.ml
  Install$: flag(lwt)
  Build$: flag(lwt)
  BuildDepends: xen-api-client, xen-api-client.lwt, lwt, lwt.ssl, lwt.unix
  CompiledObject: best




when running make I get :

ocaml setup.ml -build 
/usr/bin/ocamlopt.opt unix.cmxa -I /usr/lib/ocaml/ocamlbuild 
/usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml 
/usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
MAKE SUCCESSFUL (total time: 1s)


.... but no executable.

Could somebody possibly point out my error?

Thanks
Nick
                                          
_______________________________________________
Xen-api mailing list
[email protected]
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

Reply via email to