离线下载地址http://download.qt.io/archive/qt/
qt编译生成的文件只是单独的exe文件,生成目录下没有dll文件。所以需要手动复制,我是双击一下,报错一下,然后根据提示复制一个个对应的动态库。动态库复制完后,报错runtime error。
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
网上查询资料说是要把qwindowsd.dll文件复制到应用程序所在目录的子目录platform中。debug版本复制qwindowsd.dll,release版本复制qwindows.dll。可是手动创建后依然报错。回头看qt安装目录,plugins、platforms都是带s结尾。于是把platform改为platforms。再次双击,终于不报错了。
release版本同上。
即如下:(其中.o文件和.cpp文件是生成目录下的,不需要,只需要exe文件、dll文件、platforms目录。dll文件需复制到此目录)
platform目录如下,只需要一个文件。debug版本和release版本不一样,debug版本文件名以d结尾