不太现实,我记得那对库都有接近100M去了
离线
从网上找到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
离线
关于ICU报错,https://github.com/dotnet/core/issues/2186#issuecomment-671105420
就是执行一下:
$ export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
现在可以运行dotnet --info
./dotnet --info
.NET SDK (reflecting any global.json):
Version: 5.0.203
Commit: 383637d63f
Runtime Environment:
OS Name: buildroot
OS Version: 2018.08.2
OS Platform: Linux
RID: linux-arm
Base Path: /mnt/mmc/dotnet-sdk/sdk/5.0.203/
Host (useful for support):
Version: 5.0.6
Commit: 478b2f8c0e
.NET SDKs installed:
5.0.203 [/mnt/mmc/dotnet-sdk/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.6 [/mnt/mmc/dotnet-sdk/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.6 [/mnt/mmc/dotnet-sdk/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
最近编辑记录 Meekdai (2021-05-18 12:18:42)
离线