Error while trying to run a release build of a Qt application on Windows

别来无恙 提交于 2019-12-07 12:04:01

问题


I'm trying to build the Windows version of my app. The program compiles and runs fine on Qt Creator but when I try to run it standalone it throws the following error:

The procedure entry point _Z17qt_message_output9QtMsgTypePKc could not be located in the dynamic link library QtCore4.dll

I have all the necessary dlls in my application folder and they are the same ones that came with the binaries I've downloaded from the Qt's website. This error is driving me crazy for I can't seem to find any reason for it. The application runs fine on Linux and MAC OS X.


回答1:


Ok I found the problem. I was copying the wrosng dll (not sure why Qt ships with 2 different versions).

The right ones are in:C:\Qt\2010.05\qt\bin and NOT in C:\Qt\2010.05\bin

I hope this helps anyone who might stumble upon this issue.



来源:https://stackoverflow.com/questions/4361584/error-while-trying-to-run-a-release-build-of-a-qt-application-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!