作者:陈雅杰昱宏 | 来源:互联网 | 2023-10-12 14:10
c libxml2库的编译
官网:http://xmlsoft.org/downloads.html
Libxml2库提供了C语言解析和构造xml文档的接口,为后台C语言处理程序和前台应用程序提供了一种通用的通迅方式。
libxm2静态库的编译
https://gitlab.gnome.org/GNOME/libxml2
环境准备:
安装 autoconf
sudo apt-get install autoconf
安装 libtool
sudo apt-get install libtool
tar -zxvf libxml2-v2.9.12.tar.gz
cd libxml2-v2.9.12/
./autogen.sh
./configure --enable-static
make
make install
查看结果
ll /usr/local/lib/libxml2.a
libxml2的使用
Libxml2库的api参考可以从http://www.xmlsoft.org/html/index.html查询。