Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Looking for discussion about crosscompiling and TCF



  • 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.



  • @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.



  • @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.



  • @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...



  • @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.



  • @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" .



  • 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. .


Log in to reply