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. Folder depending on the architecture doesn't work

Folder depending on the architecture doesn't work

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 3 Posters 2.8k 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.
  • L Offline
    L Offline
    limdor
    wrote on last edited by
    #1

    In my Qt project I have 4 build configurations in Windows.

    • x86 Debug
    • x86 Release
    • x64 Debug
    • x64 Release

    I want to put the exe file to a different folder for every one and I use the following lines in .pro:

    @DESTDIR = ./bin/$$ARCHITECTURE/$$COMPILATION
    OBJECTS_DIR = ./tmp/$$ARCHITECTURE/$$COMPILATION@

    It works fine and the final directories are:

    • ./bin/x86/debug
    • ./bin/x86/release
    • ./bin/x64/debug
    • ./bin/x64/release

    The problem is that when I want to execute the program from Qt Creator it always executes the x86 version.
    In "Projects" -> "Run Settings" -> "Executable" in the 4 builds appear:

    • Executable: (My Directory)\bin\x86\debug\MyExeFile.exe
    • Executable: (My Directory)\bin\x86\release\MyExeFile.exe
    • Executable: (My Directory)\bin\x86\debug\MyExeFile.exe
    • Executable: (My Directory)\bin\x86\release\MyExeFile.exe

    Any idea how to solve this problem?
    Thanks

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Why don't you just use shadow building and remove this hack?

      1 Reply Last reply
      0
      • L Offline
        L Offline
        limdor
        wrote on last edited by
        #3

        Because I want 4 different builds

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          You can set different shadow build dirs for different build configurations.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            limdor
            wrote on last edited by
            #5

            But it can be in the same directory where I put now? Or I have to put it outside?

            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