Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Failed to start program. Path or permission wrong?
john_god last edited by
I installed latest Qt5 libraries, for linux 32bits, using the provided QtCreator 2.6.1. When creating new projects, it works fine, but fails with this error for my existint project
Failed to start program. Path or permissions wrong?
/home/joao/Qt4examples/mathgraphica-build-Desktop_Qt_5_0_0_gcc-Debug/mathgraphica exited with code -1 @
Only a Makefile is created inside of directory mathgraphica-build-Desktop_Qt_5_0_0_gcc-Debug. I tried deleting the .pro.user file, tried starting QtCreator as root, I get the same error. Qt version and kit look like they are configured ok.
My Qt version 4.8.1 works ok, but I just can't get Qt5 to work. I search in this forum for this error and every thing I tried has failed.
First: Please do not run creator as root, it is most likely not save to do that (root should not run anything that loads plugins IMHO;) and it should never be necessary anyway.
Does your project build ok? Usually this happens when the build stopped at some point and never created the results it was supposed to generate. Is the file you want to run anywhere (maybe in the source location)? Some projects ship with faulty build systems and need shadow building to be disabled.
john_god last edited by
Hi Tobias, thanks for your reply
bq. First: Please do not run creator as root, it is most likely not save to do that (root should not run anything that loads plugins IMHO;) and it should never be necessary anyway.
Ok, I won't :) , I saw that when googling and tought I give it a try.
bq. Does your project build ok?
Not really, I'm using shadow build, the diretory that is created only has one file called "Makefile", so no executable file is created. Right now I'm testing it in another PC with with Qt5 and Qt4.8.4 libraries. Both are configured in QtCreator shipped with Qt5. With Qt4.8.4 toolchain everything runs ok, the error only hapens with Qt5 toolkit. Qt5 also works ok with new projects created with QtCreator wizard.
So I'm thinkin if the error is related with migrating the project from Qt4 to Qt5, but if that was the case, I should get a more explicit error than "Failed to start program. Path or permissions wrong?"
bq. Some projects ship with faulty build systems and need shadow building to be disabled.
Well the project doenst have a buid system only the pro .file, and I am using shadow buid.
If this is related to the migration, then you should get better errors when building your code.
Once you try to run it and it is not there since it was not build then all creator can do at that point in time is to tell you that there is nothing there for it to run.
Try rebuilding your code:-)
Thanatos last edited by
I have the same issue. This message "Failed to start program. Path or permissions wrong?" shows up because qtcreator can't find Qt5Widgetsd.dll... but why? because i have it in /qtbase/libs/