<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[Solved]Qt error at Mac OS X: Cannot start the terminal emulator &#x27;xterm&#x27;.]]></title><description><![CDATA[<h2>I use Qt at Mac OS X(Qt_SDK_Mac64_offline_v1_1_3_en.dmg);</h2>
<p dir="auto">My problem is as below:<br />
I create a new "Qt Console Application", compile and build it;<br />
but, when I run it in debug mode, it appear a message:<br />
"Cannot start the terminal emulator 'xterm'."<br />
How can I  resolve it? Is anyone can help me?</p>
]]></description><link>https://forum.qt.io/topic/9617/solved-qt-error-at-mac-os-x-cannot-start-the-terminal-emulator-xterm</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 05:06:39 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/9617.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Sep 2011 09:16:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved]Qt error at Mac OS X: Cannot start the terminal emulator &#x27;xterm&#x27;. on Tue, 27 Sep 2011 11:28:16 GMT]]></title><description><![CDATA[<p dir="auto">the bug report was created by szuzsq<br />
<a href="https://bugreports.qt.nokia.com/browse/QTCREATORBUG-6150" target="_blank" rel="noopener noreferrer nofollow ugc">https://bugreports.qt.nokia.com/browse/QTCREATORBUG-6150</a></p>
]]></description><link>https://forum.qt.io/post/111166</link><guid isPermaLink="true">https://forum.qt.io/post/111166</guid><dc:creator><![CDATA[deleted487]]></dc:creator><pubDate>Tue, 27 Sep 2011 11:28:16 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Qt error at Mac OS X: Cannot start the terminal emulator &#x27;xterm&#x27;. on Wed, 21 Sep 2011 08:33:03 GMT]]></title><description><![CDATA[<p dir="auto">The error in xterm is not caused by your application, but your clicking on "X" button.</p>
<p dir="auto">QCoreApplication enters its event loop when you run a.exec(), and the application keeps running nonstop. When you click "X," the OS tries to terminate xterm by sending a termination signal. When xterm quits, it finds that you have a running program, so it pops that dialog to tell you that it has to terminate that program because the OS wants it to. It's not a problem, and you can ignore it.</p>
<p dir="auto">I don't have your problem with Terminal.app either building applications in debug or release mode using a custom-built Qt 4.7.4 with Qt Creator 2.3.0 (on Mac OS X 10.7.1). The content in your first window is correct, obviously. But Qt Creator tries to launch some other things in your case. Sorry, but I'm as much in the dark as you are.</p>
]]></description><link>https://forum.qt.io/post/110275</link><guid isPermaLink="true">https://forum.qt.io/post/110275</guid><dc:creator><![CDATA[uranusjr]]></dc:creator><pubDate>Wed, 21 Sep 2011 08:33:03 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Qt error at Mac OS X: Cannot start the terminal emulator &#x27;xterm&#x27;. on Wed, 21 Sep 2011 08:00:58 GMT]]></title><description><![CDATA[<p dir="auto">I mean why invoke statement<br />
@<br />
QCoreApplication a(argc, argv);<br />
return a.exec();<br />
@</p>
<p dir="auto">bring this error when using "/usr/X11/bin/xterm -e"</p>
]]></description><link>https://forum.qt.io/post/110272</link><guid isPermaLink="true">https://forum.qt.io/post/110272</guid><dc:creator><![CDATA[szuzsq]]></dc:creator><pubDate>Wed, 21 Sep 2011 08:00:58 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Qt error at Mac OS X: Cannot start the terminal emulator &#x27;xterm&#x27;. on Wed, 21 Sep 2011 07:54:53 GMT]]></title><description><![CDATA[<h2>I have tried these different two way.</h2>
<p dir="auto">1:====when I put in "/Applications/Utilities/Terminal.app",<br />
and then run debug model,it appear 4 terminal window:<br />
1).<br />
Last login: Wed Sep 21 15:34:38 on ttys002<br />
rene-mac:~ mike$ /Volumes/Mac_OS_4/test/test/test ; exit;<br />
hello</p>
<p dir="auto">2).<br />
Last login: Wed Sep 21 15:34:38 on ttys001<br />
rene-mac:~ mike$ /Volumes/Mac_OS_4/test/test ; exit;<br />
-bash: /Volumes/Mac_OS_4/test/test: is a directory<br />
logout</p>
<p dir="auto">[Process completed]</p>
<p dir="auto">3).<br />
Last login: Wed Sep 21 15:34:38 on ttys000<br />
rene-mac:~ mike$ /var/folders/Vc/VcNYECwgEOuL5wCCeLqh1++++TI/-Tmp-/qt_temp.ux4229/stub-socket ; exit;<br />
-bash: /var/folders/Vc/VcNYECwgEOuL5wCCeLqh1++++TI/-Tmp-/qt_temp.ux4229/stub-socket: Permission denied<br />
logout</p>
<p dir="auto">[Process completed]</p>
<p dir="auto">4).<br />
Last login: Wed Sep 21 15:34:11 on ttys003<br />
rene-mac:~ mike$ /Users/mike/Qt/Qt\ Creator.app/Contents/Resources/qtcreator_process_stub ; exit;<br />
This is an internal helper of Qt Creator. Do not run it manually.<br />
logout</p>
<h2>[Process completed]</h2>
<p dir="auto">it look like work well, but way happen to so much windows?</p>
<hr />
<p dir="auto">2:====when I put in "/usr/X11/bin/xterm -e",<br />
and then run debug mode,it work well,<br />
but when I try to close the window(click the "X" button at the left, top scope),<br />
it appear a error dialog as below:<br />
the inferior stopped because it received a signal from the Operating system.</p>
<h2>Signal name:     SIGHUP<br />
Signal meaning: Hangup</h2>
<p dir="auto">My code is so simple:<br />
@<br />
<a href="//main.cpp" target="_blank" rel="noopener noreferrer nofollow ugc">//main.cpp</a><br />
#include &lt;QtCore/QCoreApplication&gt;</p>
<p dir="auto">int main(int argc, char *argv[])<br />
{<br />
QCoreApplication a(argc, argv);</p>
<pre><code>printf("hello\n");
return a.exec&amp;#40;&amp;#41;;
</code></pre>
<h2>}<br />
@</h2>
<p dir="auto">when I try to comment some statement, as result below:<br />
@<br />
//QCoreApplication a(argc, argv);</p>
<pre><code>printf("hello\n");
return 0;
//return a.exec&amp;#40;&amp;#41;;
</code></pre>
<h2>@</h2>
<p dir="auto">it work well and the error dialog will never appear</p>
<hr />
<p dir="auto">My <a href="http://test.pro" target="_blank" rel="noopener noreferrer nofollow ugc">test.pro</a> file is:<br />
@<br />
QT       += core<br />
QT       -= gui</p>
<p dir="auto">TARGET = test<br />
CONFIG   += console<br />
CONFIG   -= app_bundle</p>
<p dir="auto">TEMPLATE = app</p>
<h2>SOURCES += main.cpp<br />
@</h2>
<p dir="auto">how can I resolve this problem?</p>
]]></description><link>https://forum.qt.io/post/110269</link><guid isPermaLink="true">https://forum.qt.io/post/110269</guid><dc:creator><![CDATA[szuzsq]]></dc:creator><pubDate>Wed, 21 Sep 2011 07:54:53 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Qt error at Mac OS X: Cannot start the terminal emulator &#x27;xterm&#x27;. on Wed, 21 Sep 2011 06:57:09 GMT]]></title><description><![CDATA[<p dir="auto">Could you guys please file that as a bug report? That should work out of the box IMHO.</p>
]]></description><link>https://forum.qt.io/post/110252</link><guid isPermaLink="true">https://forum.qt.io/post/110252</guid><dc:creator><![CDATA[tobias.hunger]]></dc:creator><pubDate>Wed, 21 Sep 2011 06:57:09 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Qt error at Mac OS X: Cannot start the terminal emulator &#x27;xterm&#x27;. on Wed, 21 Sep 2011 03:08:38 GMT]]></title><description><![CDATA[<p dir="auto">Just put in<br />
@/Applications/Utilities/Terminal.app@<br />
which is the default path of Terminal in Mac OS X.</p>
<p dir="auto">By the way, Mac OS X does have xterm built-in, just not in its default PATH. Using<br />
@/usr/X11/bin/xterm -e@<br />
also works (by launching the X11 terminal).</p>
]]></description><link>https://forum.qt.io/post/110225</link><guid isPermaLink="true">https://forum.qt.io/post/110225</guid><dc:creator><![CDATA[uranusjr]]></dc:creator><pubDate>Wed, 21 Sep 2011 03:08:38 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Qt error at Mac OS X: Cannot start the terminal emulator &#x27;xterm&#x27;. on Wed, 21 Sep 2011 01:30:53 GMT]]></title><description><![CDATA[<p dir="auto">Thx for the last reply.</p>
<p dir="auto">I have considered filing a bug [<a href="http://bugreports.qt.nokia.com" target="_blank" rel="noopener noreferrer nofollow ugc">bugreports.qt.nokia.com</a>] report against the Qt SDK,</p>
<h2>and fixed my problem under your suggestion: install xterm.<br />
After installing, I configure "Tools-&gt;Options-&gt;Environment":<br />
form "xterm -e" as default,<br />
to "/usr/local/xterm -e".</h2>
<p dir="auto">BTW, how to configure Qt Creator to use the Mac terminal in Tools-&gt;Options-&gt;Environment?</p>
<p dir="auto">I have tried "sh -e", "ash -e", "bash -e", but all are invalid.</p>
]]></description><link>https://forum.qt.io/post/110223</link><guid isPermaLink="true">https://forum.qt.io/post/110223</guid><dc:creator><![CDATA[szuzsq]]></dc:creator><pubDate>Wed, 21 Sep 2011 01:30:53 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Qt error at Mac OS X: Cannot start the terminal emulator &#x27;xterm&#x27;. on Mon, 19 Sep 2011 09:19:03 GMT]]></title><description><![CDATA[<p dir="auto">Either install xterm or configure Qt Creator to use the Mac terminal in Tools-&gt;Options-&gt;Environment.</p>
<p dir="auto">I wonder why the later had not happened in the image. You might want to consider "filing a bug":<a href="http://bugreports.qt.nokia.com/" target="_blank" rel="noopener noreferrer nofollow ugc">http://bugreports.qt.nokia.com/</a> report against the Qt SDK to get that fixed in the next version.</p>
]]></description><link>https://forum.qt.io/post/109929</link><guid isPermaLink="true">https://forum.qt.io/post/109929</guid><dc:creator><![CDATA[tobias.hunger]]></dc:creator><pubDate>Mon, 19 Sep 2011 09:19:03 GMT</pubDate></item></channel></rss>