情景是这样的:
我把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