Tzar
Tzar

Reputation: 1819

Qt5Cored.dll missing when trying to run application

I'm using Visual Studio 2013 Ultimate.

My Qt version is 5.2.1

Am using a specific build for VS2013 which I obtained from here.

Now, what I did:

  1. Created a new Qt Application from Visual Studio.
  2. Typed in my logic and the code.
  3. Built it successfully in x64 Debug mode.
  4. Ran the application successfully.

Everything good so far.

Now the problem:

  1. I restart my Visual Studio and load the project.
  2. It is built successfully (in x64 Debug).
  3. Now, am unable to run it. I get the error:

    The program can't start because Qt5Cored.dll is missing from your computer.
    Try reinstalling the program to fix this problem.
    

It ran the first time when I created the application. Now it won't run.

I tried simulating the problem, and this happens everytime. Runs the first time, and doesn't run after Visual Studio restart.

Please help me resolve this issue.

Thanks in advance.

Upvotes: 3

Views: 13298

Answers (3)

Ahmed
Ahmed

Reputation: 1

here is what i did and it worked :D
first : make sure you are building a release version not a debug version second : it asked for the qt5core.dll when you copy it to the same path of your program it may ask for other *.dll files so i put the program in the folder containing all the dlls :D which is C:\Qt\Qt5.7.0\5.7\mingw53_32\bin or according to your installation ..it worked well any way this folder (as i think) contains all DLL libraries you may need with your program so to know what exactly you need from it try to start your program many times in another location and in every time you will know another dll needed according to your programming .. that method worked but i think there may be a more cleaver solutions we have to dig for :)

Upvotes: -1

lrineau
lrineau

Reputation: 6274

The first time you in debug mode. Probably in that case Qt5Cored.dll (with a d in the name) was used. Maybe in the second build, you build in release mode, and for some reason Qt5Core.dll is not found in the PATH.

Upvotes: 0

Hazem Abdullah
Hazem Abdullah

Reputation: 1893

From project properties you have to go to debugging -> Environment -> and write PATH=qt5 dll paths Or you have to put the dlls next to the exe.

Upvotes: 4

Related Questions