<div dir="ltr"><div dir="ltr">On Thu, Sep 24, 2020 at 2:58 PM Ján Tomko <<a href="mailto:jtomko@redhat.com">jtomko@redhat.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On a Thursday in 2020, Wei Wang wrote:<br>
>Seems it didn't appear on the mailing list, resent it.<br>
><br>
> Hi folks,<br>
><br>
>I'm trying to build libvirt using meson with the latest upstream libvirt,<br>
>but the compilation fails:<br>
>(followed on <a href="https://libvirt.org/compiling.html" rel="noreferrer" target="_blank">https://libvirt.org/compiling.html</a>, not sure if any<br>
>dependencies are missed. I checked, src/util/libvirt_util.a.p does not<br>
>exist.)<br>
><br>
>FAILED: src/util/libvirt_util.a.p/glibcompat.c.o<br>
>....<br>
>In file included from ../src/util/glibcompat.c:19:<br>
>./config.h:1026:10: fatal error: config-post.h: No such file or directory<br>
>FAILED: src/util/libvirt_util.a.p/virfirmware.c.o<br>
>In file included from ../src/util/virarch.c:22:<br>
>./config.h:1026:10: fatal error: config-post.h: No such file or directory<br>
>FAILED: src/util/libvirt_util.a.p/viraudit.c.o<br>
>In file included from ../src/util/viraudit.c:22:<br>
>./config.h:1026:10: fatal error: config-post.h: No such file or directory<br>
><br>
<br>
config-post.h was moved to config.h when we converted to Meson.<br>
<br>
There are probably some leftovers from a previous build in your build<br>
directory. Can you try it with an empty build directory?<br>
<br></blockquote><div><br></div><div>Thanks, just done cloning a new one from the official repo, but meson build reports an error:</div><div>src/util/meson.build:138:0: ERROR: Program '/opt/projects/libvirt/src/keycodemapdb/tools/keymap-gen' not found<br></div><div><br></div><div>Is there anything I should do before "meson build"?</div><div><br></div><div>Thanks,</div><div>Wei </div></div></div>