February 23, 2012

shoyeb shoyeb
Lab Rat
99 posts

[SOLVED]Failed to start program. Path or permissions wrong?

 

Hi,

i am having a problem while running the spectrum analyser example on my Windows machine.

the program is building properly without any errors..

but when i am running the program it shows me following error…

Failed to start program. Path or permissions wrong?

and the program is terminated…
i dont know wat to do with it…

please help me with this…

thanx in advance..

 Signature 

There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code.

12 replies

February 23, 2012

Tobias Hunger Tobias Hunger
Mad Scientist
3156 posts

Does the file exist in the place shown?

February 23, 2012

shoyeb shoyeb
Lab Rat
99 posts

which place??
sorry i didn’t get u…

 Signature 

There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code.

February 23, 2012

foxyz foxyz
Lab Rat
30 posts

Maybe You’ve already executed an instance on your IDE environment. Or, You used a shadow make, the executable file will be linked under shadow directory

 Signature 

I just know coding and coding

February 23, 2012

shoyeb shoyeb
Lab Rat
99 posts
foxyz wrote:
Maybe You’ve already executed an instance on your IDE environment. Or, You used a shadow make, the executable file will be linked under shadow directory

from the time i started this its showing me error..
donno wat to do..

 Signature 

There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code.

February 23, 2012

Tobias Hunger Tobias Hunger
Mad Scientist
3156 posts

First thing: Please check whether the file you want to run was actually created. Go into your build directory and check that it is indeed where it should be.

February 23, 2012

shoyeb shoyeb
Lab Rat
99 posts

@tobias

yes my file is which i want to run is created, its there in build directory…

 Signature 

There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code.

February 23, 2012

Tobias Hunger Tobias Hunger
Mad Scientist
3156 posts

So is creator trying to run that file? What does Projects->Run Settings say? What is it trying to execute?

February 23, 2012

shoyeb shoyeb
Lab Rat
99 posts

it is trying to execute…

H:\QtSDK\Demos\4.7\spectrum-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug\spectrum.exe

and the working directory is…

H:\QtSDK\Demos\4.7\spectrum-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug

 Signature 

There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code.

February 23, 2012

Tobias Hunger Tobias Hunger
Mad Scientist
3156 posts

So does H:\QtSDK\Demos\4.7\spectrum-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug\spectrum.exe exist? Can you run it from the shell?

February 23, 2012

shoyeb shoyeb
Lab Rat
99 posts

omg…

it is not there…
so wat shall i do then..

 Signature 

There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code.

February 23, 2012

shoyeb shoyeb
Lab Rat
99 posts

@tobias

it is working now…
the exe file which i was searching was not there in

H:\QtSDK\Demos\4.7\spectrum-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug

directory..
instead of that it was there in the

H:\QtSDK\Demos\4.7\spectrum-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK__Debug\debug

directory..

so i changed the run configuration and its working now….

thanx tobias for pointing out my mistake…

 Signature 

There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code.

February 23, 2012

mlong mlong
Mad Scientist
1517 posts

Be sure and edit your first post to add [Solved] to the title. Thanks!

 Signature 

Senior Software Engineer
AccuWeather Enterprise Solutions
/* My views and opinions do not necessarily reflect those of my employer.  Void where prohibited. */

 
  ‹‹ How can we set id to a widget in Qt?      [SOLVED]DateAndTime ››

You must log in to post a reply. Not a member yet? Register here!