Skip to content

Linux development environment

Max Halldén edited this page Mar 7, 2019 · 3 revisions

Linux development environment

QtCreator

Use default configuration with Qt5.

Give executable network privileges without root

Add deploy step to run configuration with:

Command: sudo
Arguments: -A setcap cap_net_raw,cap_net_admin+eip iptvutils

Run this to get askpass to work correctly with sudo:

sudo bash -c 'echo "Path askpass /usr/bin/ssh-askpass" >> /etc/sudo.conf'

To make all this work when running in debugger, gdb (and bash which is called from gdb) need to have the same capabilities:

sudo setcap cap_net_admin,cap_net_raw+eip $(readlink -f $(which gdb))
sudo setcap cap_net_admin,cap_net_raw+eip $(readlink -f $(which bash))

One might think that we shouldn't have to set all the capability bits (who inherits whom?), but that doesn't work.

Debug symbols missing (qtbase5-dbg)

See: https://wiki.ubuntu.com/Debug%20Symbol%20Packages