1

I was making a sleeping detection program with GUI. I decided to choose Qt for the project. I was able to build the program but when I ran it, this message popped up which I had no idea what was wrong.

Starting C:\Users\Helianthus\Documents\QtProject\build-facelandmark-Desktop_Qt_5_11_1_MinGW_32bit-Release\release\facelandmark.exe...

Failed to start program. Path or permissions wrong?

C:/Users/Helianthus/Documents/QtProject/build-facelandmark-Desktop_Qt_5_11_1_MinGW_32bit-Release/release/facelandmark.exe exited with code -1

The process failed to start. Either the invoked program "C:/Users/Helianthus/Documents/QtProject/build-facelandmark-Desktop_Qt_5_11_1_MinGW_32bit-Release/release/facelandmark.exe" is missing, or you may have insufficient permissions to invoke the program.

Mohammad Kanan
  • 4,452
  • 10
  • 23
  • 47
Helianthus
  • 11
  • 3

2 Answers2

0
  1. Open the Qt installation path(such as:'C:\Qt\Qt5.14.2\Tools\QtCreator\bin').

  2. Right click on the 'QtCreate.exe' program.

  3. Select 'Attributes' or 'Property' on the Menu.

  4. Select 'Compatibility' tab on the popup window.

  5. Click 'Change settings for all users' button.

  6. Check 'Run as administrator'.

  7. Click 'OK' to close all the popup window.

  8. Restart QtCreator, you will find it works correctly.

David Buck
  • 3,752
  • 35
  • 31
  • 35
Allen ZHU
  • 690
  • 5
  • 14
0

Just had the same problem, I fixed it by doing the following:

Go to Tools -> Options -> Buid & Run, if you scroll down the bottom of the dialog, there is a dropdown field called Build Before Deploying, you just need to set that to Build only the application to be run, then run the application again.

Ahmad Khudeish
  • 1,017
  • 13
  • 15