C ICU webassembly库编译

7 篇文章 0 订阅
2 篇文章 0 订阅
准备环境 

在本机搭建Linux环境_本地单机搭建linux系统-CSDN博客

C++ wasm 使用教程-CSDN博客

法一
git clone https://github.com/mabels/icu.git
git checkout -b release-65-1
git diff -p wasm32-start..remotes/origin/wasm32 | patch -p1
cd icu4c/source
./runConfigureICU wasm32 --prefix=$PREFIX
法二
git clone https://github.com/unicode-org/icu
cd icu4c/source
emconfigure  ./configure --prefix=$PWD/build --disable-draft --disable-extras --disable-icuio --disable-layoutex --disable-tests --disable-samples --enable-static --disable-shared --with-data-packaging=archive
#emconfigure ./configure --enable-static --prefix=/src/dist
#emconfigure ./configure --prefix=/opt/wasm --with-cross-build=`pwd` --enable-static=yes --enable-shared=no --target=wasm32-unknown-emscripten #--with-data-packaging=static --enable-icu-config --enable-extras=no --enable-tools=no --enable-samples=no --enable-tests=no && emmake make clean install
emmake make
效果

 

参考

https://github.com/mabels/wasm-icu

https://groups.google.com/g/emscripten-discuss/c/NZEb552GecA/m/XRLUYiftAgAJ?utm_medium=email&utm_source=footer

 


创作不易,小小的支持一下吧!

  • 10
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

码力码力我爱你

创作不易,小小的支持一下吧!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值