Reputation: 3922
I've added a class to my project. After some time I resigned from that class and removed both source and header (from Qt Designer). Class is not included or imported anywhere, but when I build project, i'm getting message:
:-1: error: dependent 'C:\Qt\Project\dists\registration.h' does not exist.
I tried to search for registration.h over all files in project, deleted debug folder. There are no any result. Class is not referenced anywhere. Still can't build project.
Where are these hell dependencies then?
Upvotes: 4
Views: 6893
Reputation: 17
i had the same problem, but i did find the error.
it's because of your .pro
file still has the file C:\Qt\Project\dists\registration.h
you have to remove that file from HEADERS
in your .pro
then clean your project and qmake it and compile it. then it will work.
Upvotes: 2
Reputation: 85
For the sake of those who will seek for the answer later, there is another way to fix that.
I tried to search for registration.h over all files in project, deleted debug folder. There are no any result. Class is not referenced anywhere. Still can't build project.
If you search in all files of the project, using * to seek for all types of files, you will find makefiles that still use these references.
The simple way to get rid of the error is to run qmake on the project in QtCreator. It rewrites these makefiles.
Upvotes: 4
Reputation: 3922
Ok, I've figured it out. Strange...
I've removed files dists.pro.user
and dists.pro.user.ddfc87e
.
After new project configuration it started to work (if someone knows why, will be great to know it... )
Thanks for attention ;)
Upvotes: 6