Getting executable to run from command line
-
My simple app runs fine within Qt creator. So I went to a command line and changed to the directory holding the compiled file. I also added the correct Mingw directory to the PATH statement (in front of other dirs).
When I run the app from the command line I get error:
The procedure entry point _Z20qResourceFeatureZlibv count not be located in the dynamic link library c:\myapp.exe
I'm sure the path matches the compiler used. Is there something else wrong here?
-
Hi,
Did you use windeployqt to properly deploy your application ?
-
@ocgltd if you're on windows, you can look into the install folder of Qt and look for this bat file
qtenv2.bat
and if you're using MSVC also look for and executevcvarsall.bat
that should set up the environment of your command prompt to the default settings of QtCreatorbut this is temporary solution, the proper way is to deploy the application with the deployment tool, or by hand, like the others suggested