Qmake does not support build directories below the source directory
2011-07-13 16:47
1036 查看
把build directory清空,或者把上面的shadow build取消勾选,重新加载工程就OK了
Just remove the files with the
Don't copy your project.pro.user file when you are copying a project from one machine to another, or from one directory to another. When you open the project, Qt Creator will offer to create a new build directory in the proper place.
Set the shadow build directory to some folder on the same level of your project directory:
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.
Andref gave the correct answer to resolve this warning, but you may want to understand why this requirement exists.
In fact, the build directory must be at the same folder level as the project (i.e. it can't be above or below). The reason why is that the linker is called from the build directory. Hence, any relative paths to library files will be different than what you entered in your project file.
It kinda sucks. I like to put all intermediate files in their own folder. But you simply can't with qmake.
Just remove the files with the
pro.userextension , worked for me
.pro.userare generated files by Qt Creator. They are unrelated to
qmakeand should not be touched (and not put into a VCS for that matter)
Don't copy your project.pro.user file when you are copying a project from one machine to another, or from one directory to another. When you open the project, Qt Creator will offer to create a new build directory in the proper place.
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.
Andref gave the correct answer to resolve this warning, but you may want to understand why this requirement exists.
In fact, the build directory must be at the same folder level as the project (i.e. it can't be above or below). The reason why is that the linker is called from the build directory. Hence, any relative paths to library files will be different than what you entered in your project file.
It kinda sucks. I like to put all intermediate files in their own folder. But you simply can't with qmake.
相关文章推荐
- QT creator 错误 Qmake does not support build directories below the source directory
- Qmake does not support build directories below the source directory 解决办法
- Ubuntu环境下OpenCV 3.2版本中CMake error the source directory does not exist
- gradle build The SDK directory does not exist
- hyper-v,RHEL5.3 x64, LIC:Your system DOES NOT support the timesource driver
- Qtcreator远程调试出现“The selected build of GDB does not support Python scripting.It cannot be used .."
- MySQL编译安装的CMake Error: The source directory "/root/mysql-5.6.10/-with-ssl" does not exist.
- Error starting the test run: Build directory of the test run is not specified or does not exist
- Ubuntu环境下OpenCV 3.2版本中CMake error the source directory does not exist
- bug:m2eclipse中build多模块maven项目报错:The source must not be a directory
- CMake Error: The source directory "D:/opencv" does not appear to contain CMakeLists.txt.
- The data source does not support server-side data paging.
- mysql 5.7.21 CMake Error: The source directory "/data/server/mysql" does not appear to contain CMak
- CMake Error: The source directory "/root/mysql-5.5.29-linux2.6-x86_64" does not appear to contain CM
- mysql配置目录错误:在安装mysql 5.6.19 时执行cmake命令是出现CMake Error: The source directory does not appear to contai
- The package does not support the device architecture (x86). You can change the supported architectures in the Android Build section of the Project Opt
- 解决CMake Error: The source directory "*" does not appear to contain CMakeLists.txt.
- The associated COM server does not support ActiveX Document embedding
- Source code does not match the bytecode
- Java-出现The source attachment does not contain the source for the file xxx class