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