Question: building libvirt into the buildroot. Error *** No rule to make target `keycodemapdb/data/keymaps.csv'

Hello! I'm tying to build libvirt into the buildroot project. When I build libvirt I have an error make[3]: Entering directory `/home/zoadmin/BRAIN4NET/buildroot/buildroot-2018.02.2/output/build/libvirt-v6.1.0/src' make[3]: *** No rule to make target `keycodemapdb/data/keymaps.csv', needed by `util/virkeycodetable_linux.h'. Stop. Please, Help me) What I do incorrect ? I tried build branch 6.1 and master. Completely build.log in attach. Thank you! P.S. My package/libvirt/libvirt.mk into the buildroot [zoadmin@BuildPC-SPECOS buildroot-2018.02.2]$ cat package/libvirt/libvirt.mk ###################################################################### # # # libvirt # # ##################################################################### LIBVIRT_VERSION = v6.1.0 #LIBVIRT_SOURCE = LIBVIRT_SITE = https://github.com/libvirt/libvirt LIBVIRT_SITE_METHOD = git LIBVIRT_AUTORECONF = YES LIBVIRT_CONF_OPTS = -prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-storage-mpath=no LIBVIRT_INSTALL_TARGET = YES LIBVIRT_DEPENDENCIES = gnutls kvmtool qemu linux libxml2 libpciaccess libxslt libnl host-libxslt host-python-rst2html5 host-python-docutils host-python3 define LIBVIRT_PRE_CONFIGURE_GNU cd $(@D); ./bootstrap endef define LIBVIRT_PRE_CONFIGURE_DELETE_STRING cd $(@D); sed -i "21,24d" ./configure.ac # sed -i "3413,3416d" ./configure endef #LIBVIRT_PRE_CONFIGURE_HOOKS += LIBVIRT_PRE_CONFIGURE_GNU LIBVIRT_PRE_CONFIGURE_HOOKS += LIBVIRT_PRE_CONFIGURE_DELETE_STRING $(eval $(autotools-package)) fd ______________________________________________________________________________________ С уважением, Комаров Егор Инженер Департамента специальных работ (ДСР), АО <ЭЛВИС-ПЛЮС> тел. +7 (495) 276-02-11 доб.175 [cid:image003.jpg@01D602B6.5C6B7D20] www.elvis.ru<http://www.elvis.ru/>

On Wed, Mar 25, 2020 at 12:02:11PM +0000, Komarov Egor wrote:
Hello! I'm tying to build libvirt into the buildroot project. When I build libvirt I have an error
make[3]: Entering directory `/home/zoadmin/BRAIN4NET/buildroot/buildroot-2018.02.2/output/build/libvirt-v6.1.0/src' make[3]: *** No rule to make target `keycodemapdb/data/keymaps.csv', needed by `util/virkeycodetable_linux.h'. Stop.
Please, Help me) What I do incorrect ? I tried build branch 6.1 and master. Completely build.log in attach.
I'm unclear what commands you are running, but it looks very much like you have not run autogen.sh, and thus are missing initilaization of the git submodules. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

I'm using command from README $ mkdir build && cd build $ ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var $ make $ sudo make install I don't have anything place where I can see how to build libvitd exept README from git archive. If you put me documentation where I can find your advice: " you have not run autogen.sh, and thus are missing initilaization of the git submodules." I'll be pleasure. Thank you. Have a nice day :) -----Original Message----- From: Daniel P. Berrangé [mailto:berrange@redhat.com] Sent: Thursday, March 26, 2020 12:46 PM To: Komarov Egor Cc: libvir-list@redhat.com Subject: Re: Question: building libvirt into the buildroot. Error *** No rule to make target `keycodemapdb/data/keymaps.csv' On Wed, Mar 25, 2020 at 12:02:11PM +0000, Komarov Egor wrote:
Hello! I'm tying to build libvirt into the buildroot project. When I build libvirt I have an error
make[3]: Entering directory `/home/zoadmin/BRAIN4NET/buildroot/buildroot-2018.02.2/output/build/libvirt-v6.1.0/src' make[3]: *** No rule to make target `keycodemapdb/data/keymaps.csv', needed by `util/virkeycodetable_linux.h'. Stop.
Please, Help me) What I do incorrect ? I tried build branch 6.1 and master. Completely build.log in attach.
I'm unclear what commands you are running, but it looks very much like you have not run autogen.sh, and thus are missing initilaization of the git submodules. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

On Thu, Mar 26, 2020 at 09:53:06AM +0000, Komarov Egor wrote:
I'm using command from README
$ mkdir build && cd build $ ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var $ make $ sudo make install
This assumes someone is building from an official released tarball, if building from git extra steps are required. I think you're running more than that already, because the build log you attached shows you've run libtoolize / autoconf / automake as well, possibly via autoreconf. This is the bit you need to replace with autogen.sh
I don't have anything place where I can see how to build libvitd exept README from git archive.
If you put me documentation where I can find your advice:
" you have not run autogen.sh, and thus are missing initilaization of the git submodules."
More details on building from git are here: https://libvirt.org/compiling.html#building Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

Thank you! I'll try to build from tarball. 26 мар. 2020 г. 12:58 пользователь "Daniel P. Berrangé" <berrange@redhat.com> написал: On Thu, Mar 26, 2020 at 09:53:06AM +0000, Komarov Egor wrote:
I'm using command from README
$ mkdir build && cd build $ ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var $ make $ sudo make install
This assumes someone is building from an official released tarball, if building from git extra steps are required. I think you're running more than that already, because the build log you attached shows you've run libtoolize / autoconf / automake as well, possibly via autoreconf. This is the bit you need to replace with autogen.sh
I don't have anything place where I can see how to build libvitd exept README from git archive.
If you put me documentation where I can find your advice:
" you have not run autogen.sh, and thus are missing initilaization of the git submodules."
More details on building from git are here: https://libvirt.org/compiling.html#building Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

I try to build from tarball. That’s all right ) Thank you! From: Komarov Egor Sent: Thursday, March 26, 2020 1:19 PM To: Daniel P. Berrangé Cc: libvir-list@redhat.com Subject: Re: Question: building libvirt into the buildroot. Error *** No rule to make target `keycodemapdb/data/keymaps.csv' Thank you! I'll try to build from tarball. 26 мар. 2020 г. 12:58 пользователь "Daniel P. Berrangé" <berrange@redhat.com> написал: On Thu, Mar 26, 2020 at 09:53:06AM +0000, Komarov Egor wrote:
I'm using command from README
$ mkdir build && cd build $ ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var $ make $ sudo make install
This assumes someone is building from an official released tarball, if building from git extra steps are required. I think you're running more than that already, because the build log you attached shows you've run libtoolize / autoconf / automake as well, possibly via autoreconf. This is the bit you need to replace with autogen.sh
I don't have anything place where I can see how to build libvitd exept README from git archive.
If you put me documentation where I can find your advice:
" you have not run autogen.sh, and thus are missing initilaization of the git submodules."
More details on building from git are here: https://libvirt.org/compiling.html#building Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
participants (2)
-
Daniel P. Berrangé
-
Komarov Egor