Coliwack
Coliwack

Reputation: 21

Ubuntu 14.04 LTS x86-64bit Qt Creator 3.0.1 Kit Qt 4.8.6 Failed to start program. Path or Permissions Wrong?

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

Answers (1)

code_fodder
code_fodder

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):

  • In a terminal cd /path/to/your/executable. Then `./program'
    • If that does not work do sudo chmod 777 program and try again.
  • If / when you get this running in a terminal try looking in QtCreator build path under Projects --> General --> Build Directory and check this path is correct.
  • In QtCreator check the 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

Related Questions