Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions

Error: "valgrind" could not be started: No such file or directory



  • Analyzing memory of /home/davit/MyProjects/build-test_window_-Desktop_Qt_5_5_1_GCC_64bit-Debug/test_window_
    Failed to start program. Path or permissions wrong?
    Analyzing finished.
    Error: "valgrind" could not be started: No such file or directory,

    but from terminal when i changed current directory to:
    $ cd /home/davit/MyProjects/build-test_window_-Desktop_Qt_5_5_1_GCC_64bit-Debug/
    and then typing



  • You have a typo in your path.
    You don't need the first dot.
    Try to run it like this:
    /home/davit/MyProjects/build-test_window_-Desktop_Qt_5_5_1_GCC_64bit-Debug/test_window_



  • My issue about "Valgrid Error" still exists. Yes, I have run without dot , and program located in /home/davit/MyProjects/build-test_window_-Desktop_Qt_5_5_1_GCC_64bit-Debug/test_window_ and run successfully, but my issue is not solved



  • Yes, i have typio, but valgrind is not working and file exists in this directory: /home/davit/MyProjects/build-test_window_-Desktop_Qt_5_5_1_GCC_64bit-Debug/test_window_
    and I can run it manually from terminal, by typing: /home/davit/MyProjects/build-test_window_-Desktop_Qt_5_5_1_GCC_64bit-Debug/test_window_



  • Do you have any suggestions


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Might be a silly question but: do you have valgrind installed ?



  • @SGaist thank you for your question. I thought that Valgrind was installed along with Qt Creator together, wasn't it? How do I install it if it was not already installed? Thank you.


  • Lifetime Qt Champion

    Hi,

    No it’s not. It’s an external tool on the same level as cmake or even the compiler.

    As for installing it, it depends on your OS/distribution.


  • Lifetime Qt Champion

    Hi
    its completely stand alone project/tool
    http://valgrind.org/


Log in to reply