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. Full paths in the makefiles of a QtCreator project

Full paths in the makefiles of a QtCreator project

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 5 Posters 1.6k 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.
  • nulluseN Offline
    nulluseN Offline
    nulluse
    wrote on last edited by nulluse
    #1

    Seeing how the full paths are being used in the makefiles, how can a project can be moved to another directory after it has been created, or to another machine?

    1 Reply Last reply
    0
    • andrA Offline
      andrA Offline
      andr
      wrote on last edited by
      #2

      Generated Makefiles are not portable, their sources are (the .pro file when using qmake). You should not move generated Makefiles at all, and neither add to your VCS.

      1 Reply Last reply
      0
      • nulluseN Offline
        nulluseN Offline
        nulluse
        wrote on last edited by
        #3

        Is there a process to clean the project of the generated makefiles?

        kshegunovK 1 Reply Last reply
        0
        • nulluseN nulluse

          Is there a process to clean the project of the generated makefiles?

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by
          #4

          @nulluse
          Rerunning qmake will overwrite the make files.

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply
          0
          • nulluseN Offline
            nulluseN Offline
            nulluse
            wrote on last edited by
            #5

            I am 100% positive that after copying the project to a new location and realizing it was still looking at the source files under the old path, I ran qmake but nothing has changed. It was fixed after I deleted the makefiles on the command line though.

            kshegunovK 1 Reply Last reply
            0
            • nulluseN nulluse

              I am 100% positive that after copying the project to a new location and realizing it was still looking at the source files under the old path, I ran qmake but nothing has changed. It was fixed after I deleted the makefiles on the command line though.

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by kshegunov
              #6

              @nulluse
              That'd be strange. Running qmake overwrites the makefiles for me and always had, I've never faced such issue ...

              Read and abide by the Qt Code of Conduct

              1 Reply Last reply
              0
              • mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Very strange indeed
                I have my projects in dropbox so at work its
                c:\dropbox\xxx
                and at home
                its
                f:\dropbox\xxx
                And running qmake+rebuild all
                have so far function perfectly.

                1 Reply Last reply
                0
                • yuvaramY Offline
                  yuvaramY Offline
                  yuvaram
                  wrote on last edited by
                  #8

                  Hi ,
                  When QtProject what to be shifted from one location to other location (i.e., from folder X to folder Y or from machine X to machine Y).

                  1. When a Qtproject is compiled it generates build folder with make file, .a files, .o files and a .pro.user file in Project folder. These are system and compiler dependent. After changing location delete the .pro.user file.
                  2. After deleting .pro.user file try to open the project in Qt creator ,so it generates new .pro.user file according to new changes.
                  3. Running qmake generates new Makefile according to new location .

                  Yuvaram Aligeti
                  Embedded Qt Developer
                  : )

                  1 Reply Last reply
                  2

                  • Login

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