Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. crosscompiling to run C code on Raspberry Pi
Forum Updated to NodeBB v4.3 + New Features

crosscompiling to run C code on Raspberry Pi

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 5 Posters 414 Views 4 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    Can anybody point me to tutorial ( from experience , not "ask Mrs Google" , been there done that ) on how to setup to crosscomplie Qt Creator for Raspberry Pi ?
    Preferably in English - found one in German.
    Preferably via remote access to RPi - SSH.
    Definitely NO utube - text only.
    True crosscompile - not to load QtCreator on RPi - do not have enough RAM to do that .
    Thanks

    raven-worxR KroMignonK 2 Replies Last reply
    0
    • A Anonymous_Banned275

      Can anybody point me to tutorial ( from experience , not "ask Mrs Google" , been there done that ) on how to setup to crosscomplie Qt Creator for Raspberry Pi ?
      Preferably in English - found one in German.
      Preferably via remote access to RPi - SSH.
      Definitely NO utube - text only.
      True crosscompile - not to load QtCreator on RPi - do not have enough RAM to do that .
      Thanks

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @AnneRanch
      why not simply install it from the repos?
      https://packages.debian.org/de/buster/qtcreator

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        You mean something like this
        https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/

        A 1 Reply Last reply
        1
        • A Anonymous_Banned275

          Can anybody point me to tutorial ( from experience , not "ask Mrs Google" , been there done that ) on how to setup to crosscomplie Qt Creator for Raspberry Pi ?
          Preferably in English - found one in German.
          Preferably via remote access to RPi - SSH.
          Definitely NO utube - text only.
          True crosscompile - not to load QtCreator on RPi - do not have enough RAM to do that .
          Thanks

          KroMignonK Offline
          KroMignonK Offline
          KroMignon
          wrote on last edited by
          #4

          @AnneRanch said in crosscompiling to run C code on Raspberry Pi:

          True crosscompile - not to load QtCreator on RPi - do not have enough RAM to do that .
          Thanks

          I am not sure to understand what you want to do!
          Do you want to cross-compile Qt Creator for RPi or create a cross-compiled Qt Kit for RPi?

          If the second is what you want to do, then the link suggested by @mrjj is what you need.

          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

          1 Reply Last reply
          0
          • mrjjM mrjj

            Hi
            You mean something like this
            https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/

            A Offline
            A Offline
            Anonymous_Banned275
            wrote on last edited by
            #5

            @mrjj Thanks for very constructive post .
            Progress report - so far so good

            3ac80287-95d1-4781-8348-bbbe7e768a3c-image.png
            Now for simple code to verify crosssscomplie... flash LED ???

            Pablo J. RoginaP 1 Reply Last reply
            0
            • A Anonymous_Banned275

              @mrjj Thanks for very constructive post .
              Progress report - so far so good

              3ac80287-95d1-4781-8348-bbbe7e768a3c-image.png
              Now for simple code to verify crosssscomplie... flash LED ???

              Pablo J. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on last edited by
              #6

              @AnneRanch said in crosscompiling to run C code on Raspberry Pi:

              so far so good

              Indeed you're just actually testing that your RPi device is accessible from Qt Creator. And that you eventually will be able to deploy any file(s) to it.

              Up to this point you should have already cross-compiled Qt and have setup a kit in Qt Creator to use that Qt component.

              simple code to verify crosssscomplie... flash LED ???

              why not to create some Qt widgets instead? i.e. simple QMainWindow

              For accessing RPi GPIO from C/C++ you may need to resort to some helper libary, i.e. libgpiod.
              See this blog post just in case.

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              2

              • Login

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