Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Debug compilation no longer includes changes in source code?
Forum Updated to NodeBB v4.3 + New Features

Debug compilation no longer includes changes in source code?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 3 Posters 511 Views 1 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.
  • H Offline
    H Offline
    hb22
    wrote on last edited by
    #1

    I'm new to QT, so I'm starting working through some of the basic tutorials. Currently, I'm working through the Address Book tutorial. At some point (and I'm not sure what I did that changed it), the compiler stopped compiling changes to the source code.

    When I click "Build" or "Run", the build progresses and shows as complete, but the launched application is still the same as before. I've tried to backtrack by commenting out the latest additions, but they still show up. I've tried adding new things, but they don't show up either. I've even tried deleting the CMake files and the entire build folder and regenerating it, but no luck.

    What makes it even odder to me is that everything works fine if I build in "Release" mode. New changes to the source code are detected and compiled properly. I could just continue on as if nothing happened, but I want to know how to get the debug build to work properly.

    Can anyone advise?

    1 Reply Last reply
    0
    • AxelViennaA Offline
      AxelViennaA Offline
      AxelVienna
      wrote on last edited by
      #2

      Clean your debug build by right clicking within Qt Creator and choosing “clean project”. Then you can try to build and run and unless your project is misconfigured, it should work.

      C++ and Python walk into a bar. C++ reuses the first glass.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hb22
        wrote on last edited by
        #3

        I tried that-on the compile output screen I get the error: "Cleaning... ninja: error: remove(program name.exe): Permission denied" where program name is the name of the program.

        Are there any special permissions that QT Creator needs?

        jsulmJ 1 Reply Last reply
        0
        • AxelViennaA Offline
          AxelViennaA Offline
          AxelVienna
          wrote on last edited by
          #4

          Qt needs write permissions on the build tree, which in your case it seems to miss. You can delete the entire debug build directory as an admin and try again.

          C++ and Python walk into a bar. C++ reuses the first glass.

          1 Reply Last reply
          1
          • H hb22

            I tried that-on the compile output screen I get the error: "Cleaning... ninja: error: remove(program name.exe): Permission denied" where program name is the name of the program.

            Are there any special permissions that QT Creator needs?

            jsulmJ Online
            jsulmJ Online
            jsulm
            Lifetime Qt Champion
            wrote on last edited by jsulm
            #5

            @hb22 Maybe your application is still being executed (even if there is no window)? On Windows you get this error when you're trying to write/delete an executable which is running.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1

            • Login

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