c++ - Qt executable error- dll library -
a qt application runs when executed qtcreator, doesn't wont run when try execute debug folder (without qtcreator). asked lots of .dll files , downloaded them 1 one,and added debug folder. got error:
the program can't start because libwinpthread-1.dll missing computer. try reinstalling program fix problem.
i can't find libwinpthread-1.dll anywhere on internet. did wrong?
the path executable is:
c:\qt\tools\qtcreator\bin\build-simpletext1_3-desktop_qt_5_2_1_mingw_32bit\debug
the project file:
#------------------------------------------------- # # project created qtcreator 2014-04-04t14:29:48 # #------------------------------------------------- qt += core gui greaterthan(qt_major_version, 4): qt += widgets target = simpletext1_3 template = app sources += main.cpp\ mainwindow.cpp headers += mainwindow.h forms += mainwindow.ui config += console c++11 qmake_cxxflags += -std=c++11
and main.cpp:
#include "mainwindow.h" #include <qapplication> int main(int argc, char *argv[]) { qapplication a(argc, argv); mainwindow w; w.show(); return a.exec(); }
when run application in qt creator every thing when run .exe file fro debug folder dll missing error. it`s true! first set qt creator release mode. must copy these dll & folder release folder:
platforms --> folder icudt52.dll icuin52.dll icuuc52.dll msvcp110.dll msvcr110.dll qt5core.dll qt5gui.dll qt5widgets.dll
above dll visual studio compiler & core & gui library.
good luck. ya ali.
Comments
Post a Comment