PDA

View Full Version : QtCored4.dll is missing from your computer



dmateer
7th May 2010, 21:15
I just installed Qt on Windows and have a very simple application. When I run from Qt Creator (debug or release), everything is fine. But when I double-click on the EXE on my computer, I get the following error:

---------------------------
somethin.exe - System Error
---------------------------
The program can't start because QtCored4.dll is missing from your computer. Try reinstalling the program to fix this problem.
---------------------------
OK
---------------------------

Here is the entirety of my program:

#include <QApplication>
#include <QLabel>

int main(int argc, char* argv[])
{
QApplication a(argc, argv);
QLabel l("test");
l.show();
return a.exec();
}

What step have I missed in the installation?

dmateer
7th May 2010, 21:18
Ahh ... stupid. I forgot to add to my PATH environment variable.

C:\Qt\2010.02.1\qt\bin

It's working now. D'oh!