How to set terminal in Qt Creator?

北慕城南 提交于 2019-12-08 02:52:04

问题


I have a plain C++ project automatically created by the Qt Creator wizard(just the "Hello World!" one). When I press F5 to debug, there's an error in the terminal:

Cannot connect creator comm socket /tmp/qt_temp.HP2094/stub-socket: No such file or directory

I have searched for solutions in the Internet and tried this one:

change the terminal value from x-terminal-emulator -e to /usr/bin/xterm -e

Unfortunately, it doesn't work for me. A message box pops up saying "ptrace: Operation not permitted".

How to make my Qt Creator console application function normally?
PS: My Qt creator version is the default one in Ubuntu 12.04.


回答1:


Ubuntu did some kernel hardening techniques a while back that had the wonderful effect of making gdb, ptrace and strace stop working without sudo permissions, as a malware prevention change. If you follow this comment it'll allow it to work properly.



来源:https://stackoverflow.com/questions/15539547/how-to-set-terminal-in-qt-creator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!