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. Get bundle of source code used in a project

Get bundle of source code used in a project

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 4 Posters 650 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.
  • J Offline
    J Offline
    JonathanA
    wrote on last edited by
    #1

    It seems like it should be a relatively easy thing for Qt Creator to do, but is there a way to grab all the source files used in a Qt project and put them in a single bundle, that I can give to someone else to build my project? Maybe another tool or something? All the files are in the project. It would be cool if I could just right click on the project and say "Zip project"!

    jsulmJ aha_1980A 2 Replies Last reply
    0
    • J JonathanA

      It seems like it should be a relatively easy thing for Qt Creator to do, but is there a way to grab all the source files used in a Qt project and put them in a single bundle, that I can give to someone else to build my project? Maybe another tool or something? All the files are in the project. It would be cool if I could just right click on the project and say "Zip project"!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @JonathanA Usually a VCS like Git is used to share code

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

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

        Hi
        You could also just zip the project folder from the FileManager

        1 Reply Last reply
        1
        • J Offline
          J Offline
          JonathanA
          wrote on last edited by
          #4

          But the code also comes from outside the project folder. And I just want to send the code for this project, not the rest of things out there. It would seem like Qt knows about the location of all the code and could just go get it for me.

          mrjjM 1 Reply Last reply
          0
          • J JonathanA

            But the code also comes from outside the project folder. And I just want to send the code for this project, not the rest of things out there. It would seem like Qt knows about the location of all the code and could just go get it for me.

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @JonathanA
            Do you mean that in the project folder you also have code that is not used in the project and you wish to exclude that when zipping ?
            Else i dont understand why zipping the folder is not exactly what you want :)

            J 1 Reply Last reply
            1
            • J JonathanA

              It seems like it should be a relatively easy thing for Qt Creator to do, but is there a way to grab all the source files used in a Qt project and put them in a single bundle, that I can give to someone else to build my project? Maybe another tool or something? All the files are in the project. It would be cool if I could just right click on the project and say "Zip project"!

              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @JonathanA if you use Git, the creator provides an archive action for that. Make sure you are using Creator 4.11 or newer. there must be a menu for that, but I just use Ctrl+ K git arch > Select Commit > Choose archive file > Done.

              Regards

              Qt has to stay free or it will die.

              1 Reply Last reply
              0
              • mrjjM mrjj

                @JonathanA
                Do you mean that in the project folder you also have code that is not used in the project and you wish to exclude that when zipping ?
                Else i dont understand why zipping the folder is not exactly what you want :)

                J Offline
                J Offline
                JonathanA
                wrote on last edited by
                #7

                @mrjj No, I mean the other way. Outside of the project folders (like in ../../IGCommon) are some files we use. So if I just zip up the project folder, it won't include those files.

                aha_1980A mrjjM 2 Replies Last reply
                0
                • J JonathanA

                  @mrjj No, I mean the other way. Outside of the project folders (like in ../../IGCommon) are some files we use. So if I just zip up the project folder, it won't include those files.

                  aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @JonathanA in tha case I'd write a script and call it as build targe or external tool.

                  Regards

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  0
                  • J JonathanA

                    @mrjj No, I mean the other way. Outside of the project folders (like in ../../IGCommon) are some files we use. So if I just zip up the project folder, it won't include those files.

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @JonathanA
                    Hi
                    Ah ok but that would assume it should be able to unpack on other pc in same locations and
                    say i have my external project files on E:\ or /home/username
                    Then other pc must have those folders as else unzipping the project would not work.

                    For such super zip to work, creator should be able to unzip in other locations pr zip location that is not possible to re-create and then also change the .pro file pr changed folder so it could be found in new locations.

                    So not sure it would be so simple to add to Creator.

                    But @aha_1980 sounds like GIT can do it so that would be worth checking out! :)

                    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