首页 > 其他分享 >Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)

Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)

时间:2023-06-23 19:11:49浏览次数:40  
标签:13 ZLIB 1.2 missing Could zlib PC1 root

 

001、问题 cmake 报错

[root@PC1 build]# cmake ..

 

002、解决方法, 下载zlib并安装

官网:http://www.zlib.net/

a、下载

 

b、解压并安装

[root@PC1 software]# tar -xzvf zlib-1.2.13.tar.gz
[root@PC1 software]# cd zlib-1.2.13/
[root@PC1 zlib-1.2.13]# ./configure
[root@PC1 zlib-1.2.13]# make
[root@PC1 zlib-1.2.13]# make install

 

003、cmake测试

[root@PC1 build]# cmake ..

 。

 

标签:13,ZLIB,1.2,missing,Could,zlib,PC1,root
From: https://www.cnblogs.com/liujiaxin2018/p/17499701.html

相关文章