Qt Creator无法进行GDB调试,不能找到相关的动态库

问题现象

Could not load shared library symbols for 33 libraries, e.g. C:\Windows\SysWOW64\kernel32.dll.
Use the “info sharedlibrary” command to see the complete listing.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for C:\Windows\SysWOW64\uxtheme.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for C:\Windows\SysWOW64\msctf.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for C:\Windows\SysWOW64\kernel.appcore.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for C:\Windows\SysWOW64\bcryptprimitives.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for D:\Qt\4.8.6\plugins\codecs\qcncodecsd4.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for D:\Qt\4.8.6\plugins\imageformats\qgifd4.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for D:\Qt\4.8.6\plugins\imageformats\qicod4.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for D:\Qt\4.8.6\plugins\imageformats\qjpegd4.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for D:\Qt\4.8.6\plugins\imageformats\qmngd4.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for D:\Qt\4.8.6\plugins\imageformats\qsvgd4.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for D:\Qt\4.8.6\bin\QtSvgd4.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for D:\Qt\4.8.6\bin\QtXmld4.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for D:\Qt\4.8.6\bin\QtSvgd4.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for D:\Qt\4.8.6\plugins\imageformats\qtgad4.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for D:\Qt\4.8.6\plugins\imageformats\qtiffd4.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for D:\Qt\4.8.6\plugins\imageformats\qtiffd4.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for D:\Qt\4.8.6\plugins\sqldrivers\qsqlited4.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for D:\Qt\4.8.6\plugins\sqldrivers\qsqlited4.dll.
Do you need “set solib-search-path” or “set sysroot”?
Could not load shared library symbols for C:\Windows\SysWOW64\TextInputFramework.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for C:\Windows\SysWOW64\CoreMessaging.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for C:\Windows\SysWOW64\CoreUIComponents.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for C:\Windows\SysWOW64\CoreUIComponents.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for C:\Windows\SysWOW64\WinTypes.dll.
Do you need “set solib-search-path” or “set sysroot”?Could not load shared library symbols for C:\Windows\SysWOW64\cryptbase.dll.
Do you need “set solib-search-path” or “set sysroot”?

解决办法

在Qt Creator工具选项中选择“调试器”,如下图:
在这里插入图片描述
在额外的启动命令中输入你所无法找到的动态库路径(不能有额外的空格和换行),如下图:
不能有额外的空格和换行

set solib-search-path D:\Qt\4.8.6\bin;D:\Qt\4.8.6\plugins\imageformats;D:\Qt\4.8.6\plugins\codecs;D:\Qt\4.8.6\plugins\sqldrivers;C:\Windows\SysWOW64
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值