Re: Help sought for compiling guestfs-browser
Le 31/07/2011 21:55, Hilko Bengen a écrit :
> [...] (I
> have just uploaded libguestfs and various bindings to experimental.)
AFAICT, the upstream/1.10.5 tag is missing from the git repository (I
assume you are using git-buildpackage?), and the pristine-tar branch is
not up-to-date.
Also: libguestfs-ocaml-dev seems to miss a dependency to libguestfs-dev.
> I have installed everything needed by the configure script
> (libcamomile-ocaml-data and libcamomile-ocaml-dev from experimental) and
> that works nicely. However, I get a bunch of compiler errors, as shown
> below[2].
It compiles with the attached patch. I just tried "./configure && make".
Cheers,
--
Stéphane
diff --git a/Makefile.am b/Makefile.am
index 6736a80..7d00a3e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -125,7 +125,7 @@ XOBJECTS = $(OBJECTS:.cmo=.cmx)
bin_SCRIPTS = guestfs-browser
OCAMLPACKAGES = \
- -package libvirt,guestfs,hivex,lablgtk2,extlib,xml-light,calendar,camomile,threads,bitstring,bitstring.syntax -syntax bitstring
+ -package libvirt,guestfs,hivex,lablgtk2,extlib,xml-light,calendar,camomile,threads,bitstring,bitstring.syntax -syntax camlp4o
OCAMLCFLAGS = \
-g \
-warn-error CDEFLMPSUVYZX \
@@ -145,7 +145,7 @@ if HAVE_OCAMLOPT
guestfs-browser: $(XOBJECTS)
$(OCAMLFIND) ocamlopt $(OCAMLOPTFLAGS) \
-predicates init,threads \
- -linkpkg gtkThread.cmx \
+ -linkpkg \
$^ -o $@
else
guestfs-browser: $(OBJECTS)
Reply to: