creator找不到文件路径 qt_自己编译的Qt,VS F5时出现找不到platform plugin问题(必须强制设置路径)...

情景是这样的:

我把QT5.12源码解压到两个目录,一个用来编译Release(用VCLTL替代微软默认的运行时)

一个用来编译debug,

编译成功后, 先install debug目录,然后install release目录,两者都是install到同一目录的,

然后拷贝到另外一台机子上使用,

利用qt creator建好工程之后,用Qt VSTools 导入到VS,release 和debug都可以编译成功,但是只有release可以F5,debug F5则会报错

This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

利用qtcreator直接编译 运行也会报错

用windeployqt 把文件拷贝到测试工程运行目录则没的问题,

上面的问题如果用官方的版本则不会出现

附qt.conf

[Paths]

Prefix=..

debug 版参数:

configure -confirm-license -opensource -platform win32-msvc -debug -shared -force-debug-info -angle -opengl dynamic -prefix "E:\Library\Qt5.12.0_VS2017_VCLTL" -qt-sqlite -qt-pcre -qt-zlib -qt-libpng -qt-libjpeg -qt-freetype -ssl -openssl-linked -nomake tests -no-compile-examples -nomake examples -nomake tools -IE:\Library\OpenSSL\include -LE:\Library\OpenSSL\libd

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值