Q:# zlib.源码编译.emscripten.ubuntu

Q:# zlib.源码编译.emscripten.ubuntu

A:

git clone link_of_zlib

add_library

cd $PATHP/RE007/zlib
mkdir $PATHP/RE007/zlib/buildme
```
cd $PATHP/RE007/zlib/buildme
```

CMakeLists
P:/RE007/zlib/CMakeLists.txt
P:/RE007/zlib/zlib.pc.cmakein
P:/RE007/zlib/zconf.h.cmakein
sudo cmake .. sudo make sudo make install
emcmake
cd $PATHP/RE007/zlib/buildme (root): sudo emcmake cmake -DCMAKE_BUILD_TYPE=Prelease .. # gen Makefile (root): sudo emmake make (root): sudo emmake make install #安装到/mnt/c/B/emsdk/upstream/emscripten/cache/sysroot/lib t1@PC:/mnt/c/D/ASM/RE007/zlib/buildme$ sudo emmake make install make: make install [ 40%] Built target zlib [ 80%] Built target zlibstatic [ 85%] Built target example [ 90%] Built target minigzip [ 95%] Built target example64 [100%] Built target minigzip64 Install the project... -- Install configuration: "Prelease" -- Installing: /mnt/c/B/emsdk/upstream/emscripten/cache/sysroot/lib/libz.a -- Up-to-date: /mnt/c/B/emsdk/upstream/emscripten/cache/sysroot/lib/libz.a -- Installing: /mnt/c/B/emsdk/upstream/emscripten/cache/sysroot/include/zconf.h -- Installing: /mnt/c/B/emsdk/upstream/emscripten/cache/sysroot/include/zlib.h -- Installing: /mnt/c/B/emsdk/upstream/emscripten/cache/sysroot/share/man/man3/zlib.3 -- Installing: /mnt/c/B/emsdk/upstream/emscripten/cache/sysroot/share/pkgconfig/zlib.pc

install.ubuntu

```
t@PC:/mnt/c/D/ASM/RE007/zlib/buildme$ sudo make install
[ 40%] Built target zlib
[ 80%] Built target zlibstatic
[ 85%] Built target example
[ 90%] Built target minigzip
[ 95%] Built target example64
[100%] Built target minigzip64
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/libz.so.1.3
-- Installing: /usr/local/lib/libz.so.1
-- Installing: /usr/local/lib/libz.so
-- Installing: /usr/local/lib/libz.a
-- Installing: /usr/local/include/zconf.h
-- Installing: /usr/local/include/zlib.h
-- Installing: /usr/local/share/man/man3/zlib.3
-- Installing: /usr/local/share/pkgconfig/zlib.pc
```
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值