Preparatory work:
1. LIBXML2 software version: libxml2-2.6.32.tar.gz
2. Cross-compiling tool chain: Arm-none-linux-guneabi
Software Installation:
1. Set Environment variables:
Export Path=/arm-none-linux-guneabi/bin: $PATH
(Note: Here the variable is the path extracted by the cross-compilation tool)
Export Arch=arm
Export Cross_compile=arm-linux
2, Decompression: Tar xvf libxml2-2.6.32.tar.gz
3. Go to unzip file directory: CD libxml2-2.6.32/
4, configuration:./configure--host=arm-linux--target=arm-linux CC=ARM-NONE-LINUX-GNUEABI-GCC ar=arm-none-linux-gnueabi-ar LD= Arm-none-linux-gnueabi-ld Anlib=arm-none-linux-gnueabi-ranlib--PREFIX=/OPT/LIBXML2
5. Compiling: Make
6. Installation: sudo make install installed in/opt/libxml2/libxml directory after installation is complete. Cross-compiling required header files and library files. (Available by: readelf-h filename to see if it is compiled as an arm version)
7. Transplant: Place the libxml2.so.2 in the/opt/libxml2/libxml/lib/directory on the PC in the/lib or/usr/lib directory of the Development Board. The migration is complete.
LIBXML2 Transplant ARM9