Reputation: 21
I am trying to run a program in Qt Creator version 3.0.1, compiled on a 64-bit version of Ubuntu 14.04 using Qt 4.8.6. I have searched through other posts relating to the topic, and odds are that there's a conflict between 32-bit and 64-bit executable files. However, what is surprising to me is that the program was running just fine with no problems on the exact same environment two hours ago.
The error being returned is:
Failed to start program. Path or permissions wrong?
Again, I know that there might be a problem with the 32-bit and 64-bit stuff. I checked the executable with ldd and I got:
not a dynamic executable
This says to me that the executable cannot be run. But I still don't know why, because as I said, I was running the program two hours ago and it was working fine.
Upvotes: 1
Views: 404
Reputation: 16321
In fact I am fairly sure now that it is one of the following:
Try (where program
is the name of your executable):
cd /path/to/your/executable
. Then `./program'
sudo chmod 777 program
and try again.Projects --> General --> Build Directory
and check this path is correct.Run Settings --> Working Directory
It could be that you are running Qt as your normal user when before you where running as admin (or visa versa) and so either your paths have changed or the permissions are different.
I had a look around the web and found similar issues as well, this looks the same to me and I do recall something like this when running as admin once...
Upvotes: 1