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. How do people typically manage their workspace? (i.e. build folder clutter)
Forum Updated to NodeBB v4.3 + New Features

How do people typically manage their workspace? (i.e. build folder clutter)

Scheduled Pinned Locked Moved Solved General and Desktop
qtcreator
6 Posts 4 Posters 1.9k Views 4 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by A Former User
    #1

    Hi – simple question. I have a workspace defined for learning Qt where all my projects are saved, etc. It also seems like the default location for saving the debug and release builds. I would like to change that.

    What I end up with it is:
    marble_test1 <- project folder
    build-marble_test1-Desktop_Qt_5_5_1_clang_64bit-Debug <- debug folder

    I am coming from a Flex background where things are saved to bin-debug and bin-release directories within the project directory – that is what I would like to set up (unless someone tells me that is a "Bad Thing To Do").

    I see in the QtCreator prefs that there is a default build path (below) but I don't understand it enough to change it.

    ../build-%{CurrentProject:Name}-%{CurrentKit:FileSystemName}-%{CurrentBuild:Name}

    Can someone explain what I need to edit in the above path?

    – thanks!

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

      Hi I have installed a ramdisk and just change it to use that drive (e:)

      e:/build-%{CurrentProject:Name}-%{CurrentKit:FileSystemName}-%{CurrentBuild:Name}

      you could make folder on c:\builds and set it to that

      c:/builds/build-%{CurrentProject:Name}-%{CurrentKit:FileSystemName}-%{CurrentBuild:Name}

      1 Reply Last reply
      1
      • Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by
        #3

        unless someone tells me that is a "Bad Thing To Do"

        It's not "bad", but it's a lot cleaner to keep the build dirs out of the source tree, especially if you're keeping your project in some version controlled code repository. This way you're not polluting the source with build artifacts and it's a little easier to move/delete/share the source.

        The default build directory is just that - the default that will be used when you're first configuring your project. It's just a convenience feature and you can change the path later for each individual project in the "Projects" tab Build Settings under "Build directory".

        The snippet provided by default is just a standard path with some variables. ".." means "directory up" and variables are placed in %{}. You can click the "AB" icon to see a list of possible variables and what they expand to.

        To get bin-release you would use bin-%{CurrentBuild:Type}, but I suggest you build out of source tree and use something like ../bin-%{CurrentBuild:Type}

        ? 1 Reply Last reply
        1
        • Chris KawaC Chris Kawa

          unless someone tells me that is a "Bad Thing To Do"

          It's not "bad", but it's a lot cleaner to keep the build dirs out of the source tree, especially if you're keeping your project in some version controlled code repository. This way you're not polluting the source with build artifacts and it's a little easier to move/delete/share the source.

          The default build directory is just that - the default that will be used when you're first configuring your project. It's just a convenience feature and you can change the path later for each individual project in the "Projects" tab Build Settings under "Build directory".

          The snippet provided by default is just a standard path with some variables. ".." means "directory up" and variables are placed in %{}. You can click the "AB" icon to see a list of possible variables and what they expand to.

          To get bin-release you would use bin-%{CurrentBuild:Type}, but I suggest you build out of source tree and use something like ../bin-%{CurrentBuild:Type}

          ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          @Chris-Kawa

          It's not "bad", but it's a lot cleaner to keep the build dirs out of the source tree

          Good point. With Flex/Flash Builder and git, I used the gitIgnore file to keep things tidy but right now I am just learning so not using any source control.

          (I should probably be spending more time on the "learning" part and less on the "housekeeping" part.. . ;-)

          thanks!

          1 Reply Last reply
          0
          • ? A Former User

            Hi – simple question. I have a workspace defined for learning Qt where all my projects are saved, etc. It also seems like the default location for saving the debug and release builds. I would like to change that.

            What I end up with it is:
            marble_test1 <- project folder
            build-marble_test1-Desktop_Qt_5_5_1_clang_64bit-Debug <- debug folder

            I am coming from a Flex background where things are saved to bin-debug and bin-release directories within the project directory – that is what I would like to set up (unless someone tells me that is a "Bad Thing To Do").

            I see in the QtCreator prefs that there is a default build path (below) but I don't understand it enough to change it.

            ../build-%{CurrentProject:Name}-%{CurrentKit:FileSystemName}-%{CurrentBuild:Name}

            Can someone explain what I need to edit in the above path?

            – thanks!

            TheBadgerT Offline
            TheBadgerT Offline
            TheBadger
            wrote on last edited by
            #5

            @TOMATO_QT said:

            I have a workspace defined for learning Qt where all my projects are save

            I also has such a folder.

            What I did is took the original path and updated it as follow :

            ../builds/%{CurrentProject:Name}-%{CurrentKit:FileSystemName}-%{CurrentBuild:Name}
            

            So now in my test folder I have one builds folder and in there it contains the builds for all other applications and tests.


            Check out my SpellChecker Plugin for Qt Creator @ https://github.com/CJCombrink/SpellChecker-Plugin

            ? 1 Reply Last reply
            0
            • TheBadgerT TheBadger

              @TOMATO_QT said:

              I have a workspace defined for learning Qt where all my projects are save

              I also has such a folder.

              What I did is took the original path and updated it as follow :

              ../builds/%{CurrentProject:Name}-%{CurrentKit:FileSystemName}-%{CurrentBuild:Name}
              

              So now in my test folder I have one builds folder and in there it contains the builds for all other applications and tests.

              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              @TheBadger

              That seems what I am looking for: just to not clutter up my project folder with lots of "build" folders. etc.

              thanks!

              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