[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-API] xapi-client
Ah, so you haven't installed xapi/xenserver on cubieboard yet? ;) -n
Subject: Re: [Xen-API] xapi-client From: anil@xxxxxxxxxx Date: Fri, 9 Jan 2015 15:35:12 +0000 CC: xen-api@xxxxxxxxxxxxx To: buzzheavyyear@xxxxxxxxxxx It so happens that I just (yesterday) also installed XenServer on x86 and would like to get the XenAPI client bindings from OCaml, and so am most interested in this!
-a
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 listXen-api@xxxxxxxxxxxxxhttp://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
|
_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
|