Missing header files in Rootfs L4T 32.3.1

Hi,

In order to cross compile QT, I download latest rootfs from https://developer.nvidia.com/embedded/dlc/r32-3-1_Release_v1.0/t186ref_release_aarch64/Tegra_Linux_Sample-Root-Filesystem_R32.3.1_aarch64.tbz2

I miss some header files in Rootfs to build QT.
/usr/include/GLES2/*
/usr/include/GLES3/*
/usr/include/EGL/*
Whereas needed libraries are all present.

Is there a standard way to get those headerfiles (download fromwhere? ) , or can you add those header files to next rootfs release?

Please note, as a workaround I was able to get needed header files by installing on Tx2 board
sudo apt-get install libegl1-mesa-dev
sudo apt-get install libgles2-mesa-dev

But this is not correct solution for me. So please let me know better solution…

Thanks

These are all “-dev” packages, and installing those packages is the correct procedure. Packages are usually divided into packages for running software, another for compiling against the software ("-dev") and source packages. This is the philosophy of every Linux distribution I know of (though they might have a different name suffix than “-dev”). Are you running into issues with this method?

Hi,

I need to gather those -dev packages during cross-compiling on “Host PC”. How can I get them without installing them on Target and retrieve them. I need to download them without having any target available.

Is there a way?

Rootfs of Nvidia comes with all header files except those few ones I mentioned, so it sounds strange to me that they did not include them…

Thanks

My preferred method is to put everything I need on the Jetson, clone the Jetson, and then use a loopback mount of the actual Jetson for that content. This is the “sysroot” part of cross compiling for user space applications.

Others may have a way to do this via QEMU, but I have not set this up for this purpose and so am not a good source of information on QEMU.

You might find these of interest:
https://devtalk.nvidia.com/default/topic/1043115/jetson-tx2/cross-compiler-version-problem/post/5292337/#5292337
https://devtalk.nvidia.com/default/topic/1048996/jetson-agx-xavier/cross-compile-for-jetson-xavier-/post/5323843/#5323843

Would anyone here have advice on using QEMU to install dev packages for cross compile?

Thanks for hints and confirmation there is no other solution than having a tx2 board available.

Kindly refer to https://github.com/zhj-buffer/Cross-Compile-Jetson.