Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved How to cross-compile for Jetson nano?

    Installation and Deployment
    cross compile jetson-nano
    2
    5
    1264
    Loading More Posts
    • 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 Former User last edited by

      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

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @Guest last edited by

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

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User last edited by

          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)]?

          jsulm 1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion @Guest last edited by

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

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User last edited by

              Thank you jsulm.
              I tried rsync of target's usr/lib and /usr/include, and set compiler which comes from toolchain. But I didn't success compile.
              So I gave up to cross compile. It is too difficult for me.
              I'll try other way to make app with gui ( e.g. Web application style (flask, django ...))

              1 Reply Last reply Reply Quote 0
              • First post
                Last post