[libvirt] How to build libvirt installation environment on ARM64?

Chenqun (kuhn) kuhn.chenqun at huawei.com
Thu Mar 13 09:16:55 UTC 2014


Hi all,

         The libvirt can be used for ARM64? If it can be used for ARM64, what resources are needed for setup ?
How to build libvirt installation environment on ARM64?

I got some resource as follow:
1.ARM64 hardware is based Cortex-A57 fastmodel
2.Host and Guest kernel is linux 3.13.0
3.ARM64 filesystem from linaro releases (http://releases.linaro.org/latest/openembedded/aarch64/)
4.Qemu 1.6.50
5.Libvirt-1.2.0

My configure shell as follow:
export PKG_CONFIG=/usr/local/bin/pkg-config
export PKG_CONFIG_SYSROOT_DIR=/home/aarch64
export PKG_CONFIG_PATH=/home/aarch64/usr/lib/pkgconfig
./configure  --target=aarch64 \
           --prefix=/home/chenq/libvirt/install \
           --host=aarch64-linux-gnu \
           --libdir=/home/aarch64
           CC=aarch64-linux-gnu-gcc \
           LIBXML_CFLAGS="/home/aarch64/usr/lib"
           CFLAGS="/home/aarch64/usr/include/libfdt"
           LDFLAGS="/home/aarch64/lib"

Then configure error as follow:
…
checking for DEVMAPPER... no
checking for dm_task_run in -ldevmapper... no
checking libdevmapper.h usability... no
checking libdevmapper.h presence... no
checking for libdevmapper.h... no
configure: error: You must install device-mapper-devel/libdevmapper >= 1.0.0 to compile libvirt

I think this only one error is found. The libvirt depends on a lot of other libs,it will be find more similar errors.
So, how to create a friendly environment to compile and install libvirt on ARM64 ?

Thanks,
--Kuhn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140313/555b8bb2/attachment-0001.htm>


More information about the libvir-list mailing list