Missing cpuid.h on jetson tx2 orbitty carrier

Hi,

I have been trying to build the intel librealsense library on my jetson tx2 but when it gets to 32% done it says fatal error: cpuid.h not found

Is there anything i can do about this I’ve looked around and haven’t seen much about it

Thanks!

I’ve never touched anything related to your particular software, but this sounds like the cpuid.h from the kernel source. If you copy your “source_sync.sh” script from your L4T driver package (“Linux_for_Tegra/source_sync.sh”) to your Jetson (I copied mine to “/usr/local/src” and gave ownership of “/usr/local/src/” to user “ubuntu”), then you can download this via:

source_sync.sh -k tegra-l4t-<b>r28.2</b>

…note this is for R28.2…if you use R28.1 then it’d be “tegra-l4t-r28.1”.

Within this will be “sources/kernel/kernel-4.4/arch/x86/kvm/cpuid.h”. Perhaps your build wants kernel headers? I don’t know, but perhaps you can point your build configuration at that.