Home > database >  exe file is not running in Release folder
exe file is not running in Release folder

Time:11-30

My project IDE: Visual Studio 2019, Qt 5.15.0.

I'm trying to launch the application by the project_name.exe file of the release build, but nothing happens.

The project_name.exe file of Debug mode is running well.

The project is running well also in IDE in both Debug and Release modes.

I added Qt Bin directory to the PATH.

I tried windeployqt command but it didn't help.

I copied to Release folder all the dll files the application depends on, according to the build output and Dependencies tool, but then I couldn't run it neither from the exe file nor from the IDE (there are no any compilation errors or error messages when I'm trying to run it).

What is missing for running the exe file from Release folder?

CodePudding user response:

Sorry I cannot make comment because my reputation is too low.

Do you mean that you can run the application in IDE with Working Directory = project directory, but cannot run with Working Directory = release directory?

My guess is some files cannot be found because of the relative path, such as translation files.

Have you tried to copy the .exe to the project dir and run?

  • Related