简体   繁体   English

Qt Creator项目更改目录

[英]qt creator project change directory

I want to redeploy an existing application developed in C++ , using Fltk toolkit, Clam compiler and make files. 我想使用Fltk工具包, Clam编译器和制作文件来重新部署用C ++开发的现有应用程序。 I want to use now Qt Creator to manage the project. 我现在想使用Qt Creator来管理项目。 I created a new project, importing the application files in Qt, with a new Mercurial repository, and I have now the set of files used by my project, which compiles and runs finely. 我创建了一个新项目,并使用一个新的Mercurial存储库在Qt中导入了应用程序文件,现在我的项目使用了一组文件,这些文件可以编译并正常运行。 But the Qt project files are within my src directory and I'd like to put them, with Mercurial repo, outside, in a specific build dir. 但是Qt项目文件在我的src目录中,我想将它们与Mercurial存储库放在外面的特定生成目录中。 How can I relocate the project files and Mercurial repo? 如何重新放置项目文件和Mercurial存储库? I've seen nothing in Qt wizards to do that. 在Qt向导中,我什么也没看到。 What files and paths do I change? 我要更改哪些文件和路径? How, eventually, can I use Scons instead of make? 最终,我如何才能使用Scons代替make?

SCons has a toolset for QT that you can load when creating the Environment, as follows: SCons具有用于QT的工具集,您可以在创建环境时加载该工具集,如下所示:

env = Environment(tools = ['qt'])

There is a more advanced qt toolset called qt4 , that can be downloaded separately, here . 有一个称为qt4的更高级的qt工具集,可以在此处单独下载。

Once you load this toolset, you can then use the Moc() , Uic() , and related Construction Variables as mention in the SCons man page . 加载此工具集后,您可以使用SCons手册页中提到的Moc()Uic()和相关的构造变量。

As for how to specify the location of the build files, there are plenty of other Questions/Answers in Stack Overflow that address this. 至于如何指定构建文件的位置,堆栈溢出中还有很多其他问题/答案可以解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM