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