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. prepare for cross compile by building qt in target ?

prepare for cross compile by building qt in target ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 549 Views 2 Watching
  • 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.
  • R Offline
    R Offline
    ranshalit
    wrote on last edited by
    #1

    Hello,

    Usually for cross compiling a package means building the package in host using a toolchain of host for target machine.

    Yet, there seems to be another alternative:

    Build package in target (using the native gcc), and then copy the .so from /lib and the relevant header files from /include files into Host sysroot, so that we can cross compile in host (instead of doing the cross compile of a package in host) .

    Should this method always work, even with such big packages like qt ?

    Thanks,
    ranran

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Why would you do that? The point of cross-compilation is to use the powerful CPU of your host, instead of the weak CPU of the target device - to save time and make development easier.

      If, however, it works and you want to use such technique - then sure, go for it.

      (Z(:^

      1 Reply Last reply
      1
      • R Offline
        R Offline
        ranshalit
        wrote on last edited by ranshalit
        #3

        Hi,

        I'll give more background. the target is tegra jetson tx1, and host PC is x86.
        I want to build qt5 package on target with ubuntu just becuase it is easier to do this build on target.
        and then to copy /usr folder into sysroot of intel PC host.
        and then cross compile any qt application in PC (after installing and configure qtcreator in PC for cross compile).

        Should this technique theoretically should work ?

        Thanks

        sierdzioS 1 Reply Last reply
        0
        • R ranshalit

          Hi,

          I'll give more background. the target is tegra jetson tx1, and host PC is x86.
          I want to build qt5 package on target with ubuntu just becuase it is easier to do this build on target.
          and then to copy /usr folder into sysroot of intel PC host.
          and then cross compile any qt application in PC (after installing and configure qtcreator in PC for cross compile).

          Should this technique theoretically should work ?

          Thanks

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @ranshalit said in prepare for cross compile by building qt in target ?:

          Should this technique theoretically should work ?

          I think yes, but I have never tried it so I can't say with certainty.

          (Z(:^

          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