Qmake does not support build directories below the source directory

Jay picture Jay · Oct 31, 2010 · Viewed 26.9k times · Source

I have created an application that compiles and runs like a charm on OS-X. I would now like to start getting it to work on Windows. To start, I copied the project to a windows machine and just tried to compile, but got this error:

:: warning: Qmake does not support build directories below the source directory.

Any ideas?

Answer

andref picture andref · Oct 31, 2010

Set the shadow build directory to some folder on the same level of your project directory:

folder/
  project/
  project-shadow-build-release/
  project-shadow-build-debug/

You can do this in the "Projects" view, via the toolbar on the left. To me, this warning was just an annoyance, a project never failed to build because of it.