[Libguestfs] Missing hivex.h error when compiling on macOS 10.14 (Mojave)
Richard W.M. Jones
rjones at redhat.com
Mon Jul 22 09:05:44 UTC 2019
On Mon, Jul 22, 2019 at 10:38:19AM +0200, Pino Toscano wrote:
> Hi Tim,
>
>
> On Sunday, 21 July 2019 18:31:58 CEST Tim Perfitt wrote:
> > I am attempting to compile Hivex (v1.3.18) and am getting a "handle.c:47:10: fatal error: 'hivex.h' file not found" error. I see that hivex.h is not included in the source and I suspect it is created during the configure phase. Full build log below. Any ideas of how this file is created and why it wasn't created?
>
> lib/hivex.h is generated by the OCaml generator, see
> generator/generator.ml. However, the files generated by that tool are
> statically shipped in the release tarballs to avoid requiring OCaml to
> build hivex.
>
> It looks to me you are not building a release tarball -- perhaphs you
> are building some autogenerated source tarball from github? If so,
> do not use them.
In addition to what Pino said above, you can also generate those files
by running the generator:
./generator/generator.ml
It doesn't run automatically in hivex.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html
More information about the Libguestfs
mailing list