PDA

View Full Version : application runs only from qtcreator with Start Debugging (F5)



davidovv
9th November 2013, 22:40
I have strange behavior for Qt application for Qt 5.1.1. windows 32 mingw
When in Debug mode if i start application with Run (Ctrl R) button, application breaks and in application output window there is a message
"The program has unexpectedly finished."
when i start it with Start Debugging (F5) it starts normally
The same in Release mode, Application starts only with F5 (even if the application is in release mode)
Application also breaks when started outside qtcreator

When application is developed on linux (same Qt version)there are no problems
The only thing i did after installing Qt on widnwos is compile mysql plugin and copy compiled files in their folders
C:\Qt\Qt5.1.1\5.1.1\Src\qtbase\src\plugins\sqldriv ers\mysql\mysql.pro file added 2 lines

INCLUDEPATH += c:\mysql\include
LIBS += c:\mysql\lib\libmysql.lib
Built mysql project,
Copied resulting files from C:\Qt\Qt5.1.1\5.1.1\Src\qtbase\plugins\sqldrivers
qsqlmysqld.dll qsqlmysql.dll in
C:\Qt\Qt5.1.1\5.1.1\mingw48_32\plugins\sqldrivers
libqsqlmysql.a and libqsqlmysqld.a in
C:\Qt\Qt5.1.1\5.1.1\mingw48_32\lib

I am sure it has something to do with database plugin but...
When application starts (with F5) it successfully connects to database

What am i doing wrong?