Wayland Cross Compilation failed for arm toolchain
We try to cross compile wayland for arm tool chain, We created cross file for wayland cross compilation, We have faced the xml2,expat,ffi dependency while build the wayland and we cross compiled the dependency packages after while build the wayland we have faced below error. Kindly support for resolve the below mentioned failure.
cross-file
[host_machine] system = 'linux' cpu_family = 'arm' cpu = 'armv7' endian = 'little'
[properties] c_args = [] c_link_args = [] needs_exe_wrapper = true exe_wrapper = '/usr/bin/wayland-scanner'
[binaries] c = '/opt/MSTAR_LINUX/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc' cpp = '/opt/MSTAR_LINUX/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++' ar = '/opt/MSTAR_LINUX/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ar' ld = '/opt/MSTAR_LINUX/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-ld' objcopy = '/opt/MSTAR_LINUX/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-objcopy' strip = '/opt/MSTAR_LINUX/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-strip'
Commands
meson build/ --cross-file=/home/sseng/cross-file --prefix=/home/sseng/Packages
ninja -C build/ install
Log
ninja: Entering directory `build/' [1/108] Generating wayland_server_protocol_h with a custom command FAILED: src/wayland-server-protocol.h /usr/bin/wayland-scanner -s server-header ../protocol/wayland.xml src/wayland-server-protocol.h ../protocol/wayland.xml:182: element event: validity error : No declaration for attribute type of element event
-
*
- WARNING: XML failed validation against built-in DTD *
-
*
[2/108] Generating wayland_server_protocol_core_h with a custom command FAILED: src/wayland-server-protocol-core.h /usr/bin/wayland-scanner -s server-header -c ../protocol/wayland.xml src/wayland-server-protocol-core.h ../protocol/wayland.xml:182: element event: validity error : No declaration for attribute type of element event
-
*
- WARNING: XML failed validation against built-in DTD *
-
*
[6/108] Compiling C object src/libwayland-private.a.p/connection.c.o ninja: build stopped: subcommand failed.