Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cross compiling and deploying Valgrind
QtWS25 Last Chance

Cross compiling and deploying Valgrind

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
cross compilearmvalgrinddeploy
4 Posts 2 Posters 3.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.
  • M Offline
    M Offline
    mtangy
    wrote on 21 Mar 2017, 16:41 last edited by
    #1

    I am trying to cross compile Valgrind on my Fedora VM in order to get it to run on a custom embedded Linux device running Yacto with a Kinetis KL2x MCU containing a ARM Cortex M4 CPU. I have my QT IDE properly configured to cross compile and deploy QT projects to the device. I was wondering what the best route to accomplish this is. I tried making a new project (in QT>New Project>Import Project>Import Existing Project) using an existing project (Valgrind source code http://valgrind.org/downloads/valgrind-3.12.0.tar.bz2) and i keep getting this error:

    17:20:46: Running steps for project valgrind...
    17:20:46: Starting: "/usr/bin/make" all
    make: *** No rule to make target `all'.  Stop.
    17:20:46: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project valgrind (kit: ----)
    When executing step "Make"
    17:20:46: Elapsed time: 00:00.
    

    and I am not sure how to address it. Is it possible to compile Valgrind just using the cross compiler itself (arm-poky-linux-gnueabi-g++)? Am better off changing the makefile to use the cross compiler instead of gcc and then use scp to send the file to my device(if so which of the many different makefiles do i use?)? Or is there a better way that I am missing? The system doesn't have any package management tools or compilers of its own. Any help/ input will be GREATLY appreciated.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 21 Mar 2017, 21:51 last edited by
      #2

      Hi and welcome to devnet,

      From a quick look, poky seems to already provide Valgrind. You should use it to build it.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mtangy
        wrote on 22 Mar 2017, 20:38 last edited by
        #3

        @SGaist thanks for the welcoming and the reply. The Yocto system on my embedded device is already flashed and running and i have no way of getting in contact with the person who built it. Is it possible to use bitbake to cross compile the provided recipe on pokyo (poky-morty-16.0.1/meta/recipes-devtools/valgrind) and transfer to my target embedded device? All the information I can find only describes how to install it while building your Yocto image.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 22 Mar 2017, 21:43 last edited by
          #4

          I haven't played with that system recently but AFAIR, you should be able to build the sysroot for your system on your desktop machine. Then you could use scp to copy the bits you need over to your device.

          Doesn't your system provide a possibility to start from another device like a SD card or even a nfs ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          4/4

          22 Mar 2017, 21:43

          • Login

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