[SOLVED] Failed to start program. Path or permissions wrong?
-
Hi All,
I am getting this message when I try to run my application. Please help.
I got the code from a book. Added "QT += core gui widgets" to the pro file.
Included some header files. Then ran qmake and when it builds fine.
But wen I try to run I get the above message.
Regards
-
Have you used search before posting?
Does any of those help?
http://qt-project.org/forums/viewthread/14785
http://qt-project.org/forums/viewthread/27482 -
I tried the second one but could not follow what it was saying.
How do I change the run configuration? Please advice.
F:\UNISA SRC\src\modelview\build-multiview-Desktop_Qt_5_0_2_MSVC2012_64bit-Debug\debug
I find a file with no name but type "Application" in this folder.
Regards
-
You can change current run configuration (if you have more than one) in the lower left corner of the creator, just above the green "play" buttons (or just ctrl+t to cycle through). To setup new or remove configurations go to the "Projects" tab as described "here":http://qt-project.org/doc/qtcreator-3.0/creator-run-settings.html
Anyway, before you do start fiddling with these options just try this:
- close creator
- remove directories: F:\UNISA SRC\src\modelview\build-multiview-Desktop_Qt_5_0_2_MSVC2012_64bit-[Release/Debug]
- remove <whatever>.pro.user file (not the <whatever>.pro file!)
- reopen the project in creator and recreate configuration when prompted
-
Tried everything still no luck.
The run settings seems to be fine.
Working directory
F:\UNISA SRC\src\modelview\build-multiview-Desktop_Qt_5_0_2_MSVC2012_64bit-Debug\debug
-
Is there an executable in that directory after build? If not there might be something wrong in your .pro file. Can you show it?
-
HI Chris,
Thanks for the help.
I did the dumb way. Made a new project and copied the code and its working now.
Thank you once again.
-
Don't use "setup" or "install" in executable names under Windows.
example: MyApp_Setup.exe needs admin permission.