duleshi
duleshi

Reputation: 2014

How to set terminal in Qt Creator?

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.

Upvotes: 2

Views: 4513

Answers (1)

Nicholas Smith
Nicholas Smith

Reputation: 11754

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.

Upvotes: 4

Related Questions