Kar*_* B. 4 c mingw zlib msys libpng
OS: Win7, using MinGW, sh.exe from MSYS
./configure --prefix=/mingw
Run Code Online (Sandbox Code Playgroud)
with and without prefix ends like this:
checking for zlibVersion in -lz... no
checking for yeszlibVersion in -lz... no
configure: error: zlib not installed
Run Code Online (Sandbox Code Playgroud)
i've installed zlib through cmake, it went smoothly and without errors, so i have all zlib files in my bin, lib and include folders
what can be the problem? how do i fix this?
UPD
looks like it's because i have libzlib.dll and not libz.dll in bin folder, but that's how it installed and i still don't know how to fix it
我最近遇到了这个问题,这是固定的,所以我可以回答这个问题。
如果您正在构建交叉编译器,则使用CPPFLAGS和定义库的主机和路径LDFLAGS。
例子:
CPPFLAGS="-I$PREFIX/include" LDFLAGS="-L$PREFIX/lib" ./configure --prefix=$PREFIX --host=$TARGET
Run Code Online (Sandbox Code Playgroud)
如果您没有构建交叉编译器。然后指定路径(到库和头文件)或安装 zlib devel 包。
| 归档时间: |
|
| 查看次数: |
5315 次 |
| 最近记录: |