从网上找到icu的源码,试图编译它。参考教程
https://blog.csdn.net/imatt/article/details/109599852
流程如下:
(1)找到我的交叉编译工具链路径
home/sinlinx/SIN-V3s/sinlinx-v3s-sdk/buildroot/out/host/bin/
(2)设置环境
export CC=/work/sinlinx-v3s-sdk/buildroot/out/host/bin/arm-buildroot-linux-gnueabihf-gcc
export CXX=/work/sinlinx-v3s-sdk/buildroot/out/host/bin/arm-buildroot-linux-gnueabihf-g++
export AR=/work/sinlinx-v3s-sdk/buildroot/out/host/bin/arm-buildroot-linux-gnueabihf-ar
#根目录(便于使用)
export CROSS_ROOT=/work/sinlinx-v3s-sdk/buildroot/out/host/bin
(3)进入源码目录,创建arm-build
cd ./icu4c/source
mkdir arm-build
(4)
cd arm-build
../source/runConfigureICU Linux/gcc
make
cd ..
(5)编译
./configure --host=arm-linux --prefix="${CROSS_ROOT}/usr" CXXFLAGS=-std=c++11 --with-sysroot="$CROSS_ROOT" --with-cross-build='/home/sinlinx/Documents/icu/source/arm-build' --disable-samples --disable-tests
(6)install
sudo make install
离线