Environment Var Issue
I am a brand new
QT Qt user and having issues with running the .exe of the app I just created. Here is an image showing that the variable that the .exe is complaining about is in the directory that the path is set to. Is there something I’m missing? Thanks!
Edit: It is QT, not QT, as is explained in the text in the top; Andre
You need to make sure that all the library files that your application depends on can be found by the application. One way (not the only one) is to copy all these files to the same directory as your executable. the mingw dll is one of those, but so are the Qt dlls for the modules your application uses. Note that your screen shot shows the build settings, not the run settings. These may or may not be the same.
Ok, so it looks like your MSVC redistributables are not found. Find these files (correct verions), and put them in a place your application can find them.
However, could you check what compiler toolchain you are actually using? It seems that you are using MSVC after all, and not mingw. You can check that in the Project tab in Creator.
MSVC redistributables are not found. Find these files (correct verions), and put them in a place your application can find them.Ok, so it looks like your
No, MSVCRT is normally found via the manifest, so inside the winsxs directory, when the dll is build via MSVS tool chain. Also it would be interesting, on which way the msvcrt comes into the game, so which dll depends on it?
Then open the manifest of the file (it can be extracted using mt.exe or using MSVS) and check the needed version of the msvcrt.
Can you also check the View/Full paths option in Dependency Walker? That way you will be able to see the full path of the Qt dlls, and can see if the correct ones are being picked up. Can you post a screenshot with the full paths? When looking at your current screenshot, then it looks like the incorrect QtGui is being picked up because it has a different link time than the QtCore one. The one for QtGui is before Qt 4.7.3 was released. The problem seems to be that QtCore and QtGui do not match, but if you show the full paths then this will be more visible.