Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Looking for discussion about crosscompiling and TCF
QtWS25 Last Chance

Looking for discussion about crosscompiling and TCF

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 2 Posters 653 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on 24 Dec 2020, 03:08 last edited by Anonymous_Banned275
    #1

    Looking for discussion about crosscompiling in Qt (RPi) and using TCF.

    I am seriously looking into replacing my current C++ IDE.
    I have several hundreds lines of somewhat working C++ code build in crosscompile style.
    My target hardware is Raspberry Pi and I am using TCF .

    I have a basic questions to this forum:
    From the experience with crosscompiling I understand that reasonable access to compiler and linker options is handy. So far it has been challenge in QtCreator.

    Using TCF "Agent" has its advantages and I am not sure how receptive is QTCreator as far as adding it to the tools . Again - my current C++ actually worked using TCF on RPi hardware - via SSH .

    In case somebody is wondering - my RPi is few years old and I have decided way then that I will not use it for code development - it is still not an viable option for me.

    I'll ask Mrs Google for "basic Qt C++ code to crosscompile on RPi " .....

    Addendum
    Found few tutorials. Most of them are "long winded" - starting from installing RPi and Qt. Pretty boring when both are already in "active service ".

    So far I see two basic , real instructions , most of them buried in tutorials.

    1. Install suitable crosscomplier
    2. Select "device" - in my case RPi

    Part of these are done using Tools-Options .

    As far as using Target Communication Framework (TCF) I do not see anything implementing it in Qt.

    P 1 Reply Last reply 24 Dec 2020, 18:38
    0
    • A Anonymous_Banned275
      24 Dec 2020, 03:08

      Looking for discussion about crosscompiling in Qt (RPi) and using TCF.

      I am seriously looking into replacing my current C++ IDE.
      I have several hundreds lines of somewhat working C++ code build in crosscompile style.
      My target hardware is Raspberry Pi and I am using TCF .

      I have a basic questions to this forum:
      From the experience with crosscompiling I understand that reasonable access to compiler and linker options is handy. So far it has been challenge in QtCreator.

      Using TCF "Agent" has its advantages and I am not sure how receptive is QTCreator as far as adding it to the tools . Again - my current C++ actually worked using TCF on RPi hardware - via SSH .

      In case somebody is wondering - my RPi is few years old and I have decided way then that I will not use it for code development - it is still not an viable option for me.

      I'll ask Mrs Google for "basic Qt C++ code to crosscompile on RPi " .....

      Addendum
      Found few tutorials. Most of them are "long winded" - starting from installing RPi and Qt. Pretty boring when both are already in "active service ".

      So far I see two basic , real instructions , most of them buried in tutorials.

      1. Install suitable crosscomplier
      2. Select "device" - in my case RPi

      Part of these are done using Tools-Options .

      As far as using Target Communication Framework (TCF) I do not see anything implementing it in Qt.

      P Offline
      P Offline
      Pablo J. Rogina
      wrote on 24 Dec 2020, 18:38 last edited by
      #2

      @AnneRanch said in Looking for discussion about crosscompiling and TCF:

      I am seriously looking into replacing my current C++ IDE.

      Which is?

      Found few tutorials.

      Could you show references to them?

      For configuring Qt Creator to access a RPi device and do cross-compiled development, you may want to check steps #5 & #6 from this tutorial

      As far as using Target Communication Framework (TCF) I do not see anything implementing it in Qt.

      It looks like such framework for "driving embedded systems (targets)" is not quite used with Qt Creator since the IDE is somehow well suited to do development for embedded applications.

      You can even connect to "bare metal" devices from Qt Creator.

      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

      A 1 Reply Last reply 25 Dec 2020, 14:48
      1
      • P Pablo J. Rogina
        24 Dec 2020, 18:38

        @AnneRanch said in Looking for discussion about crosscompiling and TCF:

        I am seriously looking into replacing my current C++ IDE.

        Which is?

        Found few tutorials.

        Could you show references to them?

        For configuring Qt Creator to access a RPi device and do cross-compiled development, you may want to check steps #5 & #6 from this tutorial

        As far as using Target Communication Framework (TCF) I do not see anything implementing it in Qt.

        It looks like such framework for "driving embedded systems (targets)" is not quite used with Qt Creator since the IDE is somehow well suited to do development for embedded applications.

        You can even connect to "bare metal" devices from Qt Creator.

        A Offline
        A Offline
        Anonymous_Banned275
        wrote on 25 Dec 2020, 14:48 last edited by
        #3

        @Pablo-J-Rogina said in Looking for discussion about crosscompiling and TCF:

        @AnneRanch said in Looking for discussion about crosscompiling and TCF:

        I am seriously looking into replacing my current C++ IDE.

        Which is?

        Sorry, it is NOT subject of my post to analyze "my current C++ IDE".

        (Mrs Google ) Found few tutorials

        '

        Could you show references to them?
        Ask Mrs Google to do that for you...

        For configuring Qt Creator to access a RPi device and do cross-compiled development, you may want to check steps #5 & #6 from this tutorial

        That is the one of the better ones but still "long winded"(install Qt etc...) and "by the way ": this is how to add "tools" etc. Nothing about hiow toi use QtCreator "Options".

        As far as using Target Communication Framework (TCF) I do not see anything implementing it in Qt.

        And that is one reason for my post. I had a working TCF Agent running on RPi so I want to reuse it.

        It looks like such framework for "driving embedded systems (targets)" is not quite used with Qt Creator since the IDE is somehow well suited to do development for embedded applications.

        You can even connect to "bare metal" devices from Qt Creator.

        Well, I appreciate your comments, however, as I already said - I am trying to reuse what I know was working.

        IT is great , from learning perspective , to know that there are other options to accomplish a task, but it also distract from project flow.

        So back to QtCreator.
        'I have added this

        33e8b200-7972-43d8-a3c2-857479642618-image.png

        My question is
        which folder and file is the actual linaro executable to be added to

        0da3a390-3caa-432f-bce7-43ecefd6a24f-image.png

        My current "compile path " is obviously wrong.

        P 1 Reply Last reply 26 Dec 2020, 12:19
        -1
        • A Anonymous_Banned275
          25 Dec 2020, 14:48

          @Pablo-J-Rogina said in Looking for discussion about crosscompiling and TCF:

          @AnneRanch said in Looking for discussion about crosscompiling and TCF:

          I am seriously looking into replacing my current C++ IDE.

          Which is?

          Sorry, it is NOT subject of my post to analyze "my current C++ IDE".

          (Mrs Google ) Found few tutorials

          '

          Could you show references to them?
          Ask Mrs Google to do that for you...

          For configuring Qt Creator to access a RPi device and do cross-compiled development, you may want to check steps #5 & #6 from this tutorial

          That is the one of the better ones but still "long winded"(install Qt etc...) and "by the way ": this is how to add "tools" etc. Nothing about hiow toi use QtCreator "Options".

          As far as using Target Communication Framework (TCF) I do not see anything implementing it in Qt.

          And that is one reason for my post. I had a working TCF Agent running on RPi so I want to reuse it.

          It looks like such framework for "driving embedded systems (targets)" is not quite used with Qt Creator since the IDE is somehow well suited to do development for embedded applications.

          You can even connect to "bare metal" devices from Qt Creator.

          Well, I appreciate your comments, however, as I already said - I am trying to reuse what I know was working.

          IT is great , from learning perspective , to know that there are other options to accomplish a task, but it also distract from project flow.

          So back to QtCreator.
          'I have added this

          33e8b200-7972-43d8-a3c2-857479642618-image.png

          My question is
          which folder and file is the actual linaro executable to be added to

          0da3a390-3caa-432f-bce7-43ecefd6a24f-image.png

          My current "compile path " is obviously wrong.

          P Offline
          P Offline
          Pablo J. Rogina
          wrote on 26 Dec 2020, 12:19 last edited by
          #4

          @AnneRanch said in Looking for discussion about crosscompiling and TCF:

          Sorry, it is NOT subject of my post to analyze "my current C++ IDE".

          Wow, what an answer...
          It was just a way of checking what IDE could be replaced by Qt Creator.

          Ask Mrs Google to do that for you...

          I'm well aware of several tutorials for cross-compiling Qt for RPi.
          I was just trying to check out which ones you have read/used in order to understand what could not be clear or misleading from such tutorials.

          Anyway...

          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

          A 1 Reply Last reply 26 Dec 2020, 15:59
          1
          • P Pablo J. Rogina
            26 Dec 2020, 12:19

            @AnneRanch said in Looking for discussion about crosscompiling and TCF:

            Sorry, it is NOT subject of my post to analyze "my current C++ IDE".

            Wow, what an answer...
            It was just a way of checking what IDE could be replaced by Qt Creator.

            Ask Mrs Google to do that for you...

            I'm well aware of several tutorials for cross-compiling Qt for RPi.
            I was just trying to check out which ones you have read/used in order to understand what could not be clear or misleading from such tutorials.

            Anyway...

            A Offline
            A Offline
            Anonymous_Banned275
            wrote on 26 Dec 2020, 15:59 last edited by
            #5

            @Pablo-J-Rogina said in Looking for discussion about crosscompiling and TCF:

            @AnneRanch said in Looking for discussion about crosscompiling and TCF:

            Sorry, it is NOT subject of my post to analyze "my current C++ IDE".

            Wow, what an answer...

            Why should I advertise "IT" here ?
            ( Just my opinion )

            It was just a way of checking what IDE could be replaced by Qt Creator.

            Ask Mrs Google to do that for you...

            I'm well aware of several tutorials for cross-compiling Qt for RPi.
            I was just trying to check out which ones you have read/used in order to understand what could not be clear or misleading from such tutorials.

            Anyway...

            Nothing misleading , but "long winded" and missing real "meat and potatoes " as I already mentioned.

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Anonymous_Banned275
              wrote on 26 Dec 2020, 16:23 last edited by
              #6

              @AnneRanch said in Looking for discussion about crosscompiling and TCF:

              My question is
              which folder and file is the actual linaro executable to be added to

              OK,
              let me stick with this tutorial. Maybe it will stir-up some discussion.

              https://jumpnowtek.com/rpi/Qt-Creator-Setup-for-RPi-cross-development.html

              I am in "adding crosscomplier" -to Qt - section.
              I did build a folder and installed "linaro" , since I broke my other IDE I do not recall what version / brand of croscomplier I used before.

              Silly question - why do I need same crosscoplier installed on RPi?
              I'll cross compiling on my PC , not on RPi.

              FYI
              Adding "Device" was a success, however it did not "found" the Raspberry by "host name" and IP "window" is pretty tight for the digits.
              BUT it passes the "test" .

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Anonymous_Banned275
                wrote on 26 Dec 2020, 20:47 last edited by Anonymous_Banned275
                #7

                Here is the most comprehensible , well written and with examples, cross-compiling tutorial so far.

                Includes QtCreator and is build for Raspberry Pi.

                https://mechatronicsblog.com/cross-compile-and-deploy-qt-5-12-for-raspberry-pi/

                The above link is very similar to this one

                https://wiki.qt.io/RaspberryPi2EGLFS

                On clausal look - these tutorials seems to "put lots of stuff" on target hardware. The "synchronization" step / process is scary - takes forever and seem to pass anything imaginable. All I want is C++ and I am getting python and office "stuff" plus some. .

                1 Reply Last reply
                1

                4/7

                26 Dec 2020, 12:19

                • Login

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