Sublime Text 3 中的 Qt 构建系统不起作用 [英] Build system for Qt in Sublime Text 3 not working
本文介绍了Sublime Text 3 中的 Qt 构建系统不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下无法工作的构建系统文件.
I have the following build system file which not working.
{
"cmd" : ["qmake", "-project"],
"cmd" : ["qmake"],
"cmd" : ["make"],
"working_dir": "${project_path:${folder}}",
}
没有生成文件.通常应创建以下文件:
No files are generated. Usually following files should be created:
- qmake -project 生成一个 .pro 文件.
- qmake 生成 makefile
- make 生成可执行文件
如何在构建文件中运行多个命令?
How can I run multiple commands in the build file?
推荐答案
您可以制作一个包含所有命令的 bash 文件,并将命令设置为该文件.
You could make a bash file with all the commands in it, and set the command to that.
{
"cmd" : ["my_build.sh"],
"working_dir": "${project_path:${folder}}",
}
# my_build.sh
qmake -project
qmake
make
这篇关于Sublime Text 3 中的 Qt 构建系统不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文