Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to cross-compile for Jetson nano?
QtWS25 Last Chance

How to cross-compile for Jetson nano?

Scheduled Pinned Locked Moved Solved Installation and Deployment
cross compilejetson-nano
5 Posts 2 Posters 2.8k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on 11 Oct 2021, 04:25 last edited by
    #1

    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

    J 1 Reply Last reply 11 Oct 2021, 05:20
    0
    • ? A Former User
      11 Oct 2021, 04:25

      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

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 11 Oct 2021, 05:20 last edited by
      #2

      @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
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on 11 Oct 2021, 09:21 last edited by
        #3

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

        J 1 Reply Last reply 11 Oct 2021, 11:44
        0
        • ? A Former User
          11 Oct 2021, 09:21

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

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 11 Oct 2021, 11:44 last edited by
          #4

          @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
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on 29 Oct 2021, 02:52 last edited by
            #5

            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
            0

            • Login

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