# Problems with using libxml2

**URL:** <https://forum.legato.io/t/problems-with-using-libxml2/5521>\
**Category:** Uncategorized\
**Created:** [November 25, 2020, 12:42pm UTC](https://forum.legato.io/t/problems-with-using-libxml2/5521 "2020-11-25T12:42:34Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [November 26, 2020, 7:30am UTC](https://forum.legato.io/t/problems-with-using-libxml2/5521/21 "2020-11-26T07:30:01Z")

</div>

I suspect the libxml2 you add to the toolchain is not an official one.  
The official way should be using the libxml2 stuff from yocto recipe.

Here is what I try on WP76 source:

1. download the yocto source from [source.sierrawireless.com](http://source.sierrawireless.com)

[https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-13,-d-,1-components/#sthash.2vlTNVx1.dpbs](https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-13,-d-,1-components/#sthash.2vlTNVx1.dpbs)

1. go to ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc

3.add the following line:  
IMAGE\_INSTALL\_append = " libxml2"

1. Make the yocto image

2. the include path now should be in yocto/build\_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/libxml2/2.9.7-r0/image/usr/include/libxml2/

3. in component.cdef, add the following:

---

_[View the full topic](https://forum.legato.io/t/problems-with-using-libxml2/5521)._
