Please do not use it for commercial purposes. For reprinting, please indicate the source!
The advantage of XML is that it can easily manage configuration items. libxml2 is an XML management library implemented in C language. Currently, the project requires a version under arm. The libxml2 compilation steps are as follows:
0. Preparations
:ftp://xmlsoft.org/libxml2/libxml2-git-snapshot.tar.gz
<pre name="code" class="cpp">编译环境:Ubuntu 14.04 TLS交叉编译器:arm-linux-gnueabihf-gcc 4.8.2 20130902
1. Configure compilation Information
$./configure --host=arm-linux --build=i386-linux --target=arm --prefix=/usr/local/arm/libxml_arm CC=/home/lhl/buildroot-at91-buildroot-2013. 11-at91/output/host/usr/bin/arm-linux-gnueabihf-gcc --without-zlib --without-python
During compilation, the system prompts that there is no Python-related header file error, and because Python-related content is not used in the project, the reader should configure this option as needed. Same principles for zlib
2. Compile
$make;$make install
3. You must specify the-lxml2 compilation option in makefile.
Cross-compile libxml2