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. Running Valgrind under Qt Creater
QtWS25 Last Chance

Running Valgrind under Qt Creater

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
valgrindqt5memory leakmemory analyzer
5 Posts 2 Posters 1.4k Views
  • 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.
  • E Offline
    E Offline
    enthusiasticDeveloper
    wrote on 4 Jun 2019, 13:39 last edited by enthusiasticDeveloper 6 Apr 2019, 13:53
    #1

    Hi,

    When I'm trying to run Valgrind Memory Analyzer I get this error:
    Analyzing memory of /executable
    valgrind: /executable: No such file or directory
    Analyzing finished.
    ** Unknown error**

    In the Options Valgrind executable is set to the correct path.

    I'm trying to run it on an external system using Qt5.

    How could I fix it so it would run my executable?

    A 1 Reply Last reply 4 Jun 2019, 14:06
    0
    • E enthusiasticDeveloper
      4 Jun 2019, 13:39

      Hi,

      When I'm trying to run Valgrind Memory Analyzer I get this error:
      Analyzing memory of /executable
      valgrind: /executable: No such file or directory
      Analyzing finished.
      ** Unknown error**

      In the Options Valgrind executable is set to the correct path.

      I'm trying to run it on an external system using Qt5.

      How could I fix it so it would run my executable?

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 4 Jun 2019, 14:06 last edited by
      #2

      Hi @enthusiasticDeveloper,

      • Which operating system is that?
      • Which Qt Creator version?
      • Which valgrind version?

      Regards

      Qt has to stay free or it will die.

      E 1 Reply Last reply 4 Jun 2019, 14:21
      0
      • A aha_1980
        4 Jun 2019, 14:06

        Hi @enthusiasticDeveloper,

        • Which operating system is that?
        • Which Qt Creator version?
        • Which valgrind version?

        Regards

        E Offline
        E Offline
        enthusiasticDeveloper
        wrote on 4 Jun 2019, 14:21 last edited by
        #3

        @aha_1980

        Qt Creator: 3.5.1 running on Ubuntu
        The executable is deployed onto an embedded system running on Linux.
        I have valgrind 3.11.0 installed on the embedded system and Valgrind 3.15.0 installed on Ubuntu.

        I can run valgrind from terminal when I SSH into the embedded system.

        I just can't run it under Qt creator.

        A 1 Reply Last reply 4 Jun 2019, 15:25
        0
        • E enthusiasticDeveloper
          4 Jun 2019, 14:21

          @aha_1980

          Qt Creator: 3.5.1 running on Ubuntu
          The executable is deployed onto an embedded system running on Linux.
          I have valgrind 3.11.0 installed on the embedded system and Valgrind 3.15.0 installed on Ubuntu.

          I can run valgrind from terminal when I SSH into the embedded system.

          I just can't run it under Qt creator.

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 4 Jun 2019, 15:25 last edited by
          #4

          @enthusiasticDeveloper

          Qt Creator: 3.5.1 running on Ubuntu

          Then that would be the first thing to upgrade.

          I can run valgrind from terminal when I SSH into the embedded system.

          I'm not even sure that is possible, but chances are higher with a more recent version of Creator.

          Regards

          Qt has to stay free or it will die.

          E 1 Reply Last reply 4 Jun 2019, 20:01
          0
          • A aha_1980
            4 Jun 2019, 15:25

            @enthusiasticDeveloper

            Qt Creator: 3.5.1 running on Ubuntu

            Then that would be the first thing to upgrade.

            I can run valgrind from terminal when I SSH into the embedded system.

            I'm not even sure that is possible, but chances are higher with a more recent version of Creator.

            Regards

            E Offline
            E Offline
            enthusiasticDeveloper
            wrote on 4 Jun 2019, 20:01 last edited by
            #5

            @aha_1980

            That's what I thought. If I manually start valgrid it runs fine, it produces a report as well.
            I just wanted to make it work with Qt because it looks more convenient.

            I'll try updating Qt creator later on.

            Thanks

            1 Reply Last reply
            0

            5/5

            4 Jun 2019, 20:01

            • Login

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