Failed to start program. Path or permissions wrong?
-
I built the project. Bulding succeded but the executable file is not there so i receive the message 'Failed to start program. Path or permissions wrong?' Naturally the programm cannot be executed because it is not created but Qt tells that the build succeded. I use linux Mint Nandia.
The project is already built and work in another directory, but i made changes and i want to rebuild it.
Please help. If you need further information i can tell you.. -
Oh, do tell us please :)
Have you moved the project together with .pro.user file by any chance? If so, first delete the .pro.user file, then open the project again.
If that is not the case, I would start by checking your .pro file, especially whether DESTDIR is set, or some INSTALLS stuff maybe. Also, check what happens when you toggle Shadow building in project options.
-
Check console output when doing a full rebuild - maybe linker has problems in writing the output file?
-
Hit Alt-4 in Qt Creator, or click on "Compile Output" button at the bottom of Qt Creator's window.
-
That looks like shadow building in works.
"Nothing to be done for 'first'" is standard make message. It's not an error as such - usually it means that the project is already built and there is no need to compile again.
-
Delete those makefiles.
But we're running in circles here, I'm afraid. I'm sure I've run into a similar problem before, but I don't remember what was the solution. We're probably missing something obvious.
-
Hi,
in this case, are you sure your project is setup correctly ? Could you share the pro file ? -
This may be similar problems as I had lately. However, I am on Windows 7 with creator 2.6.
I have a rather large project based on subdirs with some libs shared by a couple of applications.
I noted that changing the source with some debug statements and in the debugger there was no influence on what I had changed. As I found out later Qt creator compiled and linked always the release version only for this particular application. I did the whole bucket of things rebuild, clean and build (as separate steps) also at least some partly "Run qmake" until I found out what happened. In my case it was cured by "Run qmake" for the whole subdirs project. Suddenly the debug build was created.
It sounds a bit weird, but I assume Qt creator somehow looses track when switching between release and debug modes. IMO not really a logical behaviour, but I do not know what is actually happening in qt creator.Especially if you have a complex project, try "Run qmake".
-
[quote author="clouca" date="1367858735"]Yes it's very weird.. I am thinking to switch it in windows for better luck. I run linux on virtual machine, does this make any difference ?[/quote]
Do not know. I have not used Qt creator lately on a virtual machine.[quote author="SGaist" date="1367847901"]Hi,
in this case, are you sure your project is setup correctly ? Could you share the pro file ?[/quote]
at clouca: that is an option. Maybe someone sees an issue.Do you have a complex project?
-
Since it's a subfolder project, how do you setup your DESTDIR variables ?