Debug compilation no longer includes changes in source code?
-
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?
-
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.
-
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.
-
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?