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. [SOLVED] Change build path/directory

[SOLVED] Change build path/directory

Scheduled Pinned Locked Moved General and Desktop
build directory
4 Posts 3 Posters 19.3k Views
  • 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.
  • T Offline
    T Offline
    Tecnova
    wrote on last edited by Tecnova
    #1

    Hello,
    this seems like it is easealy done, but I just can't get it to work.
    I want to open and build my project on an other computer with the same Qt Version (for deployment tests).
    For test cases I made a simple demo project to test if I installed the qwt plugin correctly.
    Now when I want to build my real project, the debug build gets build in the same directory as the demo and when I want to build a release version the directory path is the same as the path on the other computer.
    New PC: C:\users\user1\build\release thats where I want to build the release
    Old PC: C:\users\user1\build-MyProject-release thats what Qt says where it wants to build the release
    So the compiler stops and gives me the error: Can't create directory: "C:\users\user1\build-MyProject-release" on the new PC.
    I also tried to change the build path on the old PC with the given options, but the build directory stays the same.

    I have set the build path in "Tools>Options>Build&Run" but the changes there are doing nothing.
    I also tried to set the DESTDIR variable in the .pro file. I used this: link text for the .pro file.

    Both projects are the same from a Server with SVN. So I kinda understand why the release build path is set to the path of the old computer but I don't understand why Qt doesn't accept my path changes.

    I use:
    Qt Creator 3.3.1
    Qt 5.4.1

    So my question now is: Why does Qt doesn't change the build directory name/path and how could I change it.

    Thanks for any help

    K 1 Reply Last reply
    0
    • T Tecnova

      Hello,
      this seems like it is easealy done, but I just can't get it to work.
      I want to open and build my project on an other computer with the same Qt Version (for deployment tests).
      For test cases I made a simple demo project to test if I installed the qwt plugin correctly.
      Now when I want to build my real project, the debug build gets build in the same directory as the demo and when I want to build a release version the directory path is the same as the path on the other computer.
      New PC: C:\users\user1\build\release thats where I want to build the release
      Old PC: C:\users\user1\build-MyProject-release thats what Qt says where it wants to build the release
      So the compiler stops and gives me the error: Can't create directory: "C:\users\user1\build-MyProject-release" on the new PC.
      I also tried to change the build path on the old PC with the given options, but the build directory stays the same.

      I have set the build path in "Tools>Options>Build&Run" but the changes there are doing nothing.
      I also tried to set the DESTDIR variable in the .pro file. I used this: link text for the .pro file.

      Both projects are the same from a Server with SVN. So I kinda understand why the release build path is set to the path of the old computer but I don't understand why Qt doesn't accept my path changes.

      I use:
      Qt Creator 3.3.1
      Qt 5.4.1

      So my question now is: Why does Qt doesn't change the build directory name/path and how could I change it.

      Thanks for any help

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Tecnova
      Did you run qmake from Qt creator after changing build folder?

      Vote the answer(s) that helped you to solve your issue(s)

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

        and if you just change it via Projects (lefts side, under welcome, edit etc) and then
        the Build directory in the General part ?

        The "Tools>Options>Build&Run is the default directory and will take effect if you make a new project.

        As far as i Know.

        1 Reply Last reply
        2
        • T Offline
          T Offline
          Tecnova
          wrote on last edited by
          #4

          ok that was the problem. In the Projects was the wrong build path. Now it works
          thanks a lot

          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