Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator is messing with "Default Build Directory" setting?

Qt Creator is messing with "Default Build Directory" setting?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 1 Posters 30 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.
  • R Offline
    R Offline
    Robert Hairgrove
    wrote last edited by
    #1

    I'm not sure why, but this used to be working:

    In my global preferences, I have defined the "Default Build Directory" as follows:

    ../build/%{ActiveProject:Name}/%{Qt:Version}/%{BuildConfig:Name}
    

    The project is a TEMPLATE=subdirs project using qmake, and the project file is SBBL.pro. The project is structured like this:

    SBBL_DEV
    ├── SBBL_APP
    │   ├── 3rd_party
    │   ├── app
    │   ├──── include
    │   ├──── src
    │   ├──── SBBL.pro
    │   ├──── App.pro
    │   ├──── Libs.pro
    (etc.)
    

    Since I have things under app and 3rd_party under source code management (Fossil) in two different repositories, the idea is that when I build the project, the artifacts will stay outside of the folders which are under Fossil SCM, i.e.:

    SBBL_DEV
    ├── SBBL_APP
    │   ├── 3rd_party
    │   ├── app
    │   ├── build
    │   ├──── SBBL
    │   ├────── 6.11.0
    │   ├──────── Debug
    │   ├──────── Release
    │   ├── libs
    (etc.)
    

    When I open the project and examine the value of %{ActiveProject:Name}, this is SBBL as it should be. However, when I try to configure the project's kits, they all show build paths like this, e.g.:

    [...]/SBBL_DEV/SBBL_APP/build/6.11.0/Debug
    [...]/SBBL_DEV/SBBL_APP/build/6.11.0/Release
    [...]/SBBL_DEV/SBBL_APP/build/6.11.0/Profile
    

    The "SBBL" subfolder is missing!

    As I said, this used to be working correctly. Am I missing something?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Robert Hairgrove
      wrote last edited by
      #2

      I fixed this by replacing "%{ActiveProject:Name}" with just "%{Project:Name}".

      But how does one know the difference? In the list of variable replacements, they both resolve to "SBBL". Does this have to do with the "TEMPLATE=subdirs" setting?

      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