Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. 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
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 5.2k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stackprogramer
    wrote on 10 Oct 2015, 10:13 last edited by stackprogramer 10 Oct 2015, 10:15
    #1

    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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 10 Oct 2015, 20:32 last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • S Offline
        S Offline
        stackprogramer
        wrote on 10 Oct 2015, 21:11 last edited by stackprogramer 10 Oct 2015, 21:14
        #3

        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.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on 11 Oct 2015, 17:54 last edited by
          #4

          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.

          1 Reply Last reply
          0

          1/4

          10 Oct 2015, 10:13

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved