Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator Analyze Menu Missing when launched as root
Forum Updated to NodeBB v4.3 + New Features

QtCreator Analyze Menu Missing when launched as root

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bob2oneil
    wrote on last edited by
    #1

    I am developing under 64 bit Linux, and as my application needs to run as root, I launch QtCreator as root. However, when QtCreator (up to v2.6) is launched as root on RedHat Linux, the entire Analyze Menu is missing, and therefore I am unable to access Valgrind.

    Anybody have ideas why or a solution?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Please do not run creator as root. It uses plugins and all kind of things and is most likely not save for root usage. You can always use a script starting your application using sudo or whatever.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bob2oneil
        wrote on last edited by
        #3

        How else would you recommend debugging an application within Qt Creator for an application which must have root privileges to execute (i.e. it opens files in /etc, generates log files to /var/log, opens up communications sockets, etc.). I can always do this in Eclipse, but the Qt Creator workflow is more convenient.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          You could set up a remote linux box (Tools->Options->Devices) and configure it to connect to root@localhost.

          Afterwards you need to clone the kit (Tools->Options->Build & Run->Kits) you are using, replace the device type with "Generic remote linux" (don't remember the name) and the device with the one you just set up.

          Finally you need to add a that new kit to your project and you are done.

          PS: Make sure gdbserver is installed;-)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved