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

How to cross-compile for Jetson nano?



  • Hello, I am trying to build a Jetson Nano application with Qt creator (LPGL, qt version 5.15.2), but I am a beginner.
    I have no idea what should I do on host & target for cross compile. There are no good information or book...too old, version difference etc.
    Anyone success it? Would you tell me its method?

    [Host pc (Virtual box on windows10)]
    Ubuntu 18.04 (x86_64)

    [Target device]
    Jetson nano (4GB)
    ---R32 (release), REVISION: 6.1, GCID: 27863751, BOARD: t210ref, EABI: aarch64, DATE: Mon Jul 26 19:20:30 UTC 2021


  • Lifetime Qt Champion

    @ynat You can take a look at https://wiki.qt.io/Raspberry_Pi_Beginners_Guide
    It is for RaspberryPi, but it will be very similar for your board.



  • Thank you for reply.
    I read the article.

    I already have sd card which has been installed Jetson nano developer kit.
    dcdc1c53-06ad-4247-babb-ec86a5f60215-image.png

    For cross compile, I should prepare another sd card which is written like [Getting start ~ Transferring the changed image back onto SD Card (Raspberry_Pi_Beginners_Guide)]?


  • Lifetime Qt Champion

    @ynat said in How to cross-compile for Jetson nano?:

    For cross compile, I should prepare another sd card which is written like

    I don't think so. What you need for cross compalation is a sysroot. Sysroot is basically the file system of the target device (at least /usr/lib and /usr/include). Sysroot is needed to find the include files and libraries while cross compilation. So, try with your SDCard as sysroot.