简体   繁体   English

Qt应用程序未运行

[英]Qt Application not running

I am trying to run a simple "Hello, world" console application but I am experiencing some errors when compiling that I am not familiar with. 我正在尝试运行一个简单的“ Hello,world”控制台应用程序,但在编译时遇到了一些我不熟悉的错误。 I have done a bit of research into similar problems with Qt but I haven't been able to find a solution. 我已经对Qt的类似问题进行了一些研究,但未能找到解决方案。 The closest solution I have come across was to change my Patch Command setting under: 我遇到的最接近的解决方案是在以下位置更改我的补丁命令设置:

Preferences -> Environment -> System -> Patch Command

to

usr/bin/xterm -e

However, when I try to do this it goes red indicating that I do not have this file. 但是,当我尝试执行此操作时,它变为红色,表示我没有此文件。

Environment Preferences Window 环境首选项窗口

The following image is a screenshot of what is displayed in the terminal window when attempting to compile my project. 下图是尝试编译我的项目时终端窗口中显示的屏幕快照。

Console Application Output 控制台应用程序输出

Any help on this problem would be much apprectiated! 对这个问题的任何帮助将不胜感激! It is very frustrating having something like this hold me back! 有这样的事情让我退缩真是令人沮丧!

Don't run your project in a terminal unless you actually select a working terminal, and that's all. 除非您实际上选择了一个有效的终端,否则不要在终端中运行项目,仅此而已。 The patch command is irrelevant in this anyway - it's not the terminal, but the patch command -- used to patch source code. 无论如何,patch命令都无关紧要-不是终端,而是patch命令-用于修补源代码。 You don't need it unless you explicitly use code patching. 除非明确使用代码补丁,否则不需要它。 Go to Projects (Ctrl-5), click on the active Run configuration for your project, uncheck "Run in terminal", done. 转到项目(Ctrl-5),单击项目的活动运行配置,取消选中“在终端中运行”,完成。

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

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