Environment Var Issue
-
Ok I ran dependency walker on the .exe if that is correct and got this:
-
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.
-
[quote author="Andre" date="1304400423"]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.[/quote]
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.
-
-
-
Hi,
I think your problem is, that you have QtCreator in the path, before your current Qt version you use. You see it, as the QtGui comes from:
c:\qtsdk\qtcreator\bin\qtgui4.dll, your QtCore comes from c:\users...
try putting all QtLibs you need beside your executable.
-
Or you can put the Qt version in c:\users...first in your global PATH and restart Qt Creator, that should ensure that the correct Qt dlls are being picked up. Then ensure you are using the "Qt in PATH" option in QtCreator.
-
Apparently my "Qt in PATH" isn't found?
-
Did you add yourQtVersion/bin first to the global PATH in your Control Panel/System/ Advanced System Settings/Environment Variables? And then restart Creator after having done so?