error: cannot open output file debug/Spiral.exe: Permission denied and collect2.exe:-1: error: error: ld returned 1 exit status in runing au app Qt name spiral



  • my source have no error,i use Qt4android on windows when at first time compile and run in mode debug Desktop mingw it work,when i close my app,and again i rum it work too.
    but when i edit my source and run it can not run and this error show.

    "error: cannot open output file debug/Spiral.exe: Permission denied and collect2.exe:-1: error: error: ld returned 1 exit status in runing au app Qt name spiral
    "
    i have to to close Qt and start Qt from first again to run my app that it's name is spiral.
    and after this (closing Qt and start )it work!!!!!!!!!
    where is my problem!Qt has a bug!
    thanks for reply


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Since you're on windows, is by any chance Spiral.exe still running when you try to build it again ? If so that's normal, Windows doesn't allow to replace a running instance of an application. Just stop it before building.



  • thanks for reply,i find three method for solving my problem.
    the best way for test my app go menu build >Run with out deployment (it is different run)
    it works!!!nice.
    the second way in tabs of below Qt issues ,aplication output and .....
    go to aplication output and in this tab close window output of your app that my app was spiral.
    the third way that i don't offer ,task manager and close process of your app.
    thanks for reply.


  • Moderators

    Qt has a bug!

    I would not jump to such conclusions right away.

    It sounds like your application does not terminate correctly. The methods you describe to "solve the problem" don't really solve it. You're just killing your app process this way. You should focus on fixing the app so that it really closes instead of just hiding the window. If you close its window and the process in the task manager is still there that's a bug in your program, not in Qt.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.