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.exeI'm sure the path matches the compiler used. Is there something else wrong here?
-
Hi,
Did you use windeployqt to properly deploy your application ?
-
@SGaist No - I'm trying to run it on the SAME machine where it was compiled, from the directory where QtCreator placed the exe.
-
@SGaist No - I'm trying to run it on the SAME machine where it was compiled, from the directory where QtCreator placed the exe.
@ocgltd if you're on windows, you can look into the install folder of Qt and look for this bat file
qtenv2.batand if you're using MSVC also look for and executevcvarsall.batthat 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