Checking for library z: not found

使用PyInstaller打包时遇到Checking for library z:not found错误,原因是缺少zlib开发包。本文提供了解决方案,通过安装zlib1g-dev来修复该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

简介

编译pyinstaller时检查依赖出现错误,Checking for library z: not found,原因是没有安装zlib开发包

解决方法

sudo apt-get install  zlib1g-dev
sudo cmake -DSDL_INCLUDE_DIR=/usr/include/SDL -DSDL_LIBRARY=/usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0 .. -- Build type set to Release. -- Build date set to Mon, 11 Aug 2025 06:08:45Z. -- -- The build system will automatically enable all components. -- Use -DENABLE_DEFAULT=OFF to disable components by default. -- Extracting version information from git describe... -- -- Configuring testing-support support... -- Dependency Boost_UNIT_TEST_FRAMEWORK_FOUND = 1 -- Enabling testing-support support. -- Override with -DENABLE_TESTING=ON/OFF -- Compiler Version: cc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- Compiler Flags: /usr/bin/cc:::-O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized /usr/bin/c++:::-O3 -DNDEBUG -fvisibility=hidden -Wsign-compare -Wall -Wno-uninitialized -- ADDING PERF COUNTERS -- User set python executable /usr/bin/python3 -- Python checking for packaging - found -- Python checking for numpy - found -- Python checking for pygccxml - not found -- -- ***************************** WARNING!!! ************************* -- pygccxml is highly recommended for using gr_modtool -- and is either not present or below the minimum version 2.0.0 -- Only trivial bindings will be generated using gr_modtool bind -- ****************************************************************** -- Found PythonInterp: /usr/bin/python3 (found version "3.8.10") -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.8.so -- -- Configuring python-support support... -- Dependency PYTHONLIBS_FOUND = TRUE -- Dependency PACKAGING_FOUND = TRUE -- Dependency pybind11_FOUND = 1 -- Dependency NUMPY_FOUND = TRUE -- Enabling python-support support. -- Override with -DENABLE_PYTHON=ON/OFF -- -- Configuring VOLK support... -- Found VOLK: Volk::volk -- Found VOLK: -- * Version: 2.2.0 -- * Libraries: Volk::volk -- * Includes: /usr/include CMake Error at CMakeLists.txt:312 (message): VOLK version 2.2.0 < 2.4.1 -- Configuring incomplete, errors occurred! See also "/home/pc3/gnuradio/build/CMakeFiles/CMakeOutput.log". See also "/home/pc3/gnuradio/build/CMakeFiles/CMakeError.log".
最新发布
08-12
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值