【Bug】Could not locate zlibwapi.dll. Please make sure it is in your library path!

报错信息:

使用tensort加速,cmake编译失败,提示缺少zlibwapi.dll文件

Could not locate zlibwapi.dll. Please make sure it is in your library path!
在这里插入图片描述
解决方案:

从以下链接下载zlibwapi.dll
http://www.winimage.com/zLibDll/
【Bug】Could not locate zlibwapi.dll. Please make sure it is in your library path!_第1张图片
我是在windows 10系统下进行的TensorRT加速
下载得到的压缩包,并解压:
在这里插入图片描述
【Bug】Could not locate zlibwapi.dll. Please make sure it is in your library path!_第2张图片
将 dll_x64文件夹下的zlibwapi.dll复制到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin
【我没有移动lib文件,有的技术博文说也要移,如果移动的话,复制到lib文件放到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\lib】

参考资料

http://www.winimage.com/zLibDll/

https://blog.csdn.net/qq_44224801/article/details/125525721

https://blog.csdn.net/qq_33619359/article/details/127512405

你可能感兴趣的:(【Bug】Could not locate zlibwapi.dll. Please make sure it is in your library path!)