Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problem in rebuild/build/clean in Qt Creator
QtWS25 Last Chance

Problem in rebuild/build/clean in Qt Creator

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmakecleanuprebuild
3 Posts 3 Posters 704 Views
  • 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.
  • L Offline
    L Offline
    leonardo M B
    wrote on last edited by leonardo M B
    #1

    So I'm having linking error with new files I added to our big project. I think it must be something that is not cleaned in the project, but my files are not rebuilded it all, I have to manually delete all of them.

    I found the following difference between the Makefile.debug of one of my colleagues and mine.

    Mine:

    distclean: clean 	
    	-$(DEL_FILE) .qmake.stash debug/lib.a	
    	-$(DEL_FILE) $(DESTDIR_TARGET)	
    	-$(DEL_FILE) Makefile.Debug
    

    Colleague(The one that works):

    distclean: clean 
    	-$(DEL_FILE) debug/lib.a
    	-$(DEL_FILE) $(DESTDIR_TARGET)
    	-$(DEL_FILE) Makefile.Debug
    

    So I supose I have to have the same MakeFile result after the qmake. How can I adjust it?

    C JoeCFDJ 2 Replies Last reply
    0
    • L leonardo M B

      So I'm having linking error with new files I added to our big project. I think it must be something that is not cleaned in the project, but my files are not rebuilded it all, I have to manually delete all of them.

      I found the following difference between the Makefile.debug of one of my colleagues and mine.

      Mine:

      distclean: clean 	
      	-$(DEL_FILE) .qmake.stash debug/lib.a	
      	-$(DEL_FILE) $(DESTDIR_TARGET)	
      	-$(DEL_FILE) Makefile.Debug
      

      Colleague(The one that works):

      distclean: clean 
      	-$(DEL_FILE) debug/lib.a
      	-$(DEL_FILE) $(DESTDIR_TARGET)
      	-$(DEL_FILE) Makefile.Debug
      

      So I supose I have to have the same MakeFile result after the qmake. How can I adjust it?

      C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      @leonardo-M-B The Makefile is created when you run qmake against your PRO file.

      1 Reply Last reply
      0
      • L leonardo M B

        So I'm having linking error with new files I added to our big project. I think it must be something that is not cleaned in the project, but my files are not rebuilded it all, I have to manually delete all of them.

        I found the following difference between the Makefile.debug of one of my colleagues and mine.

        Mine:

        distclean: clean 	
        	-$(DEL_FILE) .qmake.stash debug/lib.a	
        	-$(DEL_FILE) $(DESTDIR_TARGET)	
        	-$(DEL_FILE) Makefile.Debug
        

        Colleague(The one that works):

        distclean: clean 
        	-$(DEL_FILE) debug/lib.a
        	-$(DEL_FILE) $(DESTDIR_TARGET)
        	-$(DEL_FILE) Makefile.Debug
        

        So I supose I have to have the same MakeFile result after the qmake. How can I adjust it?

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by JoeCFD
        #3

        @leonardo-M-B I guess your Qt Creator version could be newer than the one of your colleagues because .qmake.stash is available . Your distclean might be even better since it deletes .qmake.stash as well. No worries about the difference.
        make distclean simply deletes everything in the build dir.
        yours is even cleaner.

        1 Reply Last reply
        0

        • Login

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